Skip to content

Instantly share code, notes, and snippets.

@gigawatts
gigawatts / hackaday-arrow-nav.user.js
Last active December 22, 2022 19:04
TamperMonkey/GreaseMonkey UserScript to add keyboard arrow navigation to Hackaday articles
// ==UserScript==
// @name Hackaday Arrow Navigation
// @description Adds keyboard arrow navigation to Hackaday articles
// @author Gigawatts
// @version 1.0.0
// @homepage https://gist.github.com/gigawatts/266b2ad2dd699c80a0c323424c39555f/
// @updateURL https://gist.githubusercontent.com/raw/266b2ad2dd699c80a0c323424c39555f/hackaday-arrow-nav.user.js
// @downloadURL https://gist.githubusercontent.com/raw/266b2ad2dd699c80a0c323424c39555f/hackaday-arrow-nav.user.js
// @match *://hackaday.com/*
@gigawatts
gigawatts / bitlocker-vhd-mount.sh
Created September 8, 2021 00:57
Bitlocker encrypted VHD mount / un-mount scripts
#!/bin/bash
if [ -z "$1" ]
then
echo "No argument supplied"
exit 1
fi
VHD=$1
@gigawatts
gigawatts / wsecho.html
Created June 22, 2021 17:47
Websocket Echo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WebSocket Echo Client</title>
</head>
<body>
<h1>WebSocket Echo Client</h1>
<p>
@gigawatts
gigawatts / somafm-ui.user.js
Last active March 22, 2021 16:57
GreaseMonkey SomaFM player UI enhancements for touch screen
// ==UserScript==
// @name _SomaFM player UI
// @description SomaFM player UI enhancements for touch screen
// @author Gigawatts
// @version 1.0.0
// @homepage https://gist.github.com/gigawatts/95d9c3ae8ba89241e014a351e9cfb42a/
// @updateURL https://gist.githubusercontent.com/raw/95d9c3ae8ba89241e014a351e9cfb42a/somafm-ui.user.js
// @downloadURL https://gist.githubusercontent.com/raw/95d9c3ae8ba89241e014a351e9cfb42a/somafm-ui.user.js
// @match *://somafm.com/player/*
// @grant GM_addStyle
@gigawatts
gigawatts / transmission-flood.js
Last active March 15, 2021 21:57
Transmission Web UI Flood | tampermonkey
// ==UserScript==
// @name Flood Web UI contrast fix
// @namespace https://gist.github.com/gigawatts/
// @description Fix the low contract colors used on the Flood web UI
// @author Gigawatts
// @homepage https://gist.github.com/gigawatts/eee083fe09a9d09a726199322c62a99e/
// @updateURL https://gist.githubusercontent.com/raw/eee083fe09a9d09a726199322c62a99e/transmission-flood.js
// @downloadURL https://gist.githubusercontent.com/raw/eee083fe09a9d09a726199322c62a99e/transmission-flood.js
// @version 1.0.1
// @match http://*/transmission/web/*
@gigawatts
gigawatts / modem-signal-parser.sh
Created December 20, 2020 02:14
Motorola / Arris SurfBoard modem signal monitoring script
#!/bin/bash
## Monitors 4 upstream and 4 downstream bonding channels from a SurfBoard cable modem
## Sends the data to InfluxDB
URL="http://192.168.100.1/cmSignalData.htm"
INFLUX="http://my-influxdb-server:8086"
db="network"
FILE="/tmp/cmSignalData.htm"
rm -f $FILE
@gigawatts
gigawatts / esp32-micropython-wifi-geiger-counter.py
Created May 17, 2020 23:01
ESP32 MicroPython WiFi Geiger Counter (Work in Progress)
import network
from machine import Pin, Timer, PWM
import utime
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
speaker = Pin(26, Pin.OUT)
MY_SSID = "attwifi"
my_rssi = 0
@gigawatts
gigawatts / moved
Last active April 24, 2019 03:03
Cyphercon 4
Moved to https://github.com/gigawatts/cyphercon4
@gigawatts
gigawatts / thot8_rgb.ino
Created May 8, 2017 02:00
thotcon 0x8 badge RGB demo
// RGB demo on the Thotcon 0x8 badge
// Board type: Arduino Leonardo
#include "FastLED.h"
#define NUM_LEDS 4
#define DATA_PIN 11
// Define the array of leds
CRGB leds[NUM_LEDS];