Skip to content

Instantly share code, notes, and snippets.

View evert0n's full-sized avatar
:octocat:

Everton Yoshitani evert0n

:octocat:
View GitHub Profile
GROUP1 GROUP2 GROUP3 COUNT_ALL SUM_FIELD8695 AVG_FIELD8695 MIN_FIELD8695 MAX_FIELD8695 MEDIAN_FIELD8695 VALUEOF_FIELD8695 ALL_VALS_FOR_DEBUG_VALUEOF ALL_VALS_FOR_DEBUG_MEDIAN
36050 36053 10 2 20 10 10 10 10 10 10,10 10,10
36050 36053 NULL 2 20 10 10 10 10 10 10,10 10,10
36050 36054 20 1 20 20 20 20 20 20 20 20
36050 36054 NULL 1 20 20 20 20 20 20 20 20
36050 36056 30 1 30 30 30 30 30 30 30 30
36050 36056 NULL 1 30 30 30 30 30 30 30 30
36050 36057 40 1 40 40 40 40 40 40 40 40
36050 36057 NULL 1 40 40 40 40 40 40 40 40
36050 NULL NULL 5 110 22 10 40 20 40 40,20,10,30,10 10,10,20,30,40
@evert0n
evert0n / GIF-Screencast-OSX.md
Created February 17, 2016 18:04 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

'use strict';
/**
* Custom browser commands
*/
var Commands = {
/**
* Login
*
@evert0n
evert0n / deploy_with_ebcli3_on_circleci.md
Created August 25, 2016 22:05 — forked from RobertoSchneiders/deploy_with_ebcli3_on_circleci.md
Settings to deploy to AWS Elastic Beanstalk on CircleCi (EB Cli 3)

This is how I configured the deploy of my rails apps to AWS Elastic Beanstalk through CircleCI.

Configure Environments Variables

On Project Settings > Environment Variables add this keys:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
    The aws user must have the right permissions. This can be hard, maybe, this can help you.

Create a bash script to create the eb config file

@evert0n
evert0n / alexa.js
Created May 16, 2017 18:20 — forked from chilts/alexa.js
Getting the Alexa top 1 million sites directly from the server, unzipping it, parsing the csv and getting each line as an array.
var request = require('request');
var unzip = require('unzip');
var csv2 = require('csv2');
request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip')
.pipe(unzip.Parse())
.on('entry', function (entry) {
entry.pipe(csv2()).on('data', console.log);
})
;
@evert0n
evert0n / promise_while_loop.js
Created May 23, 2017 01:03 — forked from victorquinn/promise_while_loop.js
Promise "loop" using the Bluebird library
var Promise = require('bluebird');
var promiseWhile = function(condition, action) {
var resolver = Promise.defer();
var loop = function() {
if (!condition()) return resolver.resolve();
return Promise.cast(action())
.then(loop)
.catch(resolver.reject);
# run/start nsq with pm2
pm2 start nsqlookupd
pm2 start nsqd -- --broadcast-address=192.168.11.9 --lookupd-tcp-address=192.168.11.9:4160
pm2 start nsqadmin -- --http-address 192.168.11.9:4171 --lookupd-http-address :4161
@evert0n
evert0n / computedStyle.js
Created June 6, 2017 05:40 — forked from gkatsev/computedStyle.js
getComputedStyle shim
computedStyle = function(el, prop) {
if (typeof getComputedStyle === 'function') {
return getComputedStyle(el)[prop];
} else {
return el.currentStyle[prop];
}
}
@evert0n
evert0n / reset.js
Created June 13, 2017 18:37 — forked from 19h/reset.js
Node.js — Clear Terminal / Console. Reset to initial state.
console.reset = function () {
return process.stdout.write('\033c');
}