Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
cirrusUK / imdb250.m3u
Created January 24, 2022 02:29
m3u playlist with links to IMDB's top 250 movies
#EXTM3U
# Playlist created by SMPlayer 21.10.0 (revision 10000)
#EXTINF:0,http://103.121.39.254/media/disk4/IMDb Top 250 Movies/12 Years a Slave (2013) %5b1080p%5d/12.Years.a.Slave.2013.1080p.BluRay.x264.YIFY.mp4
http://103.121.39.254/media/disk4/IMDb Top 250 Movies/12 Years a Slave (2013) %5b1080p%5d/12.Years.a.Slave.2013.1080p.BluRay.x264.YIFY.mp4
#EXTINF:0,http://103.121.39.254/media/disk4/IMDb Top 250 Movies/12.Angry.Men.1957.1080p.BluRay.H264.AAC %5bDDN%5d/12.Angry.Men.1957.1080p.BluRay.H264.AAC %5bDDN%5d.mp4
http://103.121.39.254/media/disk4/IMDb Top 250 Movies/12.Angry.Men.1957.1080p.BluRay.H264.AAC %5bDDN%5d/12.Angry.Men.1957.1080p.BluRay.H264.AAC %5bDDN%5d.mp4
#EXTINF:0,http://103.121.39.254/media/disk4/IMDb Top 250 Movies/2001.A.Space.Odyssey.1968.1080p.BluRay.H264.AAC-RARBG/2001.A.Space.Odyssey.1968.1080p.BluRay.H264.AAC-RARBG.mp4
http://103.121.39.254/media/disk4/IMDb Top 250 Movies/2001.A.Space.Odyssey.1968.1080p.BluRay.H264.AAC-RARBG/2001.A.Space.Odyssey.1968.1080p.BluRay.H264.AAC-RARBG.mp4
#EX
@Artefact2
Artefact2 / README.md
Last active April 27, 2024 06:12
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggerganov/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@fredgrott
fredgrott / MainActivity.kt
Created April 15, 2021 16:48
full screen work-arounds for android using flutter native kotlin
import android.os.Build
import android.view.WindowManager
import androidx.core.view.WindowCompat
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
###CHEATSHEETS###
cheat() { nvim -- ~/.cheatsheet/$1-cheatsheet.md; }
# Get cheat sheet of command from cheat.sh. h <cmd>
h(){
curl cheat.sh/${@:-cheat}
# curl cheat.sh/$@
}
path() {
@azizur
azizur / udi-hash.js
Last active April 27, 2024 06:11
Proposal for generating Unique Device Identification (UDI)
const crypto = require('crypto');
const hash = crypto.createHash('sha256');
const hashValue = (data) => {
return hash.update(JSON.stringify(data), 'utf-8').digest('hex');
};
// generate a hash
console.log(hashValue(['userId', 'deviceId']));
// output
@etes
etes / pi_mount_usb.md
Last active April 27, 2024 06:11
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following

@fnky
fnky / ANSI.md
Last active April 27, 2024 06:10
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@azizur
azizur / linkedin-withdraw-invites.js
Last active April 27, 2024 06:10
Manage LinkedIn Invitations
var duration = " month"; // withdraw invites older than x month.
var timeago = document.querySelectorAll(".time-badge");
var inviteActionables = document.querySelectorAll(".invitation-card__action-btn");
var nameNodes = document.querySelectorAll(".invitation-card__tvm-title");
var names = [];
function cancel_invite(cancelId, inviteNode) {
setTimeout(function () {
console.info("Withdrawing invite for", cancelId, names[cancelId]);
// Visit https://www.linkedin.com/my-items/saved-jobs/?cardType=ARCHIVED
// window.location.replace('https://www.linkedin.com/my-items/saved-jobs/?cardType=ARCHIVED');
(function clanupSavedJobs() {
setInterval(() => {
const results = document.querySelectorAll('.entity-result__actions-overflow-menu-dropdown');
results.forEach((entry, index) => {
setTimeout(() => {
const button = entry.querySelector('button');
button.click();
@azizur
azizur / Creating a static copy of a dynamic website.md
Last active April 27, 2024 06:08
Creating a static copy of a dynamic website

The command line, in short…

wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://website.com/

…and the options explained

  • -k : convert links to relative
  • -K : keep an original versions of files without the conversions made by wget
  • -E : rename html files to .html (if they don’t already have an htm(l) extension)
  • -r : recursive… of course we want to make a recursive copy
  • -l 10 : the maximum level of recursion. if you have a really big website you may need to put a higher number, but 10 levels should be enough.