This file contains hidden or 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.junit.Before; | |
| import org.junit.Test; | |
| import static org.junit.Assert.*; | |
| public class GodSetTest { | |
| private GodSet emptySet; | |
| private GodSet oneElementSet; | |
| private GodSet moreThanOneElementSet; |
This file contains hidden or 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
| # for golang | |
| # mkdir $HOME/go | |
| # mkdir -p $GOPATH/src/github.com/user | |
| export GOPATH=$HOME/go | |
| export PATH=$PATH:$GOPATH/bin |
This file contains hidden or 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
| $(".header").remove() | |
| $(".repohead").remove() | |
| $(".tabnav").remove() | |
| $(".wiki-actions").remove() | |
| $(".site-footer").remove() | |
| $("#wiki-rightbar").remove() | |
| $(".repository-sidebar").remove() | |
This file contains hidden or 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
| # Install with: | |
| # bash < <(curl -L https://raw.github.com/gist/1333785) | |
| # | |
| # Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug | |
| echo "Installing ruby-debug with ruby-1.9.3-p0 ..." | |
| curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem | |
| curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem |
This file contains hidden or 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
| # assumes 1.9.3-p0 is already installed in RVM (1.9.2) and you are in an empty gemset | |
| curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem | |
| curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem | |
| gem install rake | |
| gem install archive-tar-minitar | |
| gem install ruby_core_source | |
| gem install columnize | |
| gem install linecache19-0.5.13.gem -- --with-ruby-include="$rvm_path/src/`rvm tools strings`" | |
| gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include="$rvm_path/src/`rvm tools strings`" |
This file contains hidden or 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
| # install ruby-debug on ruby 1.9.3 | |
| bash < <(curl -L https://raw.github.com/gist/1333785) |
This file contains hidden or 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
| $ curl -X GET http://localhost:4000/page.html | |
| Hello World | |
| $ curl -X POST http://localhost:4000/page.html -d "" | |
| <html> | |
| <head><title>405 Not Allowed</title></head> | |
| <body bgcolor="white"> | |
| <center><h1>405 Not Allowed</h1></center> | |
| <hr><center>nginx/0.6.34</center> | |
| </body> |
This file contains hidden or 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 | |
| echo -e "\nbenchmark.sh -n<number of requests> -c<number of concurrency> <URL1> <URL2> ..." | |
| echo -e "\nEx: benchmark.sh -n100 -c10 http://www.google.com/ http://www.bing.com/ \n" | |
| ## Gnuplot settings | |
| echo "set terminal png | |
| set output 'benchmark_${1}_${2}.png' | |
| set title 'Benchmark: ${1} ${2}' |
This file contains hidden or 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
| other great plugins: https://github.com/SamWM/jQuery-Plugins | |
| numeric, integer text inputs: https://github.com/SamWM/jQuery-Plugins/tree/master/numeric | |
| replace for alert confirms: https://github.com/neerajdotname/iconfirm | |
| always at bottm: https://github.com/neerajdotname/always_at_bottom |
This file contains hidden or 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
| # See the process that's using the port | |
| lsof -i tcp:<port_number> | |
| #ssh tunel | |
| ssh -f user@<remote_server> -L <local_port>:<another_remote_server>:<remote_port> -N |
NewerOlder