To change the shape of the cursor in different modes, you can add the following into your .vimrc:
Command Line
Renaming Multiple Files Using the Command Line
Had about fifty jpg files I needed to rename sequentially, starting at 15 to accommodate an existing 14 images. Using the command line (zsh) made it a lot easier than doing it by hand. Leaving this here for my personal benefit, but if you happen to come across it and it helps, that’s great! The […]
2 GitHub Accounts, 1 Mac
I wanted to test out pull requests triggering Travis-ci. I figured I’d use an old account to fork, edit and create a pull request for one of my repos. I had set the local config before adding the remote and pulling, but when I tried to push, I got denied based on my global GitHub […]
OS X Bulk Rename Files Using Regex
brew install rename rename -v -n ‘s/NewssRadios[(d).(d{2,2})]s(.*).avi/News.Radio.S0$1E$2.$3.avi/’ *.avi -v = verbose -n = dry-run
Stupid Developer Tricks
¿uʍop ǝpısdn ǝdʎʇ oʇ ǝ|qɐ ǝq oʇ ʇuɐʍ noʎ os #!/usr/bin/perl use strict; use warnings; use utf8; binmode(STDOUT, “:utf8”); my %flipTable = ( “a” => “x{0250}”, “b” => “q”, “c” => “x{0254}”, “d” => “p”, “e” => “x{01DD}”, “f” => “x{025F}”, “g” => “x{0183}”, “h” => “x{0265}”, “i” => “x{0131}”, “j” => “x{027E}”, “k” => […]
Git SVN not working after Yosemite upgrade
→ git svn clone -r HEAD https://vip-svn.wordpress.com/yrc-freight Can’t locate SVN/Core.pm in @INC (you may need to install the SVN::Core module) (@INC contains: /usr/local/Cellar/git/1.8.5.2/lib/perl5/site_perl /Library/Developer/CommandLineTools/Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /usr/local/Cellar/git/1.8.5.2/lib/perl5/site_perl/Git/SVN/Utils.pm line 6. BEGIN failed–compilation aborted at /usr/local/Cellar/git/1.8.5.2/lib/perl5/site_perl/Git/SVN/Utils.pm line 6. Compilation failed in require at /usr/local/Cellar/git/1.8.5.2/lib/perl5/site_perl/Git/SVN.pm line 26. BEGIN failed–compilation […]