Disabling bottles in Homebrew with custom formulae
Homebrew recently added bottles for Vim/MacVim — but they depend on
Homebrew-installed Ruby, Python, and Perl. I prefer to build these from source
so they will use whatever versions of these dependencies currently installed
on my system. Instead of constantly remembering brew install -s vim
to
install from source, I created a couple small formulae that disable bottles.
Introducing `wp-cli-tgmpa-plugin`
I recently dove back into the world of PHP and created
wp-cli-tgmpa-plugin, a WP-CLI package for working with plugins registered
with the TGM Plugin Activation. Check it out if you need to install TGMPA
plugins via wp cli
.
A Simpler Homebrew Formula for WP-CLI
I mentioned in my last post that WP-CLI’s Homebrew Formula includes a
dependency on Composer I don’t need. I spent a few minutes and came up with a
simpler Formula with no dependencies. To install, just
run brew install [--HEAD] itspriddle/brews/wp-cli
. The Formula just
downloads pre-compiled phar files directly from GitHub, this works great for
my needs.
Running WordPress on OS X
I’ve been working with WordPress a lot more lately, and I wanted a way to run it on OS X with as few dependencies as possible. Thanks to WP-CLI and PHP’s built in web server this is now easier than ever before.
wp-cli on a shared host
Here’s how I installed wp-cli on a shared host (HostRocket).
Convert GitHub repo links to GFM in Vim
GitHub allows a shorthand syntax for linking to commits, pull requests and issues: user/project@SHA for a commit and user/project#Num for an issue or pull request. I frequently paste links into Vim when writing git commit or pull request messages, and wanted a way to automatically convert these to the shorthand syntax on save.
Viscosity CLI
I created a small CLI for controlling VPN connections with Viscosity.app.
Linux Signals
I found a great list of signals in Linux.
Copy screenshots to Dropbox Public folder on OS X
In 2013 Dropbox added the ability to save your screenshots in Dropbox This is an awesome feature that I’ve used almost daily since it was announced. It’s always annoyed me you can’t configure this to use your [Dropbox Public Folder][]. I finally came up with a way to do this using launchd. Head on over to the README for more info on how to set it up on your own system.
Running vim plugin commands from the command line
Vim allows you to run commands from the command line using the +
or -c
flags, vim +PlugUpdate
or vim -c ":PlugUpdate"
. Many plugin commands aren’t
available until you have opened a buffer (eg. rails.vim or git.vim). This has
bugged me for a while and I finally figured out how to make it work.