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 | |
clear | |
one() | |
{ | |
FILETEXT=`cat $FILE | tail -c +5` | |
echo $FILETEXT | |
rm -f $FILE | |
} | |
two() | |
{ |
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
badopts() | |
{ | |
echo -e "Usage: ifchanged [command to check] [number of seconds to wait between checks] [command to execute if not changed] [command to execute if changed]" | |
exit | |
} | |
if [ $# -ne 4 ]; then | |
badopts | |
else | |
while true; do | |
RES=`$1` |
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
#!/usr/bin/env ruby | |
$randwins = 0 | |
$swins = 0 | |
$equal = 0 | |
$tried = [] | |
ARGV[0].to_i.times do | |
$times = 0 | |
$num = rand(1..9) | |
$sel = rand(1..$num) | |
loop do |
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
#!/usr/bin/env ruby | |
$one = 0 | |
$two = 0 | |
$three = 0 | |
$four = 0 | |
$five = 0 | |
$six = 0 | |
$seven = 0 | |
$eight = 0 | |
$nine = 0 |
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 | |
DATE=$(date -d "$1" +%Y-%m-%d) | |
URL="http://schlockmercenary.com/$DATE" | |
PICS=$(xidel $URL -e "//@src/resolve-uri(.)" 2> /dev/null | egrep '[0-9][a-z].(png|jpg)') | |
if [ -z "$PICS" ]; then | |
PICS=$(xidel $URL -e "//@src/resolve-uri(.)" 2> /dev/null | egrep '[0-9].[png|jpg]' | head -n 1) | |
fi | |
echo "$PICS" | |
exit |
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 | |
LINE=$((`grep -n "$2()" $1 | head -c 1`+1)) | |
./insert.sh $1 $LINE "$3" | |
exit |
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
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/camping-2.1.554/lib/camping/server.rb:40:in `expand_path': no implicit conversion of nil into String (TypeError) | |
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/camping-2.1.554/lib/camping/server.rb:40:in `<class:Options>' | |
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/camping-2.1.554/lib/camping/server.rb:28:in `<class:Server>' | |
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/camping-2.1.554/lib/camping/server.rb:27:in `<module:Camping>' | |
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/camping-2.1.554/lib/camping/server.rb:26:in `<top (required)>' | |
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' | |
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' | |
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/camping-2.1 |
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
mkdir: : No such file or directory | |
Installing gems listed in /tmp/jewelrybox_gemstack-675292940.gems file... | |
installing mkdir: ..... | |
.. | |
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 | |
while true; do | |
read LINE | |
echo "$LINE" | while IFS= read -r -n1 i; do | |
case $i in | |
"<"|">") | |
echo -n "waka " | |
;; | |
"!") | |
echo -n "bang " |