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
# scala install | |
wget www.scala-lang.org/files/archive/scala-2.11.7.deb | |
sudo dpkg -i scala-2.11.7.deb | |
# sbt installation | |
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823 | |
sudo apt-get update | |
sudo apt-get install sbt |
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 bash | |
[ $(id -u) = 0 ] || { echo "You must be root (or use 'sudo')" ; exit 1; } | |
fwrule=`ipfw -a list | grep "deny ip from any to any"` | |
fwrule_id=`echo $fwrule | awk '{ print $1 }'` | |
if [ "$fwrule" != "" ]; then | |
echo "Found blocking firewall rule: $(tput setaf 1)${fwrule}$(tput sgr0)" | |
printf "Deleting rule ${fwrule_id} ... " | |
ipfw delete ${fwrule_id} |
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 perl | |
use strict; | |
use warnings; | |
# Fizz Buzz in Perl | |
for (1..100) { | |
my $output = ""; | |
if (not ($_ % 3)) { |
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 perl | |
use strict; | |
use warnings; | |
# Fizz Buzz in Perl | |
for (1..100) { | |
print $_; | |
if (not ($_ % 3)) { |
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
[ rob ~/git/feedist (link_target) ] rake db::migrate --trace | |
rake aborted! | |
Don't know how to build task 'db::migrate' | |
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.0.0/lib/rake/task_manager.rb:49:in `[]' | |
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.0.0/lib/rake/application.rb:139:in `invoke_task' | |
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.0.0/lib/rake/application.rb:98:in `block (2 levels) in top_level' | |
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.0.0/lib/rake/application.rb:98:in `each' | |
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.0.0/lib/rake/application.rb:98:in `block in top_level' | |
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.0.0/lib/rake/application.rb:107:in `run_with_threads' | |
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.0.0/lib/rake/application.rb:92:in `top_level' |