Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| # For JAVA_HOME | |
| export JAVA_6_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/HOME | |
| export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home | |
| export JAVA_9_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home | |
| export JAVA_10_HOME=/Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home | |
| # Alias for dynamic JDK_HOME | |
| alias jdk6='export JAVA_HOME=$JAVA_6_HOME' | |
| alias jdk8='export JAVA_HOME=$JAVA_8_HOME' | |
| alias jdk9='export JAVA_HOME=$JAVA_9_HOME' |
| # quick socket5 proxy | |
| # set socket5 proxy to $SERVER:$PORT at the browser | |
| ssh -D $PORT -f -C -q -N $SERVER |
| function proxy_off(){ | |
| unset http_proxy | |
| unset https_proxy | |
| unset socket_proxy | |
| echo -e "Proxy Closed!" | |
| } | |
| function proxy_on() { | |
| export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" | |
| export http_proxy="http://127.0.0.1:1080" |
| #http | |
| ``` | |
| git config --global http.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy http://127.0.0.1:1080 | |
| ``` | |
| #socket5 | |
| ``` | |
| git config --global http.proxy socks5://127.0.0.1:1080 |
| # Standard and additional keybindings | |
| # | |
| # Find the key with: showkey -a | |
| # | |
| # ctrl + u : clear line | |
| # ctrl + w : delete word backward | |
| # alt + d : delete word | |
| # ctrl + a : move to beginning of line | |
| # ctrl + e : move to end of line (e for end) | |
| # alt/ctrl + f : move to next word (f for forward) |
| Having to write | |
| git pull origin branch_name | |
| followed by | |
| git add all -A | |
| then | |
| git commit -m "blaaah blaah" |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| git stash # Stash changes if any | |
| git symbolic-ref HEAD refs/heads/${NEW_BRANCH} # Change head to a new, non-existing ref | |
| git rm -rf . # Delete files from version control and working directory | |
| rm -r . # Delete files from file system | |
| git commit -m "Created new branch ${NEW_BRANCH}" # Commit changes in the new branch |
| $ sudo wget -qO- https://toolbelt.heroku.com/install.sh | sh | |
| $ echo 'PATH="/usr/local/heroku/bin:$PATH"' >> .bash_profile | |
| $ source .bash_profile | |
| $ heroku version | |
| $ heroku login | |
| Enter your Heroku credentials. | |
| Email: メールアドレス | |
| Password (typing will be hidden): パスワード |
| --------------------------------------------------------------- | |
| Jetty (NIO); version: 8.1.7.v20120910 | |
| --------------------------------------------------------------- | |
| Server Software: Jetty(8.1.7.v20120910) | |
| Server Hostname: localhost | |
| Server Port: 8989 | |
| Document Path: http://localhost:8989/rnd?c=2048 | |
| Document Length: 2048 bytes |