The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| #!/bin/bash | |
| # You need ffmpeg and lame utils, which you can install with homebrew: $ brew install ffmpeg lame | |
| # Tip – Try adding this one liner to your bash profile as an alias. | |
| find . -name "*.flac" -exec ffmpeg -i {} -acodec libmp3lame -ab 320k {}.mp3 \; |
| <?php | |
| include("lib/http.php"); | |
| include("lib/parse.php"); | |
| $product_array = array(); | |
| $product_count = 0; | |
| # Download the target web page | |
| $target = "http://www.webbotsspidersscreenscrapers.com/buyair/"; |
| [ | |
| { | |
| "key": "group_543eec205dd50", | |
| "title": "Sponsors Options", | |
| "fields": [ | |
| { | |
| "key": "field_543eec40c0b04", | |
| "label": "Top Banner Sponsors", | |
| "name": "top_banner_sponsors", | |
| "prefix": "", |
| airplane | |
| airport | |
| bank | |
| beer | |
| bicycle | |
| boat | |
| breakfast | |
| bus | |
| buy | |
| cab |
| #!/bin/bash | |
| function actual_path() { | |
| if [ [ -z "$1" ] -a [ -d $1 ] ]; then | |
| echo $(cd $1 && test `pwd` = `pwd -P`) | |
| return 0 | |
| else | |
| return 1 | |
| fi | |
| } |
| ##### | |
| ## Open iTerm2 tab from Finder | |
| ## | |
| ## Adapted from these sources: | |
| ## http://peterdowns.com/posts/open-iterm-finder-service.html | |
| ## https://gist.github.com/cowboy/905546 | |
| ## Modified to work with files as well, cd-ing to their container folder | |
| ## | |
| ## Usage Instructions: | |
| ## 1) Open Automator |
| $ brew install mysql | |
| ==> Installing mysql dependency: openssl | |
| ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1j.mavericks.bottle.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Pouring openssl-1.0.1j.mavericks.bottle.tar.gz | |
| ==> Caveats | |
| A CA file has been bootstrapped using certificates from the system | |
| keychain. To add additional certificates, place .pem files in | |
| /usr/local/etc/openssl/certs |
| <?php | |
| /** | |
| * This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or | |
| * git pull in your repo directory every time an update is pushed to your $BRANCH (configured below). | |
| * | |
| * Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/ | |
| * | |
| * INSTRUCTIONS: | |
| * 1. Edit the variables below | |
| * 2. Upload this script to your server somewhere it can be publicly accessed |
| #!/bin/bash | |
| # | |
| # This "post-receive" script receives from stdin three arguments in the form: | |
| # <oldrev> <newrev> <refname> | |
| # | |
| while read oldrev newrev ref | |
| do | |
| branch=`echo $ref | cut -d/ -f3` | |
| if [ "master" == "$branch" ]; then | |
| git --work-tree=/var/www/default/public_html/ checkout -f $branch |