Skip to content

Instantly share code, notes, and snippets.

View kylemanna's full-sized avatar

Kyle Manna kylemanna

View GitHub Profile
<select class="ipbf-select" id="QIAIDSELECT_6421" name="QIAIDSELECT_6421">
<option value="-1" selected=""></option>
<option value="19746">23andMe</option>
<option value="19747">A9.com</option>
<option value="19748">Adobe</option>
<option value="19754">Amazon.com</option>
<option value="19749">Ancestry.com</option>
<option value="19750">Badgeville</option>
<option value="19751">Big Switch Networks</option>
<option value="19752">Box</option>
@kylemanna
kylemanna / json_cmd.sh
Created May 5, 2014 22:49
Shell functions to wrap cmdline utility output with JSON
#
# Shell functions to wrap cmdline utility output with JSON
#
# Useful for running shell commands and then extracting output with logstash
#
json_kv_pair()
{
K="$1" # key
V="$2" # value
Q="$3" # quote

What we do.

In a nutshell, Verdigris enables electrical intelligence by providing analytics down to the level of an individual appliance (light bulb, computer, microwave, TV, etc). Our data informs our customers about appliance costs so they can better optimize appliance usage. They win on savings and the Earth and all its inhabitants win on CO2 emissions.

How does Verdigris give detailed appliance information?

We send little gnomes out to watch all the electronics in buildings and report back to their overlords when these appliances have problems or waste electricity... at least that is what we let people think. We actually build little intelligent machines to do that for us… but we do make them gnome-shaped to keep the ruse alive.

In all seriousness, we’ve developed algorithms to separate device level information from a single conduit of electrical input. It lets us be more informative with less hardware.

So why would I want to work at Verdigris?

We have to work with less hardware and f

@kylemanna
kylemanna / reverse-ssh.conf
Created August 3, 2014 19:59
Reverse ssh / phone home for Raspberry Pi
# /etc/supervisor/conf.d/reverse-ssh.conf
[program:reverse-ssh]
command=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /home/pi/.ssh/reverse-fwd -R 2233:localhost:22 r@server.example.com
autorestart=true
user=pi
startretries=2147483647
@kylemanna
kylemanna / onfailure.sh
Created September 11, 2014 08:44
Example failure handler for systemd that emails me
#!/bin/bash
#
# Author: Kyle Manna <kyle@kylemanna.com>
#
# Simple systemd script used to be called via something like:
#
# Example Unit section of a service file:
#
# [Unit]
# ...
@kylemanna
kylemanna / LED.md
Created December 10, 2014 04:46
CleanFlight LED Configuration for NeoPixel 7 Jewels for 4 motors

Motor 1

led 0 9,9:S:WFT
led 1 10,10:S:WFT
led 2 11,11:S:IA
led 3 11,11:E:IA
led 4 10,10:E:AT
led 5 9,9:E:AT
led 6 9,9:E:AT
@kylemanna
kylemanna / dmesg-reboots.txt
Last active August 29, 2015 14:20
Samsung 840 EVO with new firmware and now with interface errors
core:~ ❯❯❯ journalctl | egrep -i '^-- Reboot|Linux version|Logs begin|ata8.*failed command' ⏎
-- Logs begin at Mon 2015-04-27 03:30:00 PDT, end at Sun 2015-05-03 12:13:24 PDT. --
-- Reboot --
-- Reboot --
-- Reboot --
-- Reboot --
May 02 16:45:51 core.hq kernel: Linux version 4.0.1-1-ARCH (builduser@tobias) (gcc version 5.1.0 (GCC) ) #1 SMP PREEMPT Wed Apr 29 12:00:26 CEST 2015
-- Reboot --
May 02 16:50:28 core.hq kernel: Linux version 4.0.1-1-ARCH (builduser@tobias) (gcc version 5.1.0 (GCC) ) #1 SMP PREEMPT Wed Apr 29 12:00:26 CEST 2015
-- Reboot --
@kylemanna
kylemanna / dmesg.log
Last active August 29, 2015 14:20
Samsung 840 EVO with new firmware and now with interface errors. Details on my blog @ http://bit.ly/1ANrCbL
[ 0.578208] ata7: SATA max UDMA/133 abar m512@0xfbeff000 port 0xfbeff100 irq 29
[ 0.578211] ata8: SATA max UDMA/133 abar m512@0xfbeff000 port 0xfbeff180 irq 29
[ 0.581455] ehci-pci 0000:00:1a.0: cache line size of 4 is not supported
--
[ 1.063919] scsi 0:0:0:0: Direct-Access ATA ST4000DM000-1F21 CC54 PQ: 0 ANSI: 5
[ 1.065040] ata8: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1.065294] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
--
[ 1.065722] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.066905] ata8.00: supports DRM functions and may not be fully accessible
From 0259b97225a4186a67538ec88a938d7fb61a0008 Mon Sep 17 00:00:00 2001
From: Kyle Manna <kyle@kylemanna.com>
Date: Mon, 29 Jun 2015 15:45:32 -0700
Subject: [PATCH] libierty: Add more tests
* This is broke on bintuils 2.25
---
libiberty/testsuite/demangle-expected | 8 ++++++++
1 file changed, 8 insertions(+)
#!/bin/bash
#
# Git bisect script to find the source of demangle issues
#
# $ git bisect start binutils-2_25 binutils-2_24 libiberty
# $ git bisect run ./git-bisect-libiberty.sh
#
ret=0