enzo:~/code/love_code% cat love_code.rb
require 'base64'
puts Base64.decode64 <<END
CiAgICAgIyMjIyMgICAgICMjIyMjCiAgICAjIyMjIyMjICAgIyMjIyMjIwog
ICAjIyMjIyMjIyMgIyMjIyMjIyMjCiAgICMjIyMjIyMjIyMjIyMjIyMjIyMK
# vim: set ft=sh: | |
# setup | |
ip tuntap add mode tap $TAP user $USER | |
ip link set $TAP up | |
brctl addif $BR $TAP | |
# teardown | |
ip link set $TAP down | |
brctl delif $BR $TAP |
#!/bin/bash | |
function actual_path() { | |
if [ [ -z "$1" ] -a [ -d $1 ] ]; then | |
echo $(cd $1 && test `pwd` = `pwd -P`) | |
return 0 | |
else | |
return 1 | |
fi | |
} |
#!/bin/zsh | |
function actual_path() { | |
if [ [ -z "$1" ] -a [ -d $1 ] ]; then | |
echo $(cd $1 && test `pwd` = `pwd -P`) | |
return 0 | |
else | |
return 1 | |
fi | |
} |
class Actor | |
def ping | |
puts "#{self.class.name}:ping" | |
end | |
end | |
class SinatraApp < Actor | |
def run | |
loop do | |
puts :whoa? |
#!/bin/bash | |
# | |
# st_repeat HELP: | |
# st_repeat [-d <delay>] [-i] [-c <count>] [-k] <command> | |
# Repeat the given command. | |
# | |
# By default, this command will exit upon success, unless -i or -c are given. | |
# | |
# -d (default 2) specifies how long to wait between iterations | |
# -i will repeat the command indefinitely |
#!/bin/sh | |
run_string="command to run program" | |
kill_match="string to match in ps -ef to find this process" | |
start() { | |
$run_string | |
} | |
stop() { |
#!/bin/sh | |
# credit: http://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/ "Configuring Multiple Default Routes in Linux" | |
start() { | |
start_iface | |
start_vlans | |
start_addresses | |
start_routes | |
configure_resolv |
/* | |
* So far, the strategy is to try to use the menu to do this. | |
* It would be better to call whatever function turns this crap | |
* off directly, but so far I haven't found anything. | |
*/ | |
// Open the menu | |
document.querySelector('.fbChatSidebarDropdown a').click() | |
// Turn off chat (can only be clicked if the menu is open) |
enzo:~/code/love_code% cat love_code.rb
require 'base64'
puts Base64.decode64 <<END
CiAgICAgIyMjIyMgICAgICMjIyMjCiAgICAjIyMjIyMjICAgIyMjIyMjIwog
ICAjIyMjIyMjIyMgIyMjIyMjIyMjCiAgICMjIyMjIyMjIyMjIyMjIyMjIyMK
Chef 11.4.0 doesn't work with Ruby 2.0.0-p0.
It's been fixed but not released yet.