Skip to content

Instantly share code, notes, and snippets.

View sneak's full-sized avatar

Jeffrey Paul sneak

View GitHub Profile
sneak@pris:~$ gpg --keyserver pgp.mit.edu --recv-key df2a55c2
gpg: keyring `/Users/sneak/.gnupg/secring.gpg' created
gpg: keyring `/Users/sneak/.gnupg/pubring.gpg' created
gpg: requesting key DF2A55C2 from hkp server pgp.mit.edu
gpg: /Users/sneak/.gnupg/trustdb.gpg: trustdb created
gpg: key DF2A55C2: public key "Jeffrey Paul <[email protected]>" imported
gpg: key DF2A55C2: public key "Jeffrey Paul <[email protected]>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 2
gpg: imported: 2 (RSA: 2)
# check for existing running agent info
if [[ -e $HOME/.gpg-agent-info ]]; then
source $HOME/.gpg-agent-info
export GPG_AGENT_INFO SSH_AUTH_SOCK SSH_AGENT_PID
fi
# test existing agent, remove info file if not working
ssh-add -L 2>/dev/null >/dev/null || rm -f $HOME/.gpg-agent-info
# if no info file, start up potentially-new, working agent
if [[ ! -e $HOME/.gpg-agent-info ]]; then
gpg-agent \
@sneak
sneak / rsync-app-exclude-osx.txt
Last active October 6, 2016 22:39
things to exclude from homedir rsync on osx
**/.DS_Store
**/App?Store.app
**/Automator.app
**/Calculator.app
**/Calendar.app
**/Chess.app
**/Contacts.app
**/DVD?Player.app
**/Dashboard.app
**/Dictionary.app
#!/bin/bash
tar -c ~/Library/Application?Support/MobileSync/Backup/ | \
pv | pbzip2 | \
gpg --encrypt -r df2a55c2 > /Volumes/rusty01/iosbackup.tbz2.gpg
#!/bin/bash
zdb -l /path/to/diskpartition
zpool import -D rusty01 # once pool name is found
@sneak
sneak / steemrpi.sh
Last active November 9, 2016 13:37
Script to build steemd on raspberry pi 3 model B
#!/bin/bash
# enable bigger swap on rpi
if [[ ! -e /swapfile ]]; then
fallocate -l 2G /swapfile
mkswap /swapfile
chmod 0600 /swapfile
swapon /swapfile
fi
@sneak
sneak / find.sh
Created October 4, 2016 00:41
way to find pkg osx is downloading to slipstream
lsof -n | grep REG | colrm 1 84 | grep -v Fonts | grep -v " " | sort | uniq | xargs file | grep xar
# then, *hard* link the found file to /tmp/mypackage.pkg and rename it when the download is finished.
@sneak
sneak / crypt.sh
Last active August 31, 2016 03:27
docker/zfs crypto manual startup for hetzner
#!/bin/bash
DEVS="
ata-HGST_HDS724040ALE640_PK1331PAKAKR6S-part1
ata-HGST_HDS724040ALE640_PK1381PAK9YZBS-part1
ata-ST8000AS0002-1NA17Z_Z84064NM-part5
ata-ST8000AS0002-1NA17Z_Z8406C91-part5
"
echo -n "Enter passphrase: "

Keybase proof

I hereby claim:

  • I am sneak on github.
  • I am sneak (https://keybase.io/sneak) on keybase.
  • I have a public key whose fingerprint is 5539 AD00 DE4C 42F3 AFE1 1575 0524 43F4 DF2A 55C2

To claim this, I am signing this object:

```
> [email protected] install /var/app/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | x64
node-pre-gyp info check checked for "/var/app/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.3/node-v46-linux-x64.tar.gz
node-pre-gyp http 200 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.3/node-v46-linux-x64.tar.gz