I hereby claim:
- I am gabetax on github.
- I am gabetax (https://keybase.io/gabetax) on keybase.
- I have a public key whose fingerprint is 1EFD 47AF EC3D 547B A20D 9E55 BF32 3A32 8D07 3EFA
To claim this, I am signing this object:
" lowers | |
noremap n j | |
noremap e k | |
noremap i l | |
noremap j e | |
noremap l u | |
noremap u i | |
noremap k n |
// data from https://www.reddit.com/r/MapPorn/comments/eq52ce/every_states_least_favorite_state_according_to_my/ | |
digraph G { | |
"Alabama" -> "Florida" | |
"Alaska" -> "Texas" | |
"Arizona" -> "California" | |
"Arkansas" -> "Alabama" | |
"California" -> "Texas" | |
"Colorado" -> "California" | |
"Connecticut" -> "New Jersey" |
I hereby claim:
To claim this, I am signing this object:
-----BEGIN GEEK CODE BLOCK----- | |
Version: 3.1 | |
GCS/S/M d--(!) s:>:+++ a--- C++++>$ UBL++++ P+>++ L++++ E--- W++ N+ o? | |
K++ w@ !O M !V PS+++ PE@ Y(+) PGP(+)>+++ t+@ 5 X++ R>+ tv++>! b DI+ D++ | |
G+ e>++ h- r*>+ y?>$ | |
------END GEEK CODE BLOCK------ |
resque:workers
=> SET of "host:pid:raw,queue,list" stringsresque:worker:host:pid:raw,queue,list
=> STRING JSON of job payload for a running worker. Set by #working_on
.resque:worker:host:pid:raw,queue,list:started
=> STRING timestamp when worker booted. Static.resque:stat:failed:host:pid:raw,queue,list
=> STRING count of failed jobsresque:stat:processed:host:pid:raw,queue,list
=> STRING count of successful? jobsActiveSupport::Callbacks::Callback | |
class ActiveSupport::Callbacks::Callback | |
def start(key=nil, object=nil) | |
return if key && !object.send("_one_time_conditions_valid_#{@callback_id}?") | |
# options[0] is the compiled form of supplied conditions | |
# options[1] is the "end" for the conditional | |
# | |
case @kind | |
when :before |
require 'benchmark' | |
def measure(gc: false, times: 1000, &block) | |
GC.start | |
GC.disable if gc | |
gc_key = if RUBY_VERSION > 2.2 | |
:total_allocated_objects | |
else | |
:total_allocated_object |
#include <FastLED.h> | |
//#define LED_PIN 5 | |
#define DATA_PIN 9 | |
#define CLOCK_PIN 8 | |
#define NUM_LEDS 300 | |
#define BRIGHTNESS 64 | |
#define LED_TYPE APA102 | |
#define COLOR_ORDER BGR | |
CRGB leds[NUM_LEDS]; |
#!/usr/bin/env ruby | |
require 'json' | |
# Usage: | |
# head production.log.json | ruby json_pluck.rb time,session,message | |
# colorize output when going to stdout or if explicitly requested (e.g. `| less -r`) | |
color = $stdout.tty? | |
color = true if ARGV.first == '-c' && ARGV.shift |
sudo: false | |
env: | |
global: | |
- CONSUL_VERSION=0.5.0 | |
- CONSUL_DC=dev1 | |
- CONSUL_DIR=$HOME/consul_$CONSUL_VERSION | |
before_script: | |
- 'if [[ ! -f $CONSUL_DIR/consul ]]; then (mkdir -p $CONSUL_DIR && cd $CONSUL_DIR && wget https://dl.bintray.com/mitchellh/consul/${CONSUL_VERSION}_linux_amd64.zip && unzip ${CONSUL_VERSION}_linux_amd64.zip); fi' | |
- $CONSUL_DIR/consul --version | |
- $CONSUL_DIR/consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul -dc=$CONSUL_DC & |