View Cylon-mod.ino
#include <FastLED.h> | |
// How many leds in your strip? | |
#define NUM_LEDS 8 | |
// For led chips like Neopixels, which have a data line, ground, and power, you just | |
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock, | |
// ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN | |
#define DATA_PIN 7 // 7 on Teensy 4.0/4.1, 25 on ESP32 | |
#define CLOCK_PIN 13 |
View Installing_Arduino_on_Ubuntu_16.04.bash
############################################################################### | |
# Installing Arduino on Ubuntu 16.04+ | |
############################################################################### | |
### Set project area | |
export MYPROJROOT=~/Projects | |
export MYPKGNAME=arduino | |
export MYPKGVER=1.8.2 | |
export MYPKGOS=linux | |
export MYPKGARCH=amd64 # Intel architectures |
View ue4_save_game_extractor_recompressor.py
#!/usr/bin/env python3 | |
""" | |
Python 3 code that can decompress (to a .gvas file), or recompress (to a .savegame file) | |
the UE4 savegame file that Astroneer uses. | |
Though I wrote this for tinkering with Astroneer games saves, it's probably | |
generic to the Unreal Engine 4 compressed saved game format. | |
Examples: |
View RPi_Kernel_building_with_optional_kmemleak_etc.sh
############################################################################### | |
# Compiling the RPi kernel in situ, with optional memory leak debugging | |
# | |
# Extends https://www.raspberrypi.org/documentation/linux/kernel/building.md | |
############################################################################### | |
# On the Raspberry Pi | |
cd ~/Projects | |
# Install rerequisites |
View Building_Python_on_the_RPi2.bash
# Condensed and revised from Blake's site (unreachable currently): | |
# http://sowingseasons.com/blog/building-python-3-4-on-raspberry-pi-2.html | |
# Install prerequisites | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y \ | |
build-essential libncursesw5-dev libgdbm-dev libc6-dev \ | |
zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl \ | |
libreadline6-dev liblzma-dev libbz2-dev libdb-dev |
View Building-Installing_Go_on_the_RPi_or_Ubuntu.bash
############################################################################### | |
# Building Go on the Raspberry Pi | |
############################################################################### | |
# Based on the work of Dave Cheney | |
# http://dave.cheney.net/2015/09/04/building-go-1-5-on-the-raspberry-pi | |
# Also info in the docs: | |
# https://github.com/golang/go/blob/master/src/make.bash | |
############################################################################### | |
### Set project area |
View RPi_Kernel_building_cross_compiled.sh
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### |
View gist:0ebb35a7bbe2a09c9754
### Keybase proof | |
I hereby claim: | |
* I am martymacgyver on github. | |
* I am martymacgyver (https://keybase.io/martymacgyver) on keybase. | |
* I have a public key whose fingerprint is DA1D FD8F 990E 6C91 9711 4128 859F 5DF6 F4A9 8D01 | |
To claim this, I am signing this object: |