Skip to content

Instantly share code, notes, and snippets.

View neurocis's full-sized avatar
🎯
Building the new PIGGY wallet.

Leigh Phillips neurocis

🎯
Building the new PIGGY wallet.
View GitHub Profile
@neurocis
neurocis / btrfs-listcorruptfiles.sh
Last active December 17, 2022 08:23 — forked from hdevalence/corruptfile.sh
Btrfs corrupt file locator
#!/usr/bin/bash
echo "Looking for failed csum inodes...."
inodes=`dmesg | grep 'csum failed' | grep ino | sed 's/^.*ino \([0-9]*\) .*$/\1/g' | sort -u`
for f in $inodes; do echo -e " $f"; done
echo ""
echo "Finding files from inodes..."
corruptfiles=`for i in $inodes; do find /mnt/cache -inum $i 2>/dev/null; done`
for f in $corruptfiles; do echo -e " $f"; done
@neurocis
neurocis / 1_AllInOne-TailScale.md
Last active March 14, 2024 06:27 — forked from lg/adding-tailscale-to-edgerouter.md
Add tailscale to an EdgeRouter and surviving system upgrade

Singular script

Which combines Install, setup & initialization and persists after reboot when stored as /config/scripts/post-config.d/tailscale.sh. Run sudo sh /config/scripts/post-config.d/tailscale.sh and follow the web link to initialize once script created.

#!/bin/sh
# /config/scripts/post-config.d/tailscale.sh

# check latest version against what's installed
# /boot/config/go
# add the following...
# Tailscale
bash /boot/config/tailscale/install.sh
bash /boot/config/tailscale/start.sh
@neurocis
neurocis / bitcoin_spv_wallet_overview.md
Created October 3, 2016 17:45 — forked from TOMOAKI12345/bitcoin_spv_wallet_overview.md
Bitcoin SPV Wallet Flow Overview