Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant::Config.run do |config| | |
| config.vm.define :master do |master_config| | |
| master_config.vm.box = "precise64" | |
| master_config.vm.network :hostonly, "192.168.10.50" | |
| master_config.vm.host_name = "localhost.dev" | |
| master_config.vm.provision :shell, :path => "bootstrap.sh" |
| /* jerev - 10/2012 - parallax.js | |
| Be sure to require plugins.parallax, and place this file in lib/plugins/ | |
| Parallax usage | |
| p = new Parallax(); | |
| p.add('path/to/image.ext', {distance: 1, y: 0}) | |
| p.add('path/to/other/image.ext', {distance: 5, y: 0}) | |
| p.move(speed); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).
| if [ -z $1 ] | |
| then | |
| if [ "$OS" == "Darwin" ] | |
| then | |
| echo "Updating…" | |
| brew update | |
| echo "Upgrading…" | |
| brew upgrade | |
| else | |
| sudo apt-get update |
| # Monitor HTTP requests being made from your machine with a one-liner.. | |
| # Replace "en1" below with your network interface's name (usually en0 or en1) | |
| sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*" | |
| # OR.. to be able to use as "httpdump" from anywhere, drop this into ~/.bash_profile: | |
| # (again replace "en1" with correct network interface name) | |
| alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*"" | |
| # All the above tested only on OS X. |