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
title At the Mountains of Madness | |
author H B Bisenieks & H P Lovecraft | |
homepage www.puzzlescript.net | |
noundo | |
norestart | |
zoomscreen 20x15 | |
======== | |
OBJECTS |
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 | |
# Takes a list of printers in the form | |
# System Name, Display Name, Model, Location, Address | |
# and adds them to the system, extrapolating required driver | |
# and installing drivers as needed | |
if [ ! "$1" ]; then | |
echo | |
echo " Usage: ${0##*\/} list-of-printers.csv" |
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 | |
echo "$1 is `wc -w $1 | awk '{print $1}'` words long." | |
echo "It contains `cat $1 | awk '{ for (i=1; i<=NF; i++) print $i }' | sed -e 's/[,.;-*?"]//g' | tr A-Z a-z | sort | uniq | wc -w` unique words." | |
echo "It contains `cat $1 | awk '{ for (i=1; i<=NF; i++) print $i }' | sed -e 's/[,.;-*?"]//g' | tr A-Z a-z | sort | uniq -d | wc -w` words that are repeated at least once." |
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
Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*" | |
, bgColor = "#444444" | |
, fgColor = "#cdcdcd" | |
, position = Top | |
, lowerOnStart = True | |
, commands = | |
[ Run Weather "KOAK" ["-t","Oakland International: <tempF>F","-L","55","-H","80","--normal","green","--high","red","--low","lightblue" | |
] 36000 | |
, Run Cpu [ "-L" , "3" | |
, "-H" , "50" |
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 you're writing your NaNo work in chunks, this compiles your chunks first | |
cat /path/to/NaNoWriMo/chunks/chunk_* > /path/to/NaNoWriMo/compiled.txt | |
# Set wordcount variable | |
wc=`wc -w /path/to/NaNoWriMo/compiled.txt | tail -n 1 | awk '{print $1}'` | |
# Get current wordcount from NaNoWriMo | |
nanowc=`curl http://nanowrimo.org/wordcount_api/wc/hbbisenieks | grep -oPm1 "(?<=<user_wordcount>)[^<]+"` |
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
/** | |
* README | |
* | |
* All of the checkbox automation that happens on the main | |
* HiringPage area is controlled by needsXXXX(role) functions. | |
* These functions are, as much as possible, controlled by | |
* switch() statements that will return true, and check the | |
* associated box, if one of the affiliations listed with | |
* | |
* case "affiliation": |
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 | |
email="user@domain.com" | |
message="Someone has logged in to the Minecraft server" | |
if [ -s .players ]; then | |
lsof -iTCP:25565 -sTCP:ESTABLISHED > .players | |
else | |
lsof -iTCP:25565 -sTCP:ESTABLISHED > .players && echo "$message" | /usr/sbin/ssmtp "$email" | |
fi |