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 | |
MERGED_INTO=${1:-"develop"} | |
statistics() { | |
echo | |
echo "Remaining local branches:" | |
git branch | |
echo | |
echo "These local branches are not merged into ${MERGED_INTO}:" |
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 | |
# The IP to which you just updated your DNS | |
NEW_IP="127.0.0.1" | |
# The domain for which you're awaiting propagation | |
DOMAIN="EXAMPLE.COM" | |
# Polling interval in seconds | |
WAIT=30 |
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
Two vim editor commands to nuke mysql conditional comment markers in | |
MySQL dumps, but not the statement within them: | |
: %s/\/\*!\d\+\s//g | |
: %s/\*\///g | |
Or you can use sed: | |
sed -i 's/\/\*!\d\+\s//g' dump.sql | |
sed -i 's/\*\///g' dump.sql |
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 | |
## | |
# Screencaps, pulls, and deletes the png from a device. | |
# | |
# gcap [w | a | device identifier] | |
# | |
# For debugging over Bluetooth (i.e., Android Wear), see | |
# https://developer.android.com/training/wearables/apps/bt-debugging.html | |
# |
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 | |
#### | |
# Invoke with | |
# $ bash_colours [limit] | |
### | |
if hash tput >/dev/null 2>&1; then | |
bound=${1:-255} | |
for (( i = 0; i < bound; i++ )); do |
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
import urllib2 | |
import re | |
import sys | |
from collections import defaultdict | |
from random import random | |
""" | |
PLEASE DO NOT RUN THIS QUOTED CODE FOR THE SAKE OF daemonology's SERVER, IT IS | |
NOT MY SERVER AND I FEEL BAD FOR ABUSING IT. JUST GET THE RESULTS OF THE | |
CRAWL HERE: http://pastebin.com/raw.php?i=nqpsnTtW AND SAVE THEM TO "archive.txt" |
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
.TITLE SHEP,’APPLE DOS’ | |
* 6.3 10-6-78 | |
* 8 BIT ASSEMBLER | |
.M6502 | |
* | |
************************************************************************************** | |
* (C) COPYRIGHT 1978 APPLE COMPUTER, INC | |
************************************************************************************** | |
ORG1 EQU $1B00 | |
ORG2 EQU $3600 |
NewerOlder