Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
jfeilbach / sysctl.conf.md
Last active May 1, 2024 16:44
10/40 Gb NIC Linux Kernel Performance Tuning for samba file server

TCP tuning

The most important TCP tuning areas since kernel 4.9 are:

  • packet pacing
  • dynamic TSO sizing
  • TCP small queues
  • BBR TCP congestion algorithm

Definitions

  • Gb = gigabit
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active May 1, 2024 16:43
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@fnky
fnky / ANSI.md
Last active May 1, 2024 16:43
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@DakotaLMartinez
DakotaLMartinez / instructions.md
Last active May 1, 2024 16:40
Adding an SSH key to GitHub (Mac OS X or Linux)

You need to do this if you try this command:

ssh -T git@github.com

and you get something that says

git@github.com: Permission denied (public key).
@Salvoxia
Salvoxia / immich_auto_album.py
Last active May 1, 2024 16:40 — forked from REDVM/immich_auto_album.py
Create and populate albums on Immich based on folder name (comaptible with Immich v1.95.x), moved to here: https://github.com/Salvoxia/immich-folder-album-creator
import requests
import os
import argparse
from collections import defaultdict
# I have photos in subfolders like :
# /mnt/media/Photos/2023-08 Holidays
# /mnt/media/Photos/2023-06 Birthday
# /mnt/media/Photos/2022-12 Christmas
@daniele-athome
daniele-athome / sync-albums.sh
Last active May 1, 2024 16:38
Synchronize library folder structure with immich albums
#!/usr/bin/env bash
# Synchronize library folder structure with immich albums
# Usage: ./sync-albums.sh http://immich-host:port/api <api-key> <library-path>
set -e
BASE_URL="$1"
API_KEY="$2"
LIBRARY_PATH="${3%/}/"
@lykn
lykn / selects_or_dropdowns.md
Last active May 1, 2024 16:38
A gist explaining the right way to make drop down menus/select menus/selects in discord.py v2(version 2.0.0a)

Note: Before we go any further. Let me make this real clear that the following gist uses the OFFICIAL discord.py library and not forks like discord_components, nextcord, etc... So when your using this code but a different library and fuck up don't comment something mean or go to a help channel in the server and say "this gist is misleading" or "bad gist who wrote this" when your at fault, trust me I'm going to fuck you up😅

Just a reminder^^

Related Links:

DPY's Docs

Discord's Docs

@KPI01
KPI01 / laravel_tasks.json
Last active May 1, 2024 16:36
VS Code Settings
{
"tasks": [
{
"type": "shell",
"command": "npm run dev",
"problemMatcher": [],
"label": "npm: dev",
"detail": "vite",
"group": {
"kind": "test",
@jgdoncel
jgdoncel / pdftk.bat
Created October 22, 2013 08:55
PDFTK - Comandos útiles
REM Para unir dos documentos diferentes podemos ejecutar lo siguiente desde la consola:
pdftk archivo1.pdf archivo2.pdf cat output salida.pdf
REM Tambien podemos unirlos utilizando etiquetas:
pdftk A=archivo1.pdf B=archivo2.pdf cat A B output salida.pdf
REM Y por supuesto podemos usar comodines:
pdftk *.pdf cat output salida.pdf
REM Para separar páginas de varios documentos y crear un documento nuevo con estas hacemos lo siguiente:
@Pulimet
Pulimet / AdbCommands
Last active May 1, 2024 16:34
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader