Skip to content

Instantly share code, notes, and snippets.

View sophia-angel's full-sized avatar
♀️
professional bad girl

Sophia sophia-angel

♀️
professional bad girl
  • HomePlanet.brres
  • 00:33 (UTC -06:00)
View GitHub Profile
@ofan
ofan / gist:1508676
Created December 22, 2011 02:41
csdn passwords
('123456789', 235039)
('12345678', 212761)
('11111111', 76348)
('dearbook', 46053)
('00000000', 34953)
('123123123', 20010)
('1234567890', 17794)
('88888888', 15033)
('111111111', 6995)
('147258369', 5966)
@Prof9
Prof9 / LZ77Decompress.cs
Created August 28, 2014 20:05
GBA LZ decompression function in C#
/// <summary>
/// Decompresses LZ77-compressed data from the given input stream.
/// </summary>
/// <param name="input">The input stream to read from.</param>
/// <returns>The decompressed data.</returns>
public static MemoryStream Decompress(Stream input) {
BinaryReader reader = new BinaryReader(input);
// Check LZ77 type.
if (reader.ReadByte() != 0x10)
@jaames
jaames / gamenote.py
Last active January 25, 2021 03:02
basic decoding for 3ds game note files
import numpy as np
from PIL import Image
from sys import argv
# format structure:
# header
# 4 bytes seem to be a checksum of some kind? they're definitely not a timestamp
# 8 bytes are some kind of magic/ident? (10RC1000 for me)
# 4 bytes padding ?
@jaames
jaames / rkgParser.php
Created September 23, 2016 14:10
PHP parser for Mario Kart Wii rkg files (ghost trial data)
<?php
// ====== Mario Kart RKG (ghost trial data) Parser ======
//
// Based on the documentation found here:
// http://wiki.tockdom.com/wiki/RKG
//
// Written by James Daniel
// github.com/jaames | rakujira.jp
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active July 23, 2024 22:30
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@jaames
jaames / miiParser.php
Created December 12, 2016 15:48
PHP class for parsing Mii data from the Nintendo Wii
<?php
// ====== Mii Data Parser ======
//
// Based on the documentation found here:
// http://wiibrew.org/wiki/Mii_Data#Mii_format
//
// Written by James Daniel
// github.com/jaames | rakujira.jp
// ====== Usage ======
//
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@jaames
jaames / lst.py
Last active April 27, 2023 20:21
convert Flipnote Studio .lst and .pls files to and from .txt
from sys import argv
import hashlib
import numpy as np
xorkey = [
0xF7, 0x4C, 0x6A, 0x3A, 0xFB, 0x82, 0xA6, 0x37,
0x6E, 0x11, 0x38, 0xCF, 0xA0, 0xDD, 0x85, 0xC0,
0xC7, 0x9B, 0xC4, 0xD8, 0xDD, 0x28, 0x8A, 0x87,
0x53, 0x20, 0xEE, 0xE0, 0x0B, 0xEB, 0x43, 0xA0,
0xDB, 0x55, 0x0F, 0x75, 0x36, 0x37, 0xEB, 0x35,
HEXRAYS_LICENSE 6.8
USER Giancarlo Russo, HT Srl
EMAIL g.russo@hackingteam.com
ISSUED_ON 2015-05-25 18:07:13
LICENSE_ID PRODUCT # SUPPORT EXPIRES DESCRIPTION
--------------- -------- -- ---------- --------- -----------------------------
48-3255-7514-28 IDAPRONW 1 2016-04-08 Never IDA Professional Named License (Windows)
48-B055-7514-8E IDAPRONM 1 2016-04-08 Never IDA Professional Named License (Mac)
@jaames
jaames / commentImage.py
Created February 17, 2018 17:07
flipnote studio comment ppm (assumes one frame, single layer, black pen) -> image
#!/usr/bin/python
# Comment PPM -> NPF or Image script for Sudomemo
# github.com/Sudomemo | www.sudomemo.net
#
# Written by James Daniel
# github.com/jaames | rakujira.jp
#
# Command Line Args: