Skip to content

Instantly share code, notes, and snippets.

View kylemanna's full-sized avatar

Kyle Manna kylemanna

View GitHub Profile
@prof7bit
prof7bit / _stoploss.py
Created April 22, 2013 18:01
A simple stop loss bot. Adjust STOP_PRICE and STOP_VOLUME to your needs. The file can be reloaded after editing without restarting goxtool by simply pressing the l key.
"""
a simple stop loss bot.
adjust STOP_PRICE and STOP_VOLUME to your needs.
The file can be reloaded after editing without
restarting goxtool by simply pressing the l key.
"""
import strategy
import goxapi
# pylint: disable=C0301
@ssstonebraker
ssstonebraker / sed cheatsheet
Created August 2, 2013 14:06 — forked from un33k/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@Silvenga
Silvenga / dup-backup.sh
Last active February 25, 2023 10:45
For daily systemwide encrypted backups of Ubuntu servers to remote host of Google Drive (free 15GB of storage).
#!/bin/bash
# Place in /usr/share/backup/
# and make executable
# chmod 0744 dup-backup.sh
# install:
# apt-get install duplicity python-gdata python-gobject-2 python-paramiko
## Remeber to change Google drive user name and Google drive folder
## And change Email
# Must run as root for system wide backups
@kmanna
kmanna / caltrain.2014.gopass.companies.html
Created December 13, 2013 00:42
Caltrain 2014 List of companies with GoPass
<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>
<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

Stealing WiFi

/etc/hosts

This will let you access any google owned site. This includes: youtube, google cache, google translate, google search, gmail, google news, etc.

  • Install the HTTPS Everywhere extension
  • Add these rules to your /etc/hosts file
@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 / 20-radeon.conf
Created August 18, 2014 05:09
Adventures with a flaky Radeon 4200 HD GPU on Linux
#
# Xorg Config for an Integrated AMD / ATI Radeon HD 4200 on a MSI 785GTM-E45
#
#
# Use special reduced timings for 1080p HDMI output as it gets rid of screen
# corruption on the Radeon 4200 HD (Win7 never had problems with same cabling).
#
# Other symptoms included skipping audio and periodic screen corruption in XBMC
# as well as general use.
#