View mb2gba.s
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
@ Bootstrap for running a GBA multiboot game stored in a ROM cartridge | |
@ Assemble with: | |
@ arm-none-eabi-as -o mb2gba.o mb2gba.s | |
@ arm-none-eabi-objcopy -O binary mb2gba.o mb2gba.bin | |
@ base64 mb2gba.bin | |
start: | |
@ Copy the game into ram | |
mov r0, #0x04000000 |
View dotnet-generate-source.sh
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 | |
set -e | |
# Script to generate a semi-reproducible dotnet source tarball | |
# The only differences accross builds are in the git-info/ directory, | |
# the OfficialBuildId being generated based on the current date. | |
# See tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/WriteSourceRepoProperties.cs | |
version="v${1:-5.0.209.1}-SDK" |
View hslogin-nstrein
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 | |
# Logs in automatically to the "WiFi in de trein" public hotspots, located in | |
# trains in the Netherlands. | |
# Requires: curl, sed | |
set -e | |
tmp="$(mktemp -d -p '' 'hslogin.XXXXXXXXXX')" | |
trap "rm -r '$tmp'" EXIT | |
curl -s -v -m 30 -c "$tmp/cookies" 'http://portal.nstrein.ns.nl/' > "$tmp/page" | |
token="$(sed -n -e 's/.* id="csrfToken" value="\([^"]*\)" .*/\1/p' "$tmp/page")" |
View messagetool.py
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
from sys import argv | |
from struct import unpack, unpack_from, pack | |
from os import makedirs | |
from os.path import isdir | |
from json import dumps, loads | |
def unpack_wchar_str_from(bytes, pos): | |
string = b"" |
View Dummy RSF
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
Dummy .rsf file for 3DS games |
View region.py
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 sys | |
with open(sys.argv[1], "r+b") as f: | |
f.seek(0x2018) | |
f.write("\xFF\xFF\xFF\x7F") | |
f.close |
View ExInjector.py
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/python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import os | |
import random | |
import string | |
import tempfile | |
import binascii | |
import sys | |
import subprocess |
View minecraft-chat-client.py
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 | |
""" | |
Simple script that implements the minecraft protocol | |
to create a basic chat client for said game. | |
No encryption, no online mode, no parsing of chat messages. | |
I tried to make it as extendable as possible, so hack away. | |
PEP8 Note: Ignored E302 (2 newlines between functions) | |
""" |
View Cinnamon-Network-Connections-Shortcut.py
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 shutil | |
import os | |
try: | |
shutil.rmtree(os.environ["HOME"]+"/.local/share/cinnamon/applets/custom-network@example.com/") | |
except: | |
pass | |
shutil.copytree("/usr/share/cinnamon/applets/network@cinnamon.org/", os.environ["HOME"]+"/.local/share/cinnamon/applets/custom-network@example.com/") | |
os.chdir(os.environ["HOME"]+"/.local/share/cinnamon/applets/custom-network@example.com/") |
View rocketpi-motd.sh
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 | |
logo="$(tput setaf 2) | |
.~~. .~~. | |
'. \ ' ' / .' $(tput sgr0) _ $(tput setaf 1) | |
.~ .~~~..~. $(tput sgr0) _ _| |_ _ $(tput setaf 1) | |
: .~.'~'.~. : $(tput sgr0) ___ ___ ___| |_ _|_ _| ___|_|$(tput setaf 1) | |
~ ( ) ( ) ~ $(tput sgr0) | _| . | _| //| -_| |_ | . | |$(tput setaf 1) | |
( : '~'.~.'~' : ) $(tput sgr0) |_| |___|___|___|___|___| | _|_|$(tput setaf 1) | |
~ .~ ( ) ~. ~ $(tput sgr0) |_| $(tput setaf 1) |