Skip to content

Instantly share code, notes, and snippets.

{
"alerts": [
{
"metric": "my_metric",
"value": 1,
"nt_channel": "#cop-shintposting"
},
{
"metric": "my_other_metric",
"value": 123,

Keybase proof

I hereby claim:

  • I am Ricky54326 on github.
  • I am riccardo (https://keybase.io/riccardo) on keybase.
  • I have a public key whose fingerprint is 645D 5BFC 62D5 7E6C F1CE E33A 0A4A 0265 488B 3A1B

To claim this, I am signing this object:

package main
import "fmt"
func PrintHello() {
fmt.Println("Hello world!")
}
func main() {
numThreads := 5
(setq
backup-by-copying t ; don't clobber symlinks
backup-directory-alist
'(("." . "~/.saves")) ; don't litter my fs tree
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t) ; use versioned backups
(require 'saveplace)
@WowSuchRicky
WowSuchRicky / dump.txt
Created March 13, 2016 23:02
openflow example flow dump
stats_reply (xid=0x272d6932): flags=none type=1(flow)
cookie=0, duration_sec=27s, duration_nsec=21000000s, table_id=0, priority=65535, n_packets=1, n_bytes=42, idle_timeout=60,hard_timeout=0,arp,in_port=2,dl_vlan=0xffff,dl_src=5a:8a:39:49:60:2d,dl_dst=ee:07:ac:30:69:df,nw_src=10.0.0.16,nw_dst=10.0.0.1,nw_proto=2,actions=output:1
#!/usr/bin/env python
from math import ceil
from base64 import b64decode as b64
def wrap(txt, lines):
words = txt.split()
n = int(ceil(len(words) / (1.0 * lines)))
joined = []
i = 0
var lastEmit = new Date().getTime();
socket.on("click", function (data) {
var newEmit = new Date().getTime();
console.log("Old emit: " + lastEmit + " , new emit: " + newEmit);
if (newEmit < (lastEmit + 50) && newEmit > 0) {
io.sockets.emit("error");
} else {
io.sockets.emit("click", data);
lastEmit = new Date().getTime();
io.sockets.on("connection", function (socket) {
"use strict";
console.log("Socket initialized");
var lastEmit = new Date().getTime();
socket.on("clearscreen", function (data) {
io.sockets.emit("clearscreen", data);
});
/**
* Created with JetBrains WebStorm.
* User: Ricky
* Date: 7/31/13
* Time: 10:17 PM
* To change this template use File | Settings | File Templates.
*/
require('newrelic');

Keybase proof

I hereby claim:

  • I am Ricky54326 on github.
  • I am riccardo (https://keybase.io/riccardo) on keybase.
  • I have a public key whose fingerprint is 5B6B 9202 4473 A9D5 FEC9 B817 4530 7D36 BE4C 14CF

To claim this, I am signing this object: