Skip to content

Instantly share code, notes, and snippets.

View spookyuser's full-sized avatar
🌎
reading and writing

spookyuser

🌎
reading and writing
View GitHub Profile
@mickeypash
mickeypash / gist:b0b22ab84495fe4b033895a79dd78468
Last active September 28, 2024 22:21
George Hotz - talking hour - 2020-08-31
@yoonhoGo
yoonhoGo / install.sh
Last active October 7, 2022 06:37
Modern Unix-based commands on macOS
brew install exa
brew install bat
brew install hexyl
brew install fd
brew install procs
brew install ripgrep
brew install dust
brew install clementtsang/bottom/bottom
brew install starship
@kmelve
kmelve / schemas.js
Last active February 23, 2024 01:27
Super simple galleries on Sanity.io
/*
$ sanity init
# Follow steps, choose the clean template
# go to schemas/schema.js and paste this in
*/
// First, we must import the schema creator
import createSchema from 'part:@sanity/base/schema-creator'
@LukasKnuth
LukasKnuth / Readme.md
Created December 6, 2019 21:47
ffmpeg Merge two Audio Streams into one

This script takes a single input file and

  1. Reduces the volume of the third audio-track in the file by half
  2. Writes the reduced volume track into l
  3. Mixes both the second audio-track and the lowered l-track together and stores them into a
  4. Maps the original video to be the first track
  5. Adds the newly mixed audio-track a as the sole audio track
  6. Enables pass-through for the video-track
  7. Configures the mixed audio-track to be AAC at 192kbit/s
@zzpmaster
zzpmaster / formatBytes.dart
Last active April 21, 2025 17:26
convert bytes to kb mb in dart
static String formatBytes(int bytes, int decimals) {
if (bytes <= 0) return "0 B";
const suffixes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
var i = (log(bytes) / log(1024)).floor();
return ((bytes / pow(1024, i)).toStringAsFixed(decimals)) +
' ' +
suffixes[i];
}
@reznor244
reznor244 / playlist-stitch.sh
Last active January 30, 2024 15:06
playlist-stitch: Downloads all files in an m3u playlist and stitches them together into a single .mpg file
#!/bin/bash
declare -a req=("wget" "basename" "rm" "cat" "echo")
for cmd in "${req[@]}"
do
command -v $cmd >/dev/null 2>&1 || { echo "Required command not found: $cmd"; exit 1; }
done
[ $1 ] || { echo "Usage: $0 file1 [file2] [file3...]"; }
@stek29
stek29 / idevicerestore.sh
Created January 12, 2019 12:22
idevicerestore on linux (Debian-based)
sudo apt update
# sudo apt upgrade
sudo apt install -y libcurl4-openssl-dev libplist-dev libzip-dev openssl libssl-dev libusb-1.0-0-dev libreadline-dev build-essential git make automake libtool pkg-config
git clone https://github.com/libimobiledevice/libirecovery
git clone https://github.com/libimobiledevice/idevicerestore
git clone https://github.com/libimobiledevice/usbmuxd
git clone https://github.com/libimobiledevice/libimobiledevice
git clone https://github.com/libimobiledevice/libusbmuxd
git clone https://github.com/libimobiledevice/libplist
@gagarine
gagarine / fish_install.md
Last active March 25, 2025 15:49
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1) using brew

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager installed on your machine.

Install Fish

brew install fish

@nickcernis
nickcernis / readme.md
Last active April 18, 2025 17:05
Exclude node_modules and .git from Backblaze backups on Mac

Exclude node_modules and .git from Backblaze backups on Mac

  1. Edit the file at /Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml.
  2. Add these rules inside the bzexclusions tag:
<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
@mwfogleman
mwfogleman / gtd_basb_templates.org
Last active September 17, 2024 22:12
GTD/BASB Templates for Emacs and Org-Mode