Skip to content

Instantly share code, notes, and snippets.

@larrybotha
larrybotha / install_wkhtmltoimage.sh
Last active August 29, 2015 14:27 — forked from sdbondi/install_wkhtmltoimage.sh
Install wkhtmltoimage
#!/usr/bin/env bash
set -eo pipefail
DEPS='openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig xfonts-75dpi libjpeg-turbo8'
echo $DEPS | xargs apt-get -y install
rm -f /tmp/wkhtmltox-0.12.1_linux-trusty-amd64.deb
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb -P /tmp
dpkg -i /tmp/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
@larrybotha
larrybotha / install_rbenv.sh
Last active August 29, 2015 14:27 — forked from sdbondi/install_rbenv.sh
Install our development ruby environment
#!/usr/bin/env bash
set -eo pipefail
# Install rbenv
if [[ ! -d ~/.rbenv ]]; then
echo "Installing rbenv"
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
if [[ ! `grep 'eval "\$(rbenv init -)"' ~/.bashrc` ]]; then
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
var distanceInput = document.getElementById("distance");

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

con_enable 1
fps_max 60
mat_vsync "1" // Stops screen refresh rate exceeding refresh rate of monitor
mat_triplebuffered "1" // Enable with vsync if fps is less than 60 (0 Disables, 1 Enables)
dota_camera_disable_zoom "1" // disable mouse-wheel zooming
dota_minimap_hero_size "800"