Inspired by a Gist from kevinelliott - thanks!
- Xcode - for command line tools required by Homebrew
Inspired by a Gist from kevinelliott - thanks!
This is a quick guide for installing memcached on a Mac with Homebrew, and starting and stopping it with Lunchy. I hope this tutorial will get your memcached up and running in no time.
Installing Homebrew is super easy. Just paste this in your terminal —
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.
My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion.
I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.
| <IfModule mod_headers.c> | |
| Header set Connection keep-alive | |
| # Cache-control headers | |
| # 2 HOURS | |
| #<filesMatch "*"> | |
| Header set Cache-Control "max-age=7200, must-revalidate" | |
| #</filesMatch> | |
| # 480 weeks - 290304000 |
#Tutorial for setting up memcache on OSX and MAMP 2.0
##Prerequisites
##Step 1 - Configure PECL
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav | |
| # To convert all mp3 files in a directory in Linux: | |
| for f in *.mp3; do ffmpeg -i "$f" -acodec pcm_s16le -ac 1 -ar 16000 "${f%.mp3}.wav"; done | |
| # Or Windows: | |
| for /r %i in (*) do ffmpeg -i %i -acodec pcm_s16le -ac 1 -ar 16000 %i.wav |