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/sh -e | |
# This scripts copies crash logs from a Wii U running Aroma with FTPiiU plugin. | |
WIIU_ADDRESS=${1:-wiiu} | |
TEMP_PATH=$(mktemp -d) | |
if [[ -z "$TEMP_PATH" ]] | |
then |
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
### Usage (this will create an image named "test"): | |
### docker build -t test | |
### docker run -it test | |
FROM fedora:latest | |
RUN dnf update -y | |
RUN dnf install -y cmake | |
RUN dnf install -y mingw32-gcc-c++ mingw32-libstdc++ |
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/env python3 | |
import sys | |
import struct | |
# tool to recalculate N64 rom checksums | |
# reference code: | |
# https://github.com/queueRAM/sm64tools/blob/master/n64cksum.c | |
# https://github.com/queueRAM/sm64tools/blob/master/libsm64.c |
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 | |
if [ $# -eq 0 ] | |
then | |
echo "Missing argument: device" | |
exit 1 | |
fi | |
printf '\xAB' | dd of=$1 bs=1 seek=511 count=1 conv=notrunc |
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 | |
for package in $(rpm -qa --queryformat "%{NAME}^%{VERSION}^%{RELEASE}^%{ARCH}\n" | grep "mga7") | |
do | |
IFS="^" read -a fields <<< "$package" | |
name=${fields[0]} | |
echo "downgrading $name" | |
urpmi --auto --downgrade "$name" || exit 1 | |
done |
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/env python3 | |
import curses | |
import curses.ascii | |
import datetime | |
import humanize | |
import psutil | |
def main(screen): |