Skip to content

Instantly share code, notes, and snippets.

@bitraft
bitraft / .env.example
Created May 11, 2021 15:24 — forked from snikch/.env.example
Chia Network Docker Compose
PLOTS_TMP_DIR=/mnt/scratch/plots
PLOTS_FINAL_DIR=/mnt/storage/plots
@bitraft
bitraft / .env.example
Created May 11, 2021 15:24 — forked from snikch/.env.example
Chia Network Docker Compose
PLOTS_TMP_DIR=/mnt/scratch/plots
PLOTS_FINAL_DIR=/mnt/storage/plots
@bitraft
bitraft / gist:79af38fd0035aa3d19792682a8685363
Created May 7, 2021 13:37 — forked from da-n/gist:f906ca5a7e2a9c5fa7e29883b80a3be9
Unlock rootfs via SSH login in initramfs

unlocking rootfs via ssh login in initramfs

You can unlock your rootfs on bootup from remote, using ssh to log in to the booting system while it's running with the initramfs mounted.

Setup

For remote unlocking to work, the following packages have to be installed before building the initramfs: dropbear busybox

The file /etc/initramfs-tools/initramfs.conf holds the configuration options used when building the initramfs. It should contain BUSYBOX=y (this is set as the default when the busybox package is installed) to have busybox installed into the initramfs, and should not contain DROPBEAR=n, which would disable installation of dropbear to initramfs. If set to DROPBEAR=y, dropbear will be installed in any case; if DROPBEAR isn't set at all, then dropbear will only be installed in case of an existing cryptroot setup.

@bitraft
bitraft / s10plus-bloatware-list.md
Created April 30, 2021 07:50 — forked from patrickdappollonio/s10plus-bloatware-list.md
Samsung Galaxy S10+ bloatware list

Samsung Galaxy S10+ Bloatware list you can disable

Disclaimers:

  • This won't uninstall the application -- even when the command says so. It'll simply remove it from your username, but it will still exist in your phone.
  • With the list, YMMV. Some features might stop working after disabling certain apps. Feel free to disable just the ones you don't use.
  • You need developer options enabled to run these commands, and a USB connection to your computer, with your computer running adb shell.

Samsung Dex

pm uninstall -k --user 0 com.sec.android.desktopmode.uiservice
@bitraft
bitraft / ipv4.txt
Created June 10, 2020 10:09 — forked from frk1/ipv4.txt
Get Netflix IP ranges
# 2017-10-01T14:14:44+00:00
108.175.32.0/20
108.175.34.0/24
108.175.35.0/24
192.173.64.0/18
198.38.100.0/24
198.38.101.0/24
198.38.108.0/24
198.38.109.0/24
@bitraft
bitraft / sysctl.conf
Created May 29, 2020 04:09 — forked from voluntas/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2

Improving heat management after macbookpro 2011 discrete GPU fix, also a script to automate part of the fix process

Taken from StackExchange

Thanks to LangLangC

NOTE: This is experimental; works for some people, not for others

Improved thermal and power management

@bitraft
bitraft / os-x-enable-trim.md
Created January 1, 2020 04:10 — forked from clarencesong/os-x-enable-trim.md
Enable TRIM in OS X 10.7.5 to 10.9.5

Enable TRIM on non-Apple SSDs in OS X

NOTE: This is tested on the versions mentioned in the title, and NOT earlier or later versions. YMMV.

Run the following commands in Terminal…

Backup the original driver:

sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage-backup