Skip to content

Instantly share code, notes, and snippets.

View citrusui's full-sized avatar
📚
Resist fascism.

Avery citrusui

📚
Resist fascism.
View GitHub Profile
@radiantly
radiantly / noMangleGoogle.user.js
Last active February 4, 2025 20:32
Prevent Google from mangling links on the search results when clicking or copying on Firefox
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @match https://www.google.com/search
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==
@loveemu
loveemu / agbinator.csv
Last active November 24, 2024 09:17
AGBinator: GBA Sound Driver List (2024-01-06)
Internal name Serial Driver name Driver version Filename
F-ZERO ADVAN AGB-AFZJ-JPN MusicPlayer2000 0001 - F-Zero (J).gba
SUPER MARIOA AGB-AMAJ-JPN MusicPlayer2000 0002 - Super Mario Advance (J).gba
ROCKMAN_EXE AGB-AREJ-JPN MusicPlayer2000 0003 - Battle Network RockMan EXE (J).gba
KURURIN AGB-AKRJ-JPN MusicPlayer2000 0004 - Kuru Kuru Kururin (J).gba
MR. DRILLER2 AGB-AD2J-JPN MusicPlayer2000/? 0005 - Mr. Driller 2 (J).gba
CHUCHUROCKET AGB-ACRJ-JPN MusicPlayer2000 0006 - Chu Chu Rocket! (J).gba
DRACULA AGB1 AGB-AAMJ-JPN MusicPlayer2000 0007 - Akumajou Dracula - Circle of the Moon (J).gba
ADVANCE GTA AGB-AG7J-JPN MusicPlayer2000 0008 - Advance GTA (J).gba
WAIWAI AGB-AKWJ-JPN 0009 - Konami Wai Wai Racing Advance (J).gba
@JeffMatsonPagely
JeffMatsonPagely / changes.diff
Last active January 24, 2021 05:39
whitehouse.gov styles - Jan 20 2021 14:45:41 GMT-0500
--- old.css 2021-01-22 19:37:42.128976786 -0500
+++ new.css 2021-01-22 19:37:30.008928748 -0500
@@ -1,5 +1,5 @@
-/**** old.min.css ***/
-/*Wed Jan 20 2021 14:45:41 GMT-0500 (Eastern Standard Time)*/
+/**** new.min.css ***/
+/*Fri Jan 22 2021 11:05:45 GMT-0500 (Eastern Standard Time)*/
@charset "UTF-8";
*,:after,:before {
from datetime import datetime
import subprocess
import json
OFFSET = 1288834974657
TIME_DIFF = 359
MACHINE_ID = 377
N = 10
def tweet_id_from_timestamp(utcdttime):
@billti
billti / favicon.js
Last active August 12, 2020 21:23
Create inline GIF favicons
/* Bill Ticehurst, 2020
Emits a minimal 16 x 16 gif suitable for use as an inline favicon
GIF spec at https://www.w3.org/Graphics/GIF/spec-gif89a.txt for the structure
Favicon formats supported at https://en.wikipedia.org/wiki/Favicon
For a transparent GIF (color_table = false, depend_on_background = true) this emits:
<link rel="icon" href="data:image/gif;base64,R0lGODlhEAAQAAAAACwAAAAAAQABAAACASgAOw==">
Rank Type Prefix/Suffix Length
1 Prefix my+ 2
2 Suffix +online 6
3 Prefix the+ 3
4 Suffix +web 3
5 Suffix +media 5
6 Prefix web+ 3
7 Suffix +world 5
8 Suffix +net 3
9 Prefix go+ 2
@IanColdwater
IanColdwater / twittermute.txt
Last active April 14, 2025 16:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@balika011
balika011 / xosdmain_decomp.cpp
Created December 12, 2019 09:47
PSX xosdmain decrypter and decompressor
#include <stdio.h>
#include <stdint.h>
#include <elf.h>
#include <string.h>
struct xorInfo
{
uint8_t *xor_table;
uint8_t *xor_ptr;
uint8_t *source;
@balika011
balika011 / PSX_rel.cpp
Last active April 29, 2024 09:25
This tool can be used to decrypt PSX package binaries, like main.rel. (You need to bring your own key!)
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <openssl/aes.h>
#include <openssl/rsa.h>
#include <algorithm>
#include <openssl/sha.h>
#pragma pack(push, 1)
struct npCoreKey
@balika011
balika011 / osdsys_decomp.cpp
Last active March 5, 2022 16:50
PS2/PSX OSDSYS and PS2LOGO decompressor
#include <stdio.h>
#include <stdint.h>
#include <elf.h>
#include <string.h>
uint8_t *findDataSegment(uint8_t *buf)
{
Elf32_Ehdr *ehdr = (Elf32_Ehdr *) buf;
Elf32_Shdr *shdr = (Elf32_Shdr *)&buf[ehdr->e_shoff];