Skip to content

Instantly share code, notes, and snippets.


Ricardo Torres rictorres

View GitHub Profile
rictorres / gist:ca9168b5b52dc6db002f
Last active Sep 18, 2015 — forked from wetzler/gist:4478332
Kickfolio's (minified) code to embed Keen IO charts in their user dashboards. They have 3 line charts (last 7 days, last 24 hours, and last 4 weeks) which show the number of user "connect" sessions for a given app (identified by the filter app.PublicKey). For more context, see this blog post:…
View gist:ca9168b5b52dc6db002f
var e=new Keen.Series("connect",{
t=new Keen.Series("connect",{
rictorres / maintenance-mode.conf
Created Sep 11, 2015
nginx maintenance mode
View maintenance-mode.conf
server {
listen 80;
root /var/www/;
location / {
if (-f $document_root/maintenance.html) {
return 503;
... # the rest of your config goes here
rictorres /
Last active Mar 2, 2020
VPS performance tests

Using dd

RunAbove Sandbox [ra]

  • 1 core / 2 GB RAM / 20 GB SSD

EC2 Micro [ec]

  • 1 core / 1 GB RAM / 8 GB

Digital Ocean [do]

  • 1 core / 512 MB RAM / 20 GB SSD
rictorres /
Last active Aug 29, 2015
List of Angular Material changes (breaking/features) since v0.8.3

0.9.0 (2015-05-04)


  • autocomplete: adds support for messages to be displayed when no results are found (e057e271, closes #2574, #1525)

Breaking Changes

  • styles: removes global line-height and font-size from html and body (666e3311)
  • icons: namespaces built-in icons (539ec5e3)

Keybase proof

I hereby claim:

  • I am rictorres on github.
  • I am rictorres ( on keybase.
  • I have a public key whose fingerprint is 353B A4A8 924A 2B4C A650 06B5 9684 8B0B FFC7 C82D

To claim this, I am signing this object:


io.js Semana de 1 de Maio

Release candidate do io.js 2.0, atualizações da comunidade e eventos

Release candidate do io.js 2.0

Essa semana tivemos um lançamento nightly v2.0, changelog completo poderá ser encontrado em breve no GitHub.

Atualizações da Comunidade

View webp-detect.js
function testWepP(callback) {
var webP = new Image();
webP.src = 'data:image/webp;base64,UklGRi4AAABXRUJQVlA4TCEAAAAvAUAAEB8wAiMw' +
webP.onload = webP.onerror = function () {
callback(webP.height === 2);
testWebP(function(supported) {
View mysql-es6.js
'use strict';
const mysql = require('mysql');
const Prom = require('bluebird');
let pool = mysql.createPool({
host: 'localhost',

How to Install Vector on Ubuntu 14

Vector is an on-host performance monitoring framework which exposes hand picked high resolution metrics to every engineer’s browser. More here.

Host machine

PCP Requirements

Vector requires PCP to collect data.


View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048