Skip to content

Instantly share code, notes, and snippets.

WARNING: Do NOT copy over the init.txt from an earlier version of DF.
Always read the file carefully, including the comments.
In general, you can copy savegames and tilesets from older DF
versions, but you should not copy anything else. You should not, under any
circumstances, unpack a new DF on top of an older one.
Change this to turn sound off.
ht thost=beta.lol.riotgames.com
xmpp_server_url=beta.lol.riotgames.com
enableTutorialGame=true
lobbyLandingURL=http://www.leagueoflegends.com/pvpnet_landing
ladderURL=http://www.leagueoflegends.com/ladders
storyPageURL=http://www.leagueoflegends.com/story
15:23:34 [/Volumes/Programming/classes/pythonwebservices/ip/webob_view]: ../bin/python setup.py develop
running develop
running egg_info
creating webob_view.egg-info
writing requirements to webob_view.egg-info/requires.txt
writing webob_view.egg-info/PKG-INFO
writing top-level names to webob_view.egg-info/top_level.txt
writing dependency_links to webob_view.egg-info/dependency_links.txt
writing entry points to webob_view.egg-info/entry_points.txt
writing manifest file 'webob_view.egg-info/SOURCES.txt'
#!/bin/bash
# case $variable in
read -p "Enter an animals name: " animal
echo -n "A $animal has "
case $animal in
horse|cow|cat) echo -n "four ";;
man|woman) echo -n "two ";;
*) echo -n "an unknown number of ";;
esac
echo "legs!"
#! /bin/bash
function tweet () {
echo $STATUS
echo $USERNAME
echo $PASSWORD
curl -s -u "$USERNAME":"$PASSWORD" -d status="$STATUS" http://twitter.com/statuses/update.xml
}
export -f tweet
When trying to change my e-mail I get a weird message that I was blocked by the spam filter, and links to some creepy urls.
The admin spam settings are exposed to normal users in the left-menu:
http://plugins.jquery.com/admin/settings/spam
Seems like spammers have changed the spam-settings so only users are filtered, and also changed the error message.
#!/bin/bash
#read stream
args=("$@")
#discard =Breaks=
res=`sed '1p' ${args[0]}`
while read -r line; do
do
if $line=="==============================================="
then make a new array item
else
#!/bin/bash
args=("$@")
declare -a breaks
res=`cat ${args[0]}`
OLDIFS=$IFS
IFS="==============================================="
read -d -a breaks <<< "$res"
for i in ${breaks[@]}; do
echo $i;
done
#!/bin/bash
# create semi-random filenames for writing and reading to
tempfoo=`basename $0`
TFILE=`mktemp /tmp/${tempfoo}.XXXXXX` || exit 1
TFILE2=`mktemp /tmp/${tempfoo}2.XXXXXX` || exit 1
dns-sd -B _daap._tcp 1>TFILE &
res=$(tail -n1 $TFILE | awk '{gsub(/[ ]+/," ")}1' | cut -d' ' -s -f6-)
read -r protocol library_name <<< "$res"
echo $library_name $protocol