- Connect an iOS defice with a cable
- Option-Cmd-N -> Select your device from the recording menu:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |