Skip to content

Instantly share code, notes, and snippets.

View Xkeeper0's full-sized avatar
🚮
Online

Xkeeper Xkeeper0

🚮
Online
View GitHub Profile
@Xkeeper0
Xkeeper0 / Hitbox past-broadcast downloader (r1)
Created March 20, 2015 01:16
Hitbox.tv past-broadcast download script
#!/usr/bin/php
<?php
// Oh, um.
// This code is pretty bad. I will add comments and put it into a repo later maybe...
// It needs to probably be fixed up too, this is pretty ugly so far
// I just wanted to proof-of-concept it.
//
// This uses somewhat undocumented API pokes to get video details and download them
// You can only download your own recordings. May not work with VODs, who knows!
@Xkeeper0
Xkeeper0 / Monokai Spacegray Custom.tmTheme
Created August 18, 2015 19:06
Monokai Spacegray Custom - SublimeText3 theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai Spacegray Custom</string>
@Xkeeper0
Xkeeper0 / binimage.php
Created June 2, 2016 23:21
binary-to-PNG art farts
<?php
// See https://twitter.com/xkeepah/status/738508123489468416
// Encode file. First arg = file, second arg = PNG to use as a mask for artfart
$image = encodeFile("Gimmick! (Japan).nes", "gimmick-title.png");
imagepng($image, "/tmp/test.png");
// Filename to decode from PNG. art fart alpha not used
$data = decodeFile("/tmp/test.png");
@Xkeeper0
Xkeeper0 / yk_decmp.php
Last active May 9, 2022 11:52
Decompressor for NIS's YKCMP_V1 compression
<?php
// This file was butchered from the Disgaea PC savefile tools
// https://github.com/Xkeeper0/disgaea-pc-tools/
if (!isset($argv[1])) {
die("Usage: php ". $argv[0] ." <file to decompress>\n");
}
if (!file_exists($argv[1])) {
die("file not found: ". $argv[1] ."\n");
@Xkeeper0
Xkeeper0 / mastodont.css
Created March 30, 2017 21:01
mastodon't, a pack of css tweaks to make mastodon's ui slightly less bad
/* mastodon't, a pack of css tweaks to make mastodon slightly less bad */
* {
/* Disable some ugly animations (e.g., lightbox) */
transform: none;
transition: none;
}
textarea:active, input:active, button:active, *:focus {
/* Make the textbox and buttons indicate being highlighted in some way */
@Xkeeper0
Xkeeper0 / i.php
Created September 24, 2017 17:48
a hastily-written puggsy prototype video data decoder
<?php
/*
JonTT's Puggsy prototype video decoder
Hastily written at one in the morning
Get the video
$ youtube-dl https://www.youtube.com/watch?v=2ZdXmhwcbhQ
Give it a more reasonable name
@Xkeeper0
Xkeeper0 / better-mastodon-ui.css
Last active September 26, 2018 18:36
some user css to make default-ish mastodon ui less terrible
/*
this is some user css you can add to stylebot or whatever your user-css-allowing extension is,
or your mastodon instance itself if you want
sample image of most changes:
general ui: https://icosahedron.website/@Xkeeper/100765176052010274
media uploader: https://icosahedron.website/@Xkeeper/100765236260841467
pinned posts: https://icosahedron.website/@Xkeeper/100787770095983939
--------------------------------------------------------------------------------------
/*
this attempts to make New Gmail™ less shitty by adding some subtle backgrounds,
outlines, and other applications of actual fucking contrast.
sorry about the fact that you're most likely going to have to
figure out what all these mean because lol class names
maybe next time i'll write
html > body > div > div > div > div > div > div > div > span > div > span > table > tbody > tr > td > div > div > div > div > span
/*
Designed for https://text.npr.org/ to make it readable in a desktop browser,
while keeping it no-frills and accessible
Xkeeper, 2018
(The website uses exclusively <p> for everything instead of semantic elements,
so this is really ugly. A native solution could also use media queries to
present a mobile-optimized experience as well...)
*/
@Xkeeper0
Xkeeper0 / asm6.cson
Created October 14, 2018 04:12
atom syntax for 6502 assembly using the asm6 assembler, enhanced from the original
'scopeName': 'source.assembly.6502.asm6'
'fileTypes': [
'asm'
]
'name': '6502 Assembly (asm6)'
'patterns': [
{
'match': ';.*\\n?'
'name': 'comment.line.semicolon'
}