Skip to content

Instantly share code, notes, and snippets.

Avatar
🌱
Growing indie hacker

Vincent Voyer vvo

🌱
Growing indie hacker
View GitHub Profile
View gist:608421
<!--[if IE]><![endif]-->
<!--[if lte IE 7]>
<link
rel="stylesheet" media="all" title="Standard" type="text/css" href="DataSprites2.php?IE" />
<![endif]-->
<!--[if gt IE 7]><!-->
<link
rel="stylesheet" media="all" title="Standard" type="text/css" href="DataSprites2.php?Others" />
<!--<![endif]-->
@vvo
vvo / webperf-contest apache modules
Created Oct 25, 2010
List of apache modules on the webperf-contest servers
View webperf-contest apache modules
LoadModule actions_module
LoadModule alias_module
LoadModule auth_basic_module
LoadModule auth_digest_module
LoadModule authn_dbd_module
LoadModule authn_file_module
LoadModule authz_default_module
LoadModule authz_groupfile_module
LoadModule authz_host_module
LoadModule authz_user_module
View async-widgets.html
<!doctype html>
<html xmlns:fb="http://www.facebook.com/2011/fbml" xmlns:og="http://ogp.me/ns#">
<!-- The xmlns:fb and xmlns:og are required for IE -->
<head>
<title>Loading widgets, async way</title>
</head>
<body>
<!-- FACEBOOK -->
<div id="fb-root"></div>
@vvo
vvo / decode_live.free.fr.sh
Created Jan 5, 2012 — forked from naholyr/decode_live.free.fr.sh
Decode MD5 from live.free.fr
View decode_live.free.fr.sh
#!/bin/bash
# <troll>If you don't have bash, go get a real OS.</troll>
curl -s "http://md5.noisette.ch/md5.php?hash=$(curl -s http://live.free.fr | gunzip | tail -n 36 | head -n 32 | grep [a-f0-9] -o | xargs echo -n | sed 's/ //g')" | grep '<string>' | sed 's/^.*\[CDATA\[\(.*\)\]\].*$/\1/'
View gist:2488897
require('webkit-devtools-agent')
var
http = require('http'),
done = 0, todo = 30, doing = todo;
console.log('We should do '+ todo +' requests');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
@vvo
vvo / gist:2878139
Created Jun 5, 2012
Pocket save link
View gist:2878139
javascript:(function(){ISRIL_H='c7de';PKT_D='getpocket.com';ISRIL_SCRIPT=document.createElement('SCRIPT');ISRIL_SCRIPT.type='text/javascript';ISRIL_SCRIPT.src='//'+PKT_D+'/b/r.js';document.getElementsByTagName('head')[0].appendChild(ISRIL_SCRIPT)})();
View client.js
// npm install -g shelljs
// sudo apt-get install socat
require('shelljs/global');
setInterval(function(){
for (var i = 0; i < 10; i++)
exec("echo 'process' | socat - UNIX-CONNECT:/tmp/noderepl.sock", {async: true})
}, 10)
// shjs client.js
@vvo
vvo / gist:3921228
Created Oct 19, 2012
bad session event behavior
View gist:3921228
var zk = require('../lib');
var async = require('async');
if (require.cache[__dirname + '/helper.js'])
delete require.cache[__dirname + '/helper.js'];
var helper = require('./helper.js');
var ZK;
var HOST = process.env.ZK_HOST || 'localhost';
var PORT = parseInt(process.env.ZK_PORT, 10) || 2181;
@vvo
vvo / gist:5056389
Last active Dec 14, 2015
lazyload compression
View gist:5056389
java -jar compiler.jar --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper "(function(){%output%})();" --js /home/vvo/Dev/lazyload/lazyload.js --js_output_file output.js