Skip to content

Instantly share code, notes, and snippets.

View ambirex's full-sized avatar

Brent Doll ambirex

View GitHub Profile
http = require('http');
url = require('url');
http.createServer(function(req, res){
var requestURL = url.parse(req.url, true)['pathname'];
if (requestURL == '/log.gif') {
var imgHex = '47494638396101000100800000dbdfef00000021f90401000000002c00000000010001000002024401003b';
var imgBinary = new Buffer(imgHex, 'hex');
res.writeHead(200, {'Content-Type': 'image/gif' });

Record a screencast with QuickTime Player

  1. Connect an iOS defice with a cable
  2. Option-Cmd-N -> Select your device from the recording menu:

http://cl.ly/image/1w0y3Y0H2g2X/record.png

Install gifify

@ambirex
ambirex / less_install.sh
Last active August 29, 2015 14:26 — forked from hersonls/less_install.sh
How to install less in DreamHost 1. Install node.js 2. Install npm 3. Install less
#!/bin/sh
git clone git://github.com/ry/node.git
cd node
./configure --prefix=~/.local/usr
make
make install
export npm_config_prefix=~/.local/usr && curl https://npmjs.org/install.sh | sh