Skip to content

Instantly share code, notes, and snippets.

View willyaranda's full-sized avatar
🏠
Working from home

Guillermo López willyaranda

🏠
Working from home
View GitHub Profile
@willyaranda
willyaranda / 0_5_0.md
Last active April 27, 2021 22:16
simdjson_nodejs - 0.5.0
filename filesize (MB) JSON.parse(ms) simdjson.lazyParse (ms) JSON.parse (GB/s) simdjson.lazyParse (GB/s) X faster
apache_builds.json 0.13 0.338 0.182 0.38 0.70 1.86
canada.json 2.25 16.942 8.096 0.13 0.28 2.09
citm_catalog.json 1.73 3.750 4.926 0.46 0.35 0.76
github_events.json 0.07 0.164 0.162 0.40 0.40 1.02
gsoc_2018.json 3.33 4.929 6.228 0.68 0.53 0.79
instruments.json 0.22 0.538 0.482 0.41 0.46 1.12
marine_ik.json 2.98 15.325 11.152 0.19 0.27 1.37
mesh_pretty.json 1.58 4.742 3.671 0.33 0.43 1.29
<!DOCTYPE html>
<html>
<head>
<title>Bing</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link href="./css/style.css" rel="stylesheet" />
<link rel="dns-prefetch" href="https://www.bing.com" />
<link rel="prefetch" href="https://www.bing.com/" />
<link rel="next" href="https://www.bing.com/" />
</head>
@willyaranda
willyaranda / gist:11376151
Created April 28, 2014 15:52
List of MCC-MNC, Countries, Prefixes and telco
289 88 ab Abkhazia 7 A-Mobile
289 68 ab Abkhazia 7 A-Mobile
289 67 ab Abkhazia 7 Aquafon
412 88 af Afghanistan 93 Afghan Telecom Corp. (AT)
412 80 af Afghanistan 93 Afghan Telecom Corp. (AT)
412 01 af Afghanistan 93 Afghan Wireless/AWCC
412 40 af Afghanistan 93 Areeba
412 50 af Afghanistan 93 Etisalat
412 20 af Afghanistan 93 Roshan
276 01 al Albania 355 AMC Mobil
'use strict';
var request = require('request'),
ABOUT_URL = 'https://push-nv.srv.openwebdevice.com/willy';
var debug = function(msg) {
var d = Date.now();
console.error(Date(d).toLocaleString(), d, msg);
};
@willyaranda
willyaranda / fastOmniJA.sh
Last active December 22, 2015 03:48
Modify contents in omni.ja, under dom/ path in gecko. Credits to @mcjimenez
#!/bin/sh
if [ $# -ne 2 ]
then
echo "Usage: `basename $0` /path/to/your/gecko/objdir DOM-component(push, apps…)"
exit $E_BADARGS
fi
DIR_SRC="$1"
DIR_SRC1="$DIR_SRC/dom/$2"
@willyaranda
willyaranda / mysql-tuning.sh
Created October 19, 2012 09:13
MySQL tuning
#!/bin/sh
# vim: ts=8
#########################################################################
# #
# MySQL performance tuning primer script #
# Writen by: Matthew Montgomery #
# Report bugs to: https://bugs.launchpad.net/mysql-tuning-primer #
# Inspired by: MySQLARd (http://gert.sos.be/demo/mysqlar/) #
# Version: 1.6-r1 Released: 2011-08-06 #
@willyaranda
willyaranda / flood-push-server.js
Created October 15, 2012 14:34
Flood for websocket - push server
/**
* |||||||| Flooding time! |||||||||||
* Let's create a lot of websockets connections
* and try to flood the server.
* Invocation:
* $ node script.js <IP> <Port> <Number of conn> <Interval between starts> <Number of chars> <Interval> <Time to kill>
* both intervals are in milliseconds
*/
var wsClient = require('websocket').client;
@willyaranda
willyaranda / post-to-websocket.js
Created August 21, 2012 16:04
post-to-websocket
var WebSocketServer = require('websocket').server;
var http = require('http');
http.createServer(onHTTPMessage).listen(8888, "0.0.0.0");
console.log('post-to-websocket --> Listening on 0.0.0.0:8888');
function onHTTPMessage(req, res) {
console.log('post-to-websocket --> Received request for ' + req.url);
if(req.url == "/websocket") {
console.log("Petition accepted in /websocket");
@willyaranda
willyaranda / repo-central.sh
Created April 22, 2012 16:58
updating script for mozilla l10n team (es-ES)
#!/bin/bash
REPO_PATH="/Volumes/MOZILLA/repos/geckoTRUNK"
REPO_VERSION="central"
LOCALE="es-ES"
echo "1- Updating main repo"
cd $REPO_PATH/mozilla-central
hg pull -u
echo ""