HOST
brew install Caskroom/cask/visualvm
+
Add a remote
REMOTE
Policy file jstatd.all.policy content:
grant codebase "file:/usr/java/jdk1.7.0_80/lib/tools.jar" { permission java.security.AllPermission; };
* brew tap homebrew/boneyard | |
* cd $( brew --prefix ) | |
* brew versions docker | |
git_hash = $(brew versions docker | awk '$1 == "1.4.1" {print $4}') | |
* git checkout $git_hash Library/Formula/docker.rb | |
* brew unlink docker | |
* brew install docker | |
* brew switch docker 1.4.1 | |
* docker --version |
HOST
brew install Caskroom/cask/visualvm
+
Add a remote
REMOTE
Policy file jstatd.all.policy content:
grant codebase "file:/usr/java/jdk1.7.0_80/lib/tools.jar" { permission java.security.AllPermission; };
When using Homebrew (http://brew.sh) and searching formulas or pull requests you may get the dreaded error message: Github API Rate limit exceeded
Let's fix that! (yeah!)
Create a new Personal Token in your Github Account Settings (Sidebar: Applications) and then copy the Token.
In the Terminal, use export HOMEBREW_GITHUB_API_TOKEN=YOURAPITOKENWITHFUNKYNUMBERSHERE
(change that to your API Token) or add that to your .bash_profile
and then do source .bash_profile
.
git clone <url> --branch <branch> --single-branch [<folder>] |
[ $count -gt 0 && $someVar != $var] # double condition | |
if myfunc && [ ... ] # function condition | |
# explode on "," | |
function explode(){ | |
local types=$1 | |
array=(${types//,/ }) | |
for type in $(echo $types | tr "," "\n") do | |
echo ${type[i]} | |
done |
brew install imagemagick | |
convert +append a.png b.png # horizontal merge | |
convert +append a.png b.png # vertical merge |
git rebase -i HEAD~(count) | |
# pick 123456 bad message | |
-> | |
# edit 123456 bad message | |
git commit --amend | |
git rebase --continue | |
git push -f |
git checkout branche-dest | |
git merge --squash branche-dev | |
git commit | |
git push |
#HIDDEN APPLICATIONS, HIDDEN FILES | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
#focus automatically follow the mouse to any Terminal window. | |
defaults write com.apple.terminal FocusFollowsMouse -string true | |
#Disable Dashboard in Mac OS X | |
defaults write com.apple.dashboard mcx-disabled -boolean true && killall Dock | |
./android update sdk --no-ui --obsolete --force # SDK Update |