Skip to content

Instantly share code, notes, and snippets.

View vvo's full-sized avatar
🌱
Growing indie hacker

Vincent Voyer vvo

🌱
Growing indie hacker
View GitHub Profile
<!--[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 October 25, 2010 12:04
List of apache modules on the webperf-contest servers
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
@vvo
vvo / async-widgets.html
Created May 30, 2011 18:31
Async widgets
<!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 January 5, 2012 11:10 — forked from naholyr/decode_live.free.fr.sh
Decode MD5 from live.free.fr
#!/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/'
@vvo
vvo / gist:2488897
Created April 25, 2012 10:41
mem leak ?
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 June 5, 2012 21:30
Pocket save link
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)})();
// 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 October 19, 2012 23:12
bad session event behavior
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 / Inconsolata-dz-Powerline.otf
Created November 14, 2012 11:49 — forked from qrush/Inconsolata-dz-Powerline.otf
vim-powerline patched fonts
@vvo
vvo / gist:5056389
Last active December 14, 2015 08:18
lazyload compression
java -jar compiler.jar --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper "(function(){%output%})();" --js /home/vvo/Dev/lazyload/lazyload.js --js_output_file output.js