We all have those small lines of code that we write again and again and again. Why not write a script to do it for you?
I just thought I’d share some of mine:
First a little alias, which reduces the number of letters written each day by 99%:
Having committed something you need live asap, this comes in handy, when trying to figure out exactly how much stuff will go live
Note that it is very hardcoded to fit my needs, which is exactly why it works. Also note the
?w=1 at the end which tells Github to be quiet about whitespace changes.
Working with LocaleApp, we often want to pull new locale files for our project. This removes the old one and then pulls the new ones.
pfl was chosen to mean “pull from localeapp”.
Want to deploy? Why not just yell it?
This will also grab new code and push to staging.