This file contains 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
// Hardware: Arduino Duemilanove w/ ATmega328 and an Adafruit RGB 16x2 LCD Shield | |
// Project: Hackaday Logo made with 6 custom characters | |
// Compiled with: Arduino IDE 1.0.5 | |
#include <Wire.h> | |
#include <Adafruit_MCP23017.h> | |
#include <Adafruit_RGBLCDShield.h> | |
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield(); |
This file contains 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
// PPM MPH readout for Futaba BTTF remote | |
// Using a Seeed Studio 4-Digit 7 segment display (Part Number: LED05291P) | |
#include "TM1637.h" | |
#define CLK 2 //pins definitions for TM1637 and can be changed to other ports | |
#define DIO 3 | |
TM1637 tm1637(CLK,DIO); | |
#define chantotal 1 //How many channels on your radio? | |
#define chanthr 1 // Which channel should we listen to? |
This file contains 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
# xmodmap | |
xmodmap: up to 4 keys per modifier, (keycodes in parentheses): | |
shift Shift_L (0x32), Shift_R (0x3e) | |
lock Caps_Lock (0x42) | |
control Control_L (0x25), Control_R (0x69) | |
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) | |
mod2 Num_Lock (0x4d) | |
mod3 | |
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf) |
This file contains 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 | |
## Extract version from MPM hex or img update file | |
## Run with no arguments for usage | |
function hex2string () { | |
I=0 | |
while [ $I -lt ${#1} ]; | |
do | |
echo -en "\x"${1:$I:2} | |
let "I += 2" |
This file contains 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
// 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]; |
This file contains 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
Moved to https://github.com/gigawatts/cyphercon4 |
This file contains 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
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 |
This file contains 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 | |
## 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 |
This file contains 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
// ==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/* |
OlderNewer