Configuration for mailjet email delivery with Ruby on Rails
Setting up mailjet.com to deliver your mail via Ruby on Rails? Here’s how, because their Getting Started is nothing but placeholder headers right now.
Remove all those .DS_Store files
I don’t like committing .DS_Store files into my projects, so here’s an easy way to remove them:
Run this from your project folder:
# Recursively erase all .DS_Store files in this folder and below
find . -name \.DS_Store -exec rm -v {} \;
Also, you can prevent the DS_Store files from being created. Run this from the Terminal:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
git: merge a single commit
Sometimes, you have one commit you want to get into production, but it’s located after other changes that you’re not ready to merge in yet. How can you get that single git commit into a different branch?
First, you have to know the SHA of the commit you want:
git checkout branch-with-commit-on-it git log
Highlight and copy the SHA of the commit you want to grab.
git checkout master # -n => don't commit, just merge changes so we can review and commit ourself git cherry-pick -n [The commit’s SHA-1 Hash] # review git diff –cached # commit if all is well git commit -a -m “merge SHA1 ..."
If you’re feeling confident, you can skip the -n and merge the single commit in directly and save a minute.
Note, this isn’t a merge, so it’s possible you could have some conflicts down the road when you merge the original commit into this branch. You’re creating a brand new commit object.
Mac OS X: find the program running on a port
Sometimes, there’s a program running on a port and you don’t know what it is. How do you find out?
Converting mysql databases to UTF8
UTF8 is the way to go when you’re creating a new database for an application, but how do you get your existing applications upgraded?

Posted by Wes in
