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
Your compiler must support blocks. | |
To compile, run ONE of the following: | |
gcc -o ooc -std=c99 -fblocks ooc.c | |
clang -o ooc ooc.c | |
The output looks like this: | |
Integer: 1337 | |
String: "Hello World!" |
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/zsh | |
emulate -L zsh | |
typeset -r PROGRAM="$0" | |
function parent() { | |
typeset -r HOST="${${PROGRAM##*/}%\.cgi}.csh.rit.edu" | |
echo "Content-Type: text/plain" | |
echo | |
CHILD=1 exec /usr/bin/socat OPENSSL:"$HOST":4243,cafile=/etc/ssl/certs/csh-ca.pem EXEC:"$PROGRAM",fdin=3,fdout=4,sighup,sigint,sigquit | |
} |
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
.*.swp |
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
nsd-notify |
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 core.atomic; | |
import core.runtime; | |
import core.sync.mutex; | |
version( Windows ) { | |
import core.stdc.stdlib; | |
} else version( Posix ) { | |
import core.sys.posix.stdlib; | |
} else { | |
static assert(false, "Unknown platform"); |
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/zsh | |
emulate -L zsh | |
setopt err_exit | |
if [[ $# -ne 1 ]]; then | |
printf "Usage: %s session_name\n" "$0" >&2 | |
exit 1 | |
fi | |
readonly SOCKDIR="/var/run/screen/S-${USER}" |
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
CC ?= gcc | |
CXX ?= g++ | |
.PHONY: all | |
all: foo.o foopp.o | |
foo.o: foo.c | |
$(CC) -c -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
#!/bin/zsh | |
emulate -L zsh | |
setopt err_exit | |
#setopt xtrace | |
typeset -r NONLINK_PROGNAME="cmdsh" | |
typeset -r PROGNAME="${0##*/}" | |
typeset -r CONIN="/usr/local/bin/conin" | |
typeset -r WINPWD="$(cygpath -w "$PWD")" | |
typeset -a winargs arguments |
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
A hand-crafted dynamic resolver. |
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
uint64_t zigbees[3]; // This somehow gets initialized (list of zigbee IDs) | |
int xbfd; | |
xbapi_op op_structs[3]; | |
xbfd = xbapi_init("path to fd"); | |
for (int i = 0; i < 3; i++) { | |
xbapi_initi_op(op_structs[i]); | |
xbapi_transmit(op_structs[i], "Hello Zigbee", zigbees[i]); // Should return error codes | |
} |
OlderNewer