For a recent project I’ve needed to make sure that all my code is ship-shape for delivery. This has meant […]
Category: Tools
Renaming git branches
Quite often I end up wanting to rename the branch I’m working in, be it a support, feature or a […]
Removing deleted files from a git commit
Often, I’ve deleted a bunch of files and then find I the change is still unstaged. # On branch master […]
Things I learned while writing a Dockerfile
I’ve been writing a Dockerfile for work that installs Postgresql and sets up a database. I ran into a few […]
Merging two Git repositories with unrelated branches
Suppose you have a Git repository for your Jekyll blog. Suppose you have another Git repository for your Octopress blog. […]
Fix OpenSSL errors when installing Ruby gems in OSX 10.11 El Capitan
There are errors like the following when installing Ruby gems using OpenSSL in OSX 10.11: mini_ssl.c:4:10: fatal error: ‘openssl/bio.h’ file […]
ctrl-r in the shell is your friend
Use ctrl-r in the shell (e.g. bash, zsh or any modern shell) to speed up typing commands you’ve previously run. […]
Use vim as your pager
If you want to use vim as your pager, you can use export PAGER=”col -b -x | $VIM_SHARE_DIR/macros/less.sh” VIM_MACRO_DIR is […]
Multiplex SSH Sessions
If you ssh into a machine (with password) and proceed to open additional ssh sessions to the same machine, you […]
Modify your commit messages
Hi guys! Sometimes, checking my git log, I realize that I have a typo in one of my commits messages […]
Quick access to a Github repo via address bar
You use Github a lot ? And go to a lot of differents repositories directly to the website ? Here […]
One command to rule them all
If you are like me, then you are tired of going to the command line, pulling updates into your repo […]
Move a repo (With many branches&Tags) from Github to Bitbucket
I know you are asking the question, why the f#ck would you want to move from #Github to #Bitbucket, however […]
Pass arguments with spaces to a command in Bash
Sometimes you want to pass complex arguments to a command. Usually when you constructing a command based on information that […]
Overall rsync progress info
With rsync >= 3.1.0: rsync -rc –info=progress2 … …
Installing EventMachine on Windows 7 x64 running with Ruby 2.0 64
patch from sroller git clone https://github.com/sroller/eventmachine.git enter dir cd eventmachine install compiler gem install rake-compiler build gem rake native gem […]
Delete text inside quotes in VIM
I know I’m late to the party but figured I’d help out any fellow stragglers. I was editing some our […]
git log won’t display error
git log [– path] is an awesome tool that allows you to see the commit logs for the entire repo […]
Serve up an ad-hoc git repo from your laptop
Ever wanted an Ad-Hoc git server to share some source? Use this simple alias to serve it up on the […]
SHELL: Easily loop on line break separated items
tl;dr Loop on files without worrying about the spaces in the file names: while read file do echo “[$file]” done […]