- https://saml.github.io
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 | |
d="$HOME/opt/chromium" | |
v="$d/VERSION" | |
u="http://build.chromium.org/f/chromium/snapshots/chromium-rel-linux" | |
downloads="$HOME/Downloads" | |
unzipped="$downloads/chrome-linux" | |
zip_file="$downloads/chrome-linux.zip" | |
latest="$(curl "$u/LATEST" 2> /dev/null)" |
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
/* | |
gcc -ansi -pedantic -Wall -Wextra -std=c99 ftypedef.c | |
*/ | |
#include <stdio.h> | |
#define FTypedef(ReturnType, Name, ...) typedef ReturnType (*Name)(__VA_ARGS__) | |
void foo(int i, char *str) { | |
printf("%d - %s\n", i, str); |
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 | |
LUA_HOME="$HOME/opt/lua" | |
export LUA_PATH="$LUA_PATH;./?.lua;$LUA_HOME/luamodules/?.lua" | |
export LUA_CPATH="$LUA_CPATH;./?.so;$LUA_HOME/luamodules/?.so" | |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/opt/gmp/lib:$LUA_HOME/lib" | |
"$LUA_HOME/bin/lua" -lreadline -lcomplete -lprelude $* |
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
package { | |
import flash.display.Sprite; | |
import flash.external.ExternalInterface; | |
import flash.text.TextField; | |
import flash.text.TextFieldType; | |
import flash.text.TextFieldAutoSize; | |
import flash.system.Security; | |
//advertisement swf doing xhr to their domain | |
[SWF(width="300",height="300")] |
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 | |
ATSCC="$ATSHOME/bin/atscc" | |
TMP_DIR="$(mktemp -d --suffix='.ats-rcepl')" | |
TMP_DATS="$TMP_DIR/tmp.dats" | |
TMP_EXE="$TMP_DIR/tmp.exe" | |
function prompt() { | |
echo -n "> " | |
} |
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 | |
if (( $# < 2 )) | |
then | |
echo "Usage: $0 file-path url [cred]" | |
echo " uploads file-path to url" | |
echo "example, $0 ~/images/foo.jpg http://localhost:4502/content/dam/2010/12/foo.jpg admin:admin" | |
exit 1 | |
fi |
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 | |
## Where nginx will be installed | |
prefix="$HOME/nginx" | |
## Put path to module source code | |
modules=( | |
"$HOME/code/ngx_devel_kit" | |
"$HOME/code/lua-nginx-module" | |
) |
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 | |
if (( $# < 2 )) | |
then | |
echo "Usage: $0 path-to-activate host:port [dryrun|activate] [username:password]" | |
exit 1 | |
fi | |
path="$1" | |
host="$2" |
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 base64 | |
import sys | |
tb_hex_bin = { | |
0x0: '0000', | |
0x1: '0001', | |
0x2: '0010', | |
0x3: '0011', | |
0x4: '0100', | |
0x5: '0101', |
OlderNewer