Help!
git help logShows the list of commits (the most recent commits show up first)
git loggit add -A
git commit -m "Commit comment"
git tag -a v0.0.1 -m "Release version 0.0.1"
Display all envs vars
printenvSet $JAVA_HOME and $SCALA_HOME (Mac OS X)
export JAVA_HOME=$(/usr/libexec/java_home)
export SCALA_HOME=/usr/local/share/scala
export PATH=${PATH}:$JAVA_HOME/bin:$SCALA_HOME/bin| ## | |
| # /etc/nginx/sites-available/my_site.conf | |
| # forces https | |
| server { | |
| listen 80; | |
| return 301 https://my_server$request_uri; | |
| } | |
| server { |
| # start vm | |
| vboxmanage startvm vm_name | |
| # stop vm | |
| vboxmanage controlvm vm_name poweroff | |
| # clone vm | |
| vboxmanage clonevm vm_name --name new_vm_name --register --mode all |
| require 'benchmark' | |
| require 'ostruct' | |
| Benchmark.bm 10 do |bench| | |
| bench.report "Hash: " do | |
| 10_000_000.times do { name: "John Doe", age: 32 } end | |
| end | |
| bench.report "Struct: " do | |
| Person = Struct.new(:name, :age) |