Skip to content

Instantly share code, notes, and snippets.

Chloe Kudryavtsev 5paceToast

Block or report user

Report or block 5paceToast

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@5paceToast
5paceToast / th10.asl
Last active Aug 29, 2015
Touhou 10 Autosplitter
View th10.asl
state("th10")
{
int stageId1 : "th10.exe", 0x74C7C;
//int stageId2 : "th10.exe", 0x74C80;//stage id 2 bugged out once, stage 1 seems to still be fine.
int lives : "th10.exe", 0x74C70;
int power : "th10.exe", 0x74C48;
int score : "th10.exe", 0x74C44;
int stageFrames : "th10.exe", 0x74C88;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am 5pacetoast on github.
  • I am spacetoast (https://keybase.io/spacetoast) on keybase.
  • I have a public key ASDbRhhW9-ZnjCBIA9Rxua_3BbkZzS7Hf1hPzsXF0r8OVgo

To claim this, I am signing this object:

@5paceToast
5paceToast / ibus-toggle
Last active Feb 13, 2018
Ibus toggler for wayland. Define IIM (like PATH, but with ';' as a separator) in your environment, and keybind your change-language key to this script.
View ibus-toggle
#!/bin/zsh
# set IIM like path, but with ;, and containing the list of IMs you want, in order
typeset -T IIM iim \;
local engine=$(ibus engine)
local cur=${iim[(i)$engine]}
local size=${#iim}
@5paceToast
5paceToast / get_netboot_xyz.sh
Created Dec 16, 2019
Gets .kpxe and .efi boot endpoints of netboot.xyz, for use with dnsmasq.
View get_netboot_xyz.sh
#!/bin/sh
USER=dnsmasq:dnsmasq
MIRROR='https://boot.netboot.xyz/ipxe'
KPXE=netboot.xyz.kpxe
UEFI=netboot.xyz.efi
SHA2=netboot.xyz-sha256-checksums.txt
cd "$(dirname $0)"
rm -f "$KPXE" "$UEFI" "$SHA2"
@5paceToast
5paceToast / news.peg
Last active Dec 19, 2019
Toast NEWS PEG
View news.peg
Document <- DocPart+
DocPart <- VersionHeader ( AuthPart EOL )+
VersionHeader <- SectSep Version '(' Date ')' EndOfLine EndOfLine
AuthPart <- AuthorLine Item+
AuthorLine <- Author EOL
Author <- ASCII+ ('"' DomChar+ '"')? ASCII+ '<' Email '>'
Email <- Char+ '@' Domain
Domain <- DomChar+ ( PERIOD DomChar+ )+
@5paceToast
5paceToast / big-pinafore-emojos.user.css
Last active Dec 21, 2019
Toast's UserCSS collection
View big-pinafore-emojos.user.css
/* ==UserStyle==
@name big-pinafore-emojos
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Makes pinafore emojos bigger.
@author Chloe Kudryavtsev
==/UserStyle== */
@-moz-document domain("pinafore.social") {
.inline-custom-emoji {
width: 2.8em;
@5paceToast
5paceToast / fedimg
Last active Jan 12, 2020
Fediverse (mastodon-api compatible) image and file status uploader
View fedimg
#!/bin/zsh
# deps: curl, mkdir(1p), jq
# return codes:
# 1: regular error, see stdout
# 2: media upload error
# 3: status post error
local app=${0:t}
usage() {
echo "$app [-a|-A <token>] [-i|-I <instance>] [-n] [-N <spoiler>] [-s <status>] -f <file>..."
@5paceToast
5paceToast / README.md
Created Jan 14, 2020
Useful MinIO policies
View README.md

Some useful policies for MinIO

A small collection, because reasons.

User Policies

To apply these:

  1. Download the file.
  2. mcli admin policy add MYMINIO NAME NAME.json (replace MYMINIO with your configured instance and NAME with the filename).
  3. mcli admin policy set MYMINIO NAME user=USER (same as above, replace USER with the user you want to configure).
You can’t perform that action at this time.