This file contains 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
$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install v8 2>&1 | |
==> Downloading https://github.com/v8/v8/archive/3.18.5.tar.gz | |
Already downloaded: /Users/andrew/Library/Caches/Homebrew/v8-3.18.5.tar.gz | |
tar xf /Users/andrew/Library/Caches/Homebrew/v8-3.18.5.tar.gz | |
==> make dependencies | |
make dependencies | |
svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \ | |
--revision 1501 | |
A build/gyp/pylib |
This file contains 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/sh | |
NASMFLAGS="-f elf64" | |
LDFLAGS= | |
path=/tmp/$(basename $1).$(date +%N) | |
nasm $NASMFLAGS -o $path.o $1 | |
if [ "$?" == "0" ]; then | |
ld $LDFLAGS -o $path $path.o |
This file contains 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
# Static HTML gallery generator in Ruby | |
# v0.1 | |
# Andrew Belt | |
# Public Domain | |
require 'haml' | |
require 'RMagick' | |
class Page | |
INDEX_TEMPLATE = <<EOS |
This file contains 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
class Foo | |
def wat | |
return 'this is a method' | |
end | |
def bar | |
if false | |
wat = 'this is a local variable' | |
else |
This file contains 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
# Insert account info here | |
# Access token can be found by opening the Web Inspector console of Chrome or Firefox and looking for the key following "access_token" | |
# User ID can be found in the console inside the URL that looks like "/user/XXXXXXXX" | |
ACCESS_TOKEN='' | |
USER_ID='' | |
JSON_PAYLOAD='{"user":{"image_url":"http://thecatapi.com/api/images/get","avatar_url":"http://thecatapi.com/api/images/get"}}' | |
curl "https://v2.groupme.com/users/$USER_ID" --request POST -v \ | |
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0' \ | |
-H 'Accept: application/json, text/plain, */*' \ |
This file contains 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
# pls + gib | |
# "Securely" transfer files between two computers, assuming the receiver has an accessible IP address | |
# Instructions: | |
# Add this to your .bashrc, and restart your terminal. | |
# Example session | |
# | |
# on receiver's terminal: |
This file contains 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
# alias alphabet | |
alias a='aunpack' # extract many archive formats avoiding tarbombs | |
alias c='printf "\ec"' # clear the screen (also Ctrl-L) | |
alias f='feh -FZ' # view images fullscreen | |
alias g='grep -ER' # extended recursive grep | |
alias i='curl icanhazip.com' # prints IP address | |
alias l='ls -lh' # detailed ls | |
alias m='make -j2' # recursive make (adjust to number of cores) | |
alias p='xclip -selection clipboard -o' # print clipboard | |
alias r='vim -R' # read-only vim |
This file contains 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
# panel2source.py | |
# for exporting SVG panels to VCV plugin source files | |
# Version: 1 | |
# Support contact email: /dev/null | |
# License: CC0 | |
import sys | |
import os | |
import re |
This file contains 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 | |
OUT_NAME="$1" | |
shift | |
IN_NAMES="$@" | |
TMP_DIR=$(mktemp -d) | |
# Unzip each input ZIP | |
for IN_NAME in $IN_NAMES; do | |
unzip -n "$IN_NAME" -d "$TMP_DIR" |
This file contains 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 sys | |
import re | |
import os | |
header_filename = sys.argv[1] | |
if not header_filename: | |
raise "No filename given" | |
OlderNewer