I hereby claim:
- I am tlockney on github.
- I am tlockney (https://keybase.io/tlockney) on keybase.
- I have a public key whose fingerprint is 7598 1B8B E5C7 2B03 80D2 E966 D594 D4EC ED46 8B80
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| Vagrant.configure("2") do |config| | |
| config.vm.box = "dummy" | |
| config.vm.provider :aws do |aws, override| | |
| aws.access_key_id = "..." | |
| aws.secret_access_key = "..." | |
| # you'll need to create the EC2 keypair used here -- I called it vagrant for easy tracking | |
| aws.keypair_name = "vagrant" | |
| # you'll want to use a group that has at least SSH open |
| public class Foo { | |
| static final String aConstant = "a constant"; | |
| public void concatSimpleString() { | |
| String aString = "one" + aConstant + "two"; | |
| } | |
| public void concatWithStringBuilder() { | |
| StringBuilder sb = new StringBuilder(); |
| # set the command prefix to ` | |
| set -g prefix "`" | |
| unbind C-b | |
| bind "`" send-prefix |
| lazy val port = new ServerSocket(0).getLocalPort() |
| # transform a java property file into valid shell variables | |
| awk 'BEGIN{FS=OFS="="}{gsub(/\#.*/,"")}{gsub(/\./,"_",$1)}{sub(/..*/,"\"&\"",$2)}1' $1 |
| class Sub extends Super { | |
| @Override | |
| public void foo(java.util.Map<Object,Object> bar) {} | |
| } |
| // initial version | |
| import scala.collection.immutable.TreeSet | |
| class TreeMember[A] { | |
| // some really important stuff here, of course! ;~) | |
| } | |
| class Main { | |
| implicit val treeOrder = new Ordering[TreeMember[A]] { | |
| def compare(a: TreeMember[A], b: TreeMember[A]) = { | |
| // elided for simplicity's sake | |
| } |
| # I always forget you can install homebrew formulas using direct URLs | |
| brew install https://raw.github.com/adamv/homebrew-alt/master/unmaintained/htop.rb |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |