Skip to content

Instantly share code, notes, and snippets.

@dwhacks
dwhacks / ATtiny13a_Erick.ino
Created April 14, 2014 02:00
Blinking bike light.
/*
*Bike LED
*by DWHacks, using Watchdog sleep timer and Button State Change
*Coded for Attiny13a at 4.8mhz
*check out daynewaterlow.com for more projects and hacks
*/
#include <avr/sleep.h>
#include <avr/wdt.h>
@dwhacks
dwhacks / CPdelete.txt
Last active August 29, 2015 14:00
Couch Potato Deleting
04-19 11:54:43 INFO [hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?y=2013&t=pacific+rim, data: []
04-19 11:54:43 INFO [hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/search/Pacific+Rim+2013/?limit=1, data: []
04-19 11:54:44 INFO [re.providers.info.omdbapi] Found: Pacific Rim (2013)
04-19 11:54:44 INFO [tato.core.plugins.scanner] Found 1 movies in the folder /media/movies/Pacific Rim (2013)
04-19 11:55:38 INFO [tato.core.plugins.renamer] Download of Pacific Rim 2013 BluRay 720p DTS x264-MgB completed!
04-19 12:42:48 INFO [otato.core.plugins.manage] Updating manage library: /media/movies04-19 12:42:48 INFO [hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/search/Pacific+Rim+2013/?limit=1, data: []
04-19 12:42:48 INFO [hpotato.core.plugins.base] Opening url: get http://www.omdbapi.com/?y=2013&t=pacific+rim, data: []
04-19 12:42:48 INFO [re.providers.info.omdbapi] Found: Pacific Rim (2013)
04-19 12:42:49 INFO [tato.core.plugins.scanner] Found 1 movie
@dwhacks
dwhacks / arduino_table.ino
Created May 8, 2014 02:22
some arduino morse, correct table
//
//Arduino Nano Beacon ver 1.0
// Written by Michele Casali Iz3klb
// Email: iz3klb@yahoo.it
//
// This code is so trivial that I'm releasing it completely without
// restrictions. If you find it useful, it would be nice if you dropped
// me an email. Feel free to use whatever.
//
@dwhacks
dwhacks / Morse.cpp
Created May 8, 2014 03:44
Arduino Morse Library file
//
// Arduino Morse Library
//
// Put this file with Morse.h inside a folder "Morse" in your "libraries" folder within your sketchbook folder.
// /your_sketch_folder/libraries/Morse
// Then restart the arduino software.
//
// Origonally written by Erik Linder SM0RVV and Mark VandeWettering K6HX
// Contact: sm0rvv at google mail
// Updated by Dayne Waterlow DWHACKS to fix a few table errors
@dwhacks
dwhacks / Morse.h
Created May 8, 2014 03:48
Arduino Morse library .h file
//
// Arduino Morse Library
// Written by Erik Linder SM0RVV and Mark VandeWettering K6HX
//
// Put this file with Morse.cpp inside a folder "Morse" in your "libraries" folder within your sketchbook folder.
// /your_sketch_folder/libraries/Morse
// Then restart the arduino software.
//
// Released 2011 under GPLv3
//
@dwhacks
dwhacks / attiny13_beacon.ino
Created June 10, 2014 01:40
attiny_13 beacon
// attiny13_beacon.ino
#include <Morse.h>
Morse morse(4, 10, 1); //set up the Morse Pin, Speed, type
void setup() {
}
@dwhacks
dwhacks / Attiny85_LCD_Serial.ino
Created June 11, 2014 01:51
Attiny85 read serial LCD
/*
SoftSerial Enabled LCD Kit
by: Jim Lindblom - SparkFun Electronics
Characters received in a Softserial stream are displayed on a 16x2,
20x4, etc. LCD. Special commands are also available to clear, scroll
display cursors and other functions.
License: Beerware - As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day,
and you think this stuff is worth it, you can buy
me a beer in return.
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin>
X-Cron-Env: <HOME=/var/log>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% 0% 1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%rules/deleted.rules: Write failed
rules/exploit-kit.rules: Write failed
rules/exploit.rules: Write to restore size failed
rules/file-executable.rules: Write to restore size failed
@dwhacks
dwhacks / DEBUG=9
Created September 7, 2013 17:40
debug=9
PHYS: transact 10000111
PHYS: flush 21 13 1c 00 00 00 30 80 10 87 07 07 07
PHYS: expecting 13 = 10 ack + 3 data bytes
PHYS: skipping 10 acks: 01 01 01 01 01 01 01 01 01 01
PHYS: read: 00 01 00
PHYS: read ack: 2
SWD: SWD WAIT, retrying
SWD: SWD transaction ap in 0, try 2
PHYS: transact 10000111
PHYS: turning out
@dwhacks
dwhacks / gist:6484481
Last active December 22, 2015 14:18
GPS data
#~$GPRMC,031106.250,A,4528.8808,N,07334.0089,W,0.10,,120913,,,A*68
#$GPVTG,,T,,M,0.10,N,0.2,K,A*10
#~$GPGGA,031106.500,4528.8808,N,07334.0090,W,1,07,1.4,32.7,M,-32.6,M,,0000*59
#!$GPGSV,2,1,08,15,65,055,36,18,63,301,32,19,05,332,24,21,65,231,30*75
#!$GPGLL,4528.8808,N,07334.0090,W,031106.500,A,A*42
#~$GPVTG,,T,,M,0.10,N,0.2,K,A*10
#~$GPGSA,A,3,19,18,26,21,22,24,15,,,,,,2.5,1.4,2.0*36
#~$GPGSV,2,2,08,22,27,290,31,24,46,143,28,26,19,053,31,30,13,053,30*79
#~$GPRMC,031107.000,A,4528.8808,N,07334.0090,W,0.04,,120913,,,A*63
#$GPVTG,,T,,M,0.04,N,0.1,K,A*16