When deploying to Heroku.com or commit secret things public repos it is best not give the keys aways to your system or your developers API tokens. Setting environment variables are a great way to lock this information away and only use it when you need. 1) Create the environment variable in your ~/.zshrc or ~/.bashrc file export DEV_AUTH_TOKEN="S=s1:U Blah Blah Blah" 2) Now in your Ruby scripts and applications you can reference the variable. Don’t forget to load the file before running trying to access the variable. auth_token = ENV["DEV_AUTH_TOKEN"]

Note: These are not all for the command line. There are so many other tricks we learn along the way and they are seldom documented. If you know others please throw them in the comments. MySQL Tip: When you run a normal query in MySQL prompt, if your table is larger than your monitor, you get a jumbled mess of data. It is incredibly hard to read and makes for slow going. The following command replaces the common “;” with a “\G” to complete your command and displays the data in a clean vertical fashion. mysql> select * from stores where id = 1\G *************************** 1. row *************************** id: 1 company_id: 3 name: Cool Hunting verified: 0 customer_service_number: (310) 698-3333[…]

Trying to install “brew” on a computer foreign computer I was hung up on this the today. How rather dumb! How to normally install brew: $ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" => curl: (1) Protocol https not supported or disabled in libcurl Thought this was going to be easy right, wtf? So, I had to go here: http://curl.haxx.se/docs/faq.html and http://curl.haxx.se/download.html Do a little reading about how curl probably doesn’t have ssl support installed, figure it’s best to reinstall, pick my flavor, and download into ~/src. I put all downloads in a ~/src directory. It makes them easy to find if you ever need. Then I do this $ cd ~/src $ tar -xzf curl-7.21.7-1-osx6-x86.tar.gz $ cd curl-7.21.7 $ ./configure –with-ssl[…]