Skip to content

Instantly share code, notes, and snippets.

@dwhacks
dwhacks / ATtiny13a_Erick.ino
Created Apr 14, 2014
Blinking bike light.
View ATtiny13a_Erick.ino
/*
*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 Aug 29, 2015
Couch Potato Deleting
View CPdelete.txt
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
some arduino morse, correct table
View arduino_table.ino
//
//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
Arduino Morse Library file
View Morse.cpp
//
// 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
Arduino Morse library .h file
View Morse.h
//
// 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
//
View attiny13_beacon.ino
// 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 Jun 11, 2014
Attiny85 read serial LCD
View Attiny85_LCD_Serial.ino
/*
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.
View pfsense errors
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
View 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 / teensy_loggerUBLOX
Last active Dec 22, 2015
Ublox cheap GPS logger
View teensy_loggerUBLOX
/*
Original code come from Adafruit GPS logger shield kit - v1.1
http://www.adafruit.com/products/98
http://www.ladyada.net/make/gpsshield/download.html
All of this example Arduino code is Public Domain. Enjoy!
http://en.wikipedia.org/wiki/GNU_General_Public_License
Modified by DWHacks for use with U-blox PCI-5S.
Info about U-blox PCI-5S here: http://emerythacks.blogspot.ca/2013/01/u-blox-pci-5s-cheap-gps-module-for-your.html
Info about DWHacks: dwhacks.blogspot.com
You can’t perform that action at this time.