This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: | |
# - open https://developer.spotify.com/documentation/web-api/reference/get-recently-played | |
# - open inspector and get bearer token 1 | |
# - open https://developer.spotify.com/documentation/web-api/reference/add-tracks-to-playlist | |
# - open inspector and get bearer token 2 | |
# - create a new spotify playlist and get the ID | |
# currently spotify APIs are limited to the last 50 played songs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# logwalk.sh is a log file browser | |
# Usage: logwalk.sh <logfile> | |
# input strings you want to filter out | |
# and then "open" when you want to see the full (filtered) results | |
# add multiple filters at once by separating them with pipes, e.g. filter1|filter2|etc | |
GREP= | |
FILTER= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Emulates a nRF8001 temperature beacon; | |
* reads temperature from a DHT11 and sends it via BTLE. | |
* Compatible with Nordic Semiconductor apps such as | |
* nRF Master Control Panel or nRF Temp 2.0. | |
*/ | |
#include <BTLE.h> | |
#include <SPI.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/sleep.h> | |
#include <avr/power.h> | |
#include <avr/wdt.h> | |
// watchdog interrupt | |
ISR (WDT_vect) | |
{ | |
wdt_disable(); // disable watchdog | |
} |