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
#!/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: |
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
# Fixes double-encoded UTF-8 | |
# By Martin Falatic, www.Falatic.com 2021-12-03 | |
# Mappings based on https://www.i18nqa.com/debug/utf8-debug.html | |
""" | |
Unmapped: | |
0x81 | |
0x8D | |
0x8F |
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
More documentation can be found at: | |
https://www.falatic.com/index.php/255/on-the-cutting-edge-with-the-esp32-s3 | |
If you haven't done so already, install the following: | |
- Git for Windows (https://gitforwindows.org/) | |
- Python (https://www.python.org/) version 3.6 or later (3.10 is the latest that I've tested) | |
Open a normal command line window (cmd.exe or Windows Terminal) and follow along: | |
;: ######################################################################## |
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
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### | |
############################################################################### |
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
#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 |
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
############################################################################### | |
# 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 |
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
############################################################################### | |
# 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 |
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
############################################################################### | |
# 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 |
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
# 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 |
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
### 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: |