This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Take a domain and search in a subdirectory of pass for matching username and | |
# password to put into the clipboard. | |
if [[ $# -lt 1 ]]; then | |
echo "Usage: $0 domain" | |
exit 1 | |
fi | |
BASE_PATH="autofill" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Generates gource video (h.264) out of multiple repositories. | |
# Pass the repositories in command line arguments. | |
# Example: | |
# <this.sh> /path/to/repo1 /path/to/repo2 | |
OUTFILE="gource.mp4" | |
set -x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://raw.github.com/samizdatco/nginx-http-auth-digest/master/htdigest.py -o htdigest.py | |
python htdigest.py for_bryan <YOURUSERNAME> tahoe | |
cat for_bryan | pbcopy | |
rm for_bryan | |
then paste me the contents of your clipboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Downloading and Installing Tahoe-LAFS | |
Note: I already have ~/bin on my path | |
mkdir ~/src | |
cd ~/src | |
wget https://tahoe-lafs.org/source/tahoe-lafs/releases/allmydata-tahoe-1.9.2.zip | |
unzip allmydata-tahoe-1.9.2.zip | |
cd allmydata-tahoe-1.9.2 | |
python setup.py build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions for 10.9 are in the works. | |
Install and configure brew | |
$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
$ touch ~/.bashrc | |
$ echo "export CFLAGS=\"-arch x86_64\"" >> ~/.bashrc | |
$ echo "export ARCHFLAGS=\"-arch x86_64\"" >> ~/.bashrc | |
$ source ~/.bashrc | |
$ brew update | |
$ brew doctor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TIMEOUT=10 | |
echo -n 'waiting for stop...' | |
i=0 | |
while mysql -e 'show status' > /dev/null 2>&1; do | |
if [ $i -gt $TIMEOUT ]; then | |
echo 'failed!' | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install -y git-core build-essential libssl-dev libboost-all-dev libdb5.1-dev libdb5.1++-dev libgtk2.0-dev | |
git clone https://github.com/bitcoin/bitcoin.git | |
cd bitcoin/src | |
make -f makefile.unix clean; make -f makefile.unix USE_UPNP= bitcoind | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This works for me, but as always, YMMV | |
There are little things still @todo for the command line | |
but the class should be enough to do everything you need | |
basic localhost usage: ./cgminer-rpc <command> | |
""" |
NewerOlder