I hereby claim:
- I am lumberj on github.
- I am 0x00 (https://keybase.io/0x00) on keybase.
- I have a public key whose fingerprint is 68BF 6F42 9BCA 67B5 9520 3750 FB3D EFB3 272B 9393
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # fetch a pull request locally | |
| # git pr REMOTE PR# | |
| pr = "!f() { git fetch $1 pull/$2/head:pr-$2 && git checkout pr-$2; }; f" |
I hereby claim:
To claim this, I am signing this object:
| Verifying that +0x00 is my openname (Bitcoin username). https://onename.com/0x00 |
var cluster = require('cluster');
var http = require('http');
if (cluster.isMaster) {
var worker = cluster.fork();
cluster.on('exit', function(worker, code, signal) {
console.log('worker ' + worker.process.pid + ' died');
});Using a simple javascript client
const jayson = require('jayson');
const Promise = require('bluebird');
// create a client
const client = jayson.client.http({
port: 3000,
hostname: 'localhost'| set normal (set_color normal) | |
| set magenta (set_color magenta) | |
| set yellow (set_color yellow) | |
| set green (set_color green) | |
| set red (set_color red) | |
| set gray (set_color -o black) | |
| # Fish git prompt | |
| set __fish_git_prompt_showdirtystate 'yes' | |
| set __fish_git_prompt_showstashstate 'yes' |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
The problem is that some lines in the file are missing timestamps when they aren't continuations of any previous line. It's dumb, really.
The mysql query log is seriously bullshit format, but nothing logstash can't unscrew.
The main goal here is to show how we can fix the 'missing timestamp' problem.
% ruby bin/logstash agent -e '
| // Hours [0, ...23] | |
| function offsetHour (hour, offset) { | |
| return (((hour + offset) % 24) + 24) % 24 | |
| } |