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
import org.scalatest.FunSuite | |
import net.liftweb.json._ | |
class Dummy extends FunSuite { | |
private implicit val formats = net.liftweb.json.DefaultFormats | |
private def data = | |
"""[ | |
{ | |
"id": "1234", |
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
# Setting date at commit time: | |
GIT_COMMITTER_DATE="Tue Feb 7 22:47:34 2012 -0800" git commit -m "Ignore stuff" --date "Tue Feb 7 22:47:34 2012 -0800" | |
# Changing date for historical commit: | |
git filter-branch --env-filter 'if [ $GIT_COMMIT = <commit-id> ] | |
then | |
export GIT_AUTHOR_DATE="Tue Feb 7 22:47:34 2012 -0800" | |
export GIT_COMMITTER_DATE="Tue Feb 7 22:47:34 2012 -0800" |
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
git filter-branch --index-filter 'git rm --cached --ignore-unmatch foobar.txt' -f --prune-empty --tag-name-filter cat -- --all |
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
Show hidden characters
{ | |
"erb_verify_command": "erb -xT - {file_name} | ruby -c", | |
"ruby_verify_command": "ruby -c {file_name}", | |
"run_ruby_unit_command": "ruby -Itest {relative_path}", | |
"run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'", | |
"run_cucumber_command": "~/.rvm/bin/rvm-auto-ruby -S bundle exec cucumber {relative_path}", | |
"run_single_cucumber_command": "~/.rvm/bin/rvm-auto-ruby -S bundle exec cucumber {relative_path} -l{line_number}", |
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
{ | |
"cmd": ["~/.rvm/bin/rvm-auto-ruby", "$file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.ruby" | |
} |
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
# mac git bash completion | |
source /usr/local/git/contrib/completion/git-completion.bash | |
# lucid git bash completion | |
# source /etc/bash_completion.d/git-completion.bash | |
GIT_PS1_SHOWDIRTYSTATE="." | |
GIT_PS1_SHOWUNTRACKEDFILES="." | |
GIT_PS1_SHOWSTASHSTATE="." | |
GIT_PS1_SHOWUPSTREAM="auto" |
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
#!/bin/bash | |
# | |
# ssh into a machine and automatically set the background | |
# color of Mac OS X Terminal depending on the hostname. | |
# | |
# Installation: | |
# 1. Save this script to /usr/local/bin/ssh-host-color | |
# 2. chmod 755 /usr/local/bin/ssh-host-color | |
# 3. alias ssh=/usr/local/bin/ssh-host-color | |
# 4. export PRODUCTION_HOST="<hostname_production_server>" |
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
// based on https://twitter.com/francesc/status/602606902187458560 | |
package main | |
import ( | |
"log" | |
"time" | |
) | |
func main() { |
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
package main | |
import ( | |
"flag" | |
"log" | |
"github.com/st3v/fargo" | |
"golang.org/x/oauth2" | |
"golang.org/x/oauth2/clientcredentials" |
OlderNewer