Skip to content

Instantly share code, notes, and snippets.

Eric Lubow elubow

Block or report user

Report or block elubow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pet-snippet.toml
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
View pet-snippet.toml
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
View pet-snippet.toml
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
View pet-snippet.toml
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
[[snippets]]
description = "Install knife-ec2 while dealing with Mac nokogiri issues"
View 51d-device-test.go
import (
"fmt"
"errors"
"os"
"time"
"fiftyonedegrees"
)
type userAgentData struct {
View pet-snippet.toml
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
[[snippets]]
description = "git reset file.txt back to master"
command = "git checkout HEAD -- file.txt"
View pet-snippet.toml
[[snippets]]
description = "nsq_tail a topic on a specific lookup host"
command = "nsq_tail --lookupd-http-address=nsq-lookup-001:4161 --topic topic_name"
@elubow
elubow / check_aggregate_nsq_depths.py
Created Nov 26, 2014
Check Aggregate NSQ Depths in Nagios
View check_aggregate_nsq_depths.py
#!/usr/bin/env python2.7
import sys
import logging
import functools
import time
import tornado.options
import tornado.ioloop
import nsq_data
View keybase.md

Keybase proof

I hereby claim:

  • I am elubow on github.
  • I am elubow (https://keybase.io/elubow) on keybase.
  • I have a public key whose fingerprint is CFEC 78CB 0701 57AB AF5C D569 6932 03C1 F066 DB8A

To claim this, I am signing this object:

@elubow
elubow / jingle_bells.cc
Created Dec 7, 2013
Using a Piezo Element and Arduino, you can play jingle bells using this code sample.
View jingle_bells.cc
int speakerPin = 5;
int length = 26;
char notes[] = "eeeeeeegcde fffffeeeeddedg";
int beats[] = { 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2};
int tempo = 300;
void playTone(int tone, int duration) {
for (long i = 0; i < duration * 1000L; i += tone * 2) {
digitalWrite(speakerPin, HIGH);
delayMicroseconds(tone);
You can’t perform that action at this time.