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:
lazy val port = new ServerSocket(0).getLocalPort() |
# set the command prefix to ` | |
set -g prefix "`" | |
unbind C-b | |
bind "`" send-prefix |
public class Foo { | |
static final String aConstant = "a constant"; | |
public void concatSimpleString() { | |
String aString = "one" + aConstant + "two"; | |
} | |
public void concatWithStringBuilder() { | |
StringBuilder sb = new StringBuilder(); |
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 |
I hereby claim:
To claim this, I am signing this object:
import akka.actor.Actor | |
// Following the common Akka pattern of defining the messaging | |
// protocol in the companion object | |
object SampleActor { | |
case object GetState | |
case class UpdateState(key: String, value: String) | |
} | |
class SampleActor extends Actor { |
# This only works with the current master branch of Akka | |
# Setup the necessary deps | |
brew install python | |
# adjust this depending on the latest version of Python that brew installed | |
export PATH=`brew --prefix python`/bin:/usr/local/share/python:$PATH | |
pip install sphinx |
val javaRuntimeOptions = Seq( | |
"-Xmx2048M", | |
"-XX:+UseConcMarkSweepGC", | |
"-XX:+CMSClassUnloadingEnabled", | |
"-XX:MaxPermSize=512M", | |
"-Xshare:off", | |
"-Dcom.sun.management.jmxremote.port=9998", | |
"-Dcom.sun.management.jmxremote.authenticate=false", | |
"-Dcom.sun.management.jmxremote.ssl=false", | |
"-Djava.rmi.server.hostname=%s".format(hostname), |
#!/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 | |
# |
# I always forget you can install homebrew formulas using direct URLs | |
brew install https://raw.github.com/adamv/homebrew-alt/master/unmaintained/htop.rb |