Skip to content

Instantly share code, notes, and snippets.

View Erisa's full-sized avatar
💕

Erisa A Erisa

💕
View GitHub Profile
@TuxSH
TuxSH / screenshot.c
Created May 6, 2016 20:46
screenshots
// taken from d9wip
#define TOP_SCREEN0 (u8*)(*(u32*)0x23FFFE00)
#define TOP_SCREEN1 (u8*)(*(u32*)0x23FFFE00)
#define BOT_SCREEN0 (u8*)(*(u32*)0x23FFFE08)
void Screenshot(const char* path)
{
u8* buffer = (u8*) 0x21000054; // careful, this area is used by other functions in Decrypt9
u8* buffer_t = buffer + 54 + (400 * 240 * 3);
@obfusk
obfusk / sources.list
Created January 4, 2014 19:15
apt sources.list for debian unstable
deb http://ftp.nl.debian.org/debian/ testing main contrib
deb-src http://ftp.nl.debian.org/debian/ testing main contrib
deb http://security.debian.org/ testing/updates main contrib
deb-src http://security.debian.org/ testing/updates main contrib
deb http://ftp.nl.debian.org/debian/ testing-updates main contrib
deb-src http://ftp.nl.debian.org/debian/ testing-updates main contrib
@Melon-Bread
Melon-Bread / NX2OGG.py
Last active November 24, 2018 01:10
A simple python script to convert Nintendo Switch audio files (.lopus) to Vorbis audio files (.ogg)
#!/usr/bin/env python3
"""
Converts .lopus to .ogg via vgmstream & ffmpeg
"""
__author__ = "Melon Bread"
__version__ = "0.5.0"
__license__ = "MIT"
import argparse
@Ovyerus
Ovyerus / Cursor Flipper.ahk
Last active December 1, 2018 02:33
flip flop that cursor baby
; Constants
MOUSE_SWAP := 0x21
SET_CURSORS := 0x57
KEY_ORDER := ["Arrow","Help","AppStarting","Wait","Crosshair","IBeam","NWPen","No","SizeNS","SizeWE","SizeNWSE","SizeNESW","SizeAll","UpArrow","Hand"]
SCHEME = scheme name
; Generate scheme list
RegRead, SchemeList, HKEY_CURRENT_USER\Control Panel\Cursors\Schemes, % SCHEME,
SchemeList := StrSplit(SchemeList, ",")
@joegross
joegross / build_local_tmux.sh
Last active August 1, 2019 06:23
Install tmux without root
#!/bin/bash
set -e
TMUX_VERSION=2.2
LIBEVENT_VERSION=2.0.22-stable
NCURSES_VERSION=6.0
mkdir -p $HOME/local
mkdir -p $HOME/src
@Ratismal
Ratismal / hasteflake.js
Last active August 7, 2019 22:34
converts a snowflake into a hastebin-like token
const data = [
"12345",
"12346",
"22346",
"21345"
]
const output = [];
const consonants = [
@pyk
pyk / README.md
Last active September 18, 2019 17:53
Install Oracle java 8 on debian jessie

Run

wget https://gist.githubusercontent.com/pyk/19a619b0763d6de06786/raw/b09ce3a6626484adb5339597dfd391d0db9fe3cb/install-oracle-java-8-on-debian-jessie.sh
sh install-oracle-java-8-on-debian-jessie.sh

See the following blog post

@Ovyerus
Ovyerus / config.fish
Last active August 7, 2020 04:11
Sexy fish prompt
set -g symb '▲'
set -g leading_brace 0
set -g has_launched 0
function git_info
set -l branch (git rev-parse --abbrev-ref HEAD 2> /dev/null)
printf "%s(%s%s%s)" $c0 $c1 $branch $c0
set -l changes (git status --porcelain --ignore-submodules 2> /dev/null)
@Ovyerus
Ovyerus / prompt-preview.png
Last active August 7, 2020 04:13
Hot powershell prompt
prompt-preview.png
@koumaza
koumaza / Android.Dependencies-to-Manifest.xml.md
Last active December 11, 2020 21:48
Android_Dependencies to Manifest.xml

Example

./ad2mf.sh aosp.dependencies