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
require 'rubygems' | |
require 'sinatra' | |
get '/hi' do | |
"Hello World!" | |
end |
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
You see an old man standing in front of you. His beard nearly touches the ground, which is impressive. He looks up with a lovely smile and beckons you over to his lap. How can you disagree? | |
"Well, this is a story all about how my life got flipped turned upside down and I'd like to take a minute (just sit right there), I'll tell you how we became the main characters of the internet," he says, his breath humid against your face. You smell something good. Surprise, it's wisdom. | |
Then he links you to this article which has the following to say on the matter: | |
Once upon a time there was a young man with a great destiny. We're going to start here, fyi. His name was, well, his name isn't important. Just kidding, his name was Hobs and he was the first in a line of heroes to bear the mark of his notable ancestor, Pepper "Turkicide" Barbarosa as he is called in Italian (which is a poor translation of the native Greek, Herakles "Turkinverter" XXXXX). As a result, he was a great man before he was even born and could lif |
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
"Borg Dick" by Chicken Wing and the Appetizerz | |
lyrics by jiffy, igjb, dube, pvam, hobs | |
(uh yeah boi turn up da track... ha ahhh... here we go) | |
assimi now assimilator breathin heavy like darth vader | |
absorbing all your culture like vampiric space invaders | |
split from the collective the name is hugh g rection | |
spreading nanoprobes through fallopian tubes forming yeast infections |
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
/* | |
* | |
* learning_c | |
* | |
* Created by Constantine on 7/5/10. | |
* | |
*/ | |
#include <stdio.h> | |
#include <stdbool.h> |
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
classroom:~ class$ dns-sd -B _daap._tcp >> what.txt | |
^C # I ctrl C because it just waits | |
classroom:~ class$ dns-sd -B _daap._tcp | |
Browsing for _daap._tcp | |
Timestamp A/R Flags if Domain Service Type Instance Name | |
8:54:51.821 Add 3 4 local. _daap._tcp. Class’s Library_PW | |
8:54:51.821 Add 2 1 local. _daap._tcp. Class’s Library_PW | |
^C # ctrl c because it just waits | |
classroom:~ class$ |
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
classroom:~ class$ dns-sd -B _daap._tcp& >> res 2>&1 | |
[4] 17738 | |
classroom:~ class$ Browsing for _daap._tcp | |
Timestamp A/R Flags if Domain Service Type Instance Name | |
9:11:39.250 Add 3 4 local. _daap._tcp. Class’s Library_PW | |
9:11:39.250 Add 2 1 local. _daap._tcp. Class’s Library_PW | |
classroom:~ class$ ls | |
Applications Dropbox Public test.txt | |
CocoaNotepad.xib Library Sites test1.txt |
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 | |
# 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 |
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 | |
# create semi-random filenames for writing and reading to | |
# will probably only work on mac os x leopard and snow leopard | |
tempfoo=`basename $0` | |
TFILE=`mktemp /tmp/XXXXXXXX` || exit 1 | |
TFILE2=`mktemp /tmp/2XXXXXXXX` || exit 1 | |
# grabs browseable list of bonjour shared libraries | |
dns-sd -B _daap._tcp 1>$TFILE & | |
# grab the process identifiers for the dns-sd process WHICH NEVER STOPS | |
TFILE_PID=$! |
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 | |
args=("$@") | |
declare -a breaks | |
res=`cat ${args[0]}` | |
OLDIFS=$IFS | |
IFS="===============================================" | |
read -d -a breaks <<< "$res" | |
for i in ${breaks[@]}; do | |
echo $i; | |
done |
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 | |
#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 |
OlderNewer