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 | |
set -e | |
set -x | |
## Begin group of moves that could be done in parallel | |
# Largest temp size 234901, desire 3422 | |
# Moving swapA-1 (3422) (Final goal) | |
pvmove --alloc anywhere /dev/md2:0-3421 /dev/md1:0-3421 | |
# Largest temp size 89514, desire 103031 | |
# Not enough contiguous temporary room for a multipart pvmove | |
# Moving spaceA-5 (14163) (Final goal) |
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 | |
} |
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
#!/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
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 | |
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
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
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
.*.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
#!/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 | |
} |