Skip to content

Instantly share code, notes, and snippets.

View ceejbot's full-sized avatar
📈
bigger on the inside

C J Silverio ceejbot

📈
bigger on the inside
View GitHub Profile
@dannycoates
dannycoates / abuse.lua
Last active January 14, 2016 11:29
heka anomalies and alerts
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
require "math"
require "string"
local alert = require "alert"
local message_variable = read_config("message_variable") or error("must specify a 'message_variable'")
local max_items = read_config("max_items") or 25000
@jeremyj
jeremyj / watch haproxy sticky tables
Created October 16, 2014 10:13
watch haproxy sticky tables
watch -n 1 'echo "show table http" | socat unix:/var/run/haproxy.sock -'
watch -n 1 'echo "show table public" | socat unix:/var/run/haproxy.sock -'
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.

Object.keys(request) - ashley/ceej

BLUEBIRD_LONG_STACK_TRACES=1 - chris

(ooh, just remembered another tip: kill -s USR1 <node pid> will turn the debugger on any node process and you can point node-inspector at it) -chris

ooh another fun debugging tip: dbg = vm.runInDebugContext('Debug'); mirror = dbg.MakeMirror(objectValue); console.log(mirror.referencedBy()) - chris it lists all referencing objects to the object you pass to MakeMirror

turn on browser styles in computed properties in the browser - jeff

Visa requirements for UK conferences.

First you'll want to check if you need a visa to enter the UK.

  • Nationals of the EU, Switzerland, and EEA countries will not need a visa, and are free to work and conduct business in the UK.
  • Nationals from some designated countries such as USA may travel for tourist or business purposes under a visa exemption. The link above will detail what documents you need to provide in order to travel under a visa exemption.
  • Other nationals will need a visa.

The rules for allowable business travel under a visa exemption are covered by the same rules as those travelling under a vistor visa. If you will be travelling under a visa-exemption and the conference is covering your costs in any way you should make sure to read the relevant section below.

"use strict";
// 2862933555777941757 == 0x27bb2ee687b0b0fd
const PRNG_LO = 0x87b0b0fd;
const PRNG_HI = 0x27bb2ee6;
/*
* jump consistent hash, as described here:
* http://arxiv.org/abs/1406.2294
*