Skip to content

Instantly share code, notes, and snippets.

View arrogantrobot's full-sized avatar

Rob Long arrogantrobot

View GitHub Profile
@arrogantrobot
arrogantrobot / gist:271ec35665fcd13f6bf365b00ec934ea
Created April 23, 2016 15:23 — forked from bigsnarfdude/gist:b2eb1cabfdaf7e62a8fc
ubuntu 14.04 install scala 2.11.7 and sbt 13.9 and java 8 and git
# 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
#!/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}
#!/usr/bin/env perl
use strict;
use warnings;
# Fizz Buzz in Perl
for (1..100) {
my $output = "";
if (not ($_ % 3)) {
#!/usr/bin/env perl
use strict;
use warnings;
# Fizz Buzz in Perl
for (1..100) {
print $_;
if (not ($_ % 3)) {
[ 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'