I hereby claim:
- I am tobym on github.
- I am tobym (https://keybase.io/tobym) on keybase.
- I have a public key ASAxXn3ku_9fH4jsuH6cK2W-h5_7bW3IzY2M2jt1Y10xKQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# create a SOCKS proxy. You need a server in the US | |
ssh -D 8888 my-user@server-in-the-us | |
# launch a second instance of Chrome that uses the proxy | |
/Applications/Google Chrome.app/Contents/MacOS/Google\ Chrome --profile-directory=Guest --proxy-server="socks5://localhost:8888" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" --user-data-dir="/tmp" |
$ sbt -Dredis:6379=propset run
[info] Set current project to test (in build file:/Users/toby/asldifjasklfjsd/)
[info] Running Main
hello world
propset
[success] Total time: 1 s, completed May 19, 2016 1:42:01 PM
Write a program that does what it’s supposed to do | |
Write idiomatic code | |
Debug a program that you wrote | |
Debug a program someone else wrote | |
Debug the interaction between a system you wrote and one you didn’t | |
File a good bug report | |
Modify a program you didn’t write | |
Test a program you wrote | |
Test a program you didn’t write | |
Learn a new programming language |
#!/bin/sh | |
for branch in `git branch -r | grep -v HEAD`;do echo $(git show --pretty=format:'%ci|%an|%cr|' $branch | head -n 1)$branch; done | sort | column -t -s '|' |
#!/bin/bash | |
# Usage: git stats [options] | |
# options are any git options that you would pass to "git log", such as "--since 14.days" or path/to/file/or/directory | |
# | |
# Prints commit stats alphabetically by author: number of files changes, number of lines inserted, number of lines deleted. | |
# | |
# To sort by files changed, use sort like so: git stats | sort -t, -bn -k2 | |
# This tells sort to separate fields by comma, then do a numerical sort on the second field (files changed), ignoring leading whitespace | |
# (That works with gnu and BSD sort.) |
import com.typesafe.sbt.SbtNativePackager._ | |
import NativePackagerKeys._ | |
name := """minimal-akka-scala-seed""" | |
version := "1.0" | |
scalaVersion := "2.11.1" | |
libraryDependencies ++= Seq( |
#!/bin/bash | |
function print_random_word { | |
# The dictionary file. It contains one word per line. | |
dictionary=/usr/share/dict/words | |
# The number of words in the dictionary file. | |
num_words_in_dictionary=$(wc -l $dictionary | awk '{print $1}') | |
# A random number corresponding to a line in the dictionary file. |
#!/usr/bin/env bash | |
# | |
# Usage: cat somefile.txt | mkString [sep] | |
# | |
paste -s -d$1 - |
{ | |
"analytics": { | |
"fvp": "Computer", | |
"movp": "Computer", | |
"mrvp": "Computer", | |
"pa": "1", | |
"pt": "Computer", | |
"vp": "1" | |
} | |
} |