Skip to content

Instantly share code, notes, and snippets.

@wgbartley
wgbartley / test.ino
Created November 12, 2015 04:49
Quick NeoPixel test on Bluz
#include "application.h"
#include "pinmap_impl.h"
#include "neopixel.h"
#define STRIP_LENGTH 121
int PIXEL_PIN = PIN_MAP[D2].gpio_pin;
neopixel_strip_t m_strip;
uint8_t j;
@wgbartley
wgbartley / drain-list.sh
Last active September 26, 2017 15:39
Drain Redis List to X elements
#!/bin/sh
# Max number of concurrent Redis connections before we back off
CONN_LIMIT=10000
# Check to make sure all arguments were passed
DO_EXIT=0
if [ "$1" == "" ]; then
echo "Please provide a list name (in quotes) as first argument."