Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
git config --global user.name "Angelfirenze" | |
git config --global user.email "[email protected]" | |
git config --global core.autocrlf true | |
git config --global push.default simple | |
git config --global pull.rebase true | |
git config --global rerere.enabled true | |
git config --global color.ui true | |
git config --global alias.s "status -s" | |
git config --global alias.lg "log --oneline --decorate --all --graph" | |
git config --global credential.helper wincred |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
amn() { | |
if [ $# -ge 1 -a ! -f $1 ]; then | |
input=$(cat -) | |
temp=$(mktemp) | |
echo $input > $temp | |
curl -sF "file=@$temp;filename=xyz.$1" https://amnesia.im | |
rm $temp | |
elif [ $# -ge 1 -a -f $1 ]; then | |
curl -sF "file=@$1" https://amnesia.im | |
else |
Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Homebrew-cask
brew install caskroom/cask/brew-cask
Let's use Terraform to easily get a CoreOS cluster up on Digital Ocean. In this example we will get a 5 node CoreOS cluster up and running on the Digital Ocean 8GB size.
Grab a copy of Terraform for your platform from http://www.terraform.io/downloads.html. Follow the instructions at http://www.terraform.io/intro/getting-started/install.html by getting Terraform in your PATH
and testing that it works.
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
pager = true | |
[color "branch"] | |
current = yellow reverse |
#!/bin/bash | |
while : | |
do | |
clear | |
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
sleep 1 | |
done |
I've been using this technique in most of my Ruby projects lately where Ruby versions are required:
.rbenv-version
containing the target Ruby using a definition name defined in ruby-build (example below). These strings are a proper subset of RVM Ruby string names so far....rvmrc
(with rvm --create --rvmrc "1.9.3@myapp"
) and edit the environment_id=
line to fetch the Ruby version from .rbenv-version
(example below).Today I learned about another Ruby manager, rbfu, where the author is using a similar technique with .rbfu-version
.