Skip to content

Instantly share code, notes, and snippets.

CatHub 365 Personal Subscription


CatHub 365 Personal Subscription
View GitHub Profile
sleirsgoevy /
Created December 14, 2021 15:42
Script for enabling mass storage emulation on rooted Samsung phones
set -x
killall -STOP adbd
sleep 1
echo 0 > $A/enable
echo mass_storage > $A/functions
echo disk > $A/f_mass_storage/luns
echo 1 > $A/enable
sleep 1
jam1garner /
Last active February 24, 2023 21:29
GDB for Switch Modding Cheatsheet/Tutorial

This is a mini-tutorial of sorts for getting started with gdb on the Switch, with the target audience being people who want to mod and/or reverse games, with no prerequisite knowledge of gdb. The goal will be to walk you through some of the basic workflows needed to use a debugger on the Switch, while being brief enough for skimming for when you forget things.

If some part is unclear, your OS doesn't have install instructions, or you feel part of your workflow should be added here, feel free to comment any additions.

(If you only need a quick reference Jump to the Appendix)

Installing GDB

First off you'll need a version of GDB compatible with aarch64. This can be obtained via either a distribution of

chibicode /
Last active March 5, 2023 17:20
A dead simple React.js Twemoji component.

Twemoji + React

A dead simple React Twemoji component.

Requirements: twemoji

npm install --save twemoji
pvieito / gist:ee6d2c8934a8f84b9aeb467585277b8a
Last active March 21, 2023 00:21 — forked from mnin/gist:c8845c2723a67f282ce92476b2777dcf
Consumer keys of official Twitter clients
View gist:ee6d2c8934a8f84b9aeb467585277b8a

Twitter API Keys

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

#v2.1: Bug fix in FALCOM3 compression
#v2: Full implementation of FALCOM2 for better compression performance and
# implement chunking for FALCOM3
import struct
import io
import pdb
import sys
from functools import partial
jcreedcmu / escape.js
Created February 19, 2018 18:09
Escaping nodejs vm
View escape.js
// The vm module lets you run a string containing javascript code 'in
// a sandbox', where you specify a context of global variables that
// exist for the duration of its execution. This works more or less
// well, and if you're in control of the code that's running, and you
// have a reasonable protocol in mind// for how it expects a certain
// context to exist and interacts with it --- like, maybe a plug-in
// API for a program, with some endpoints defined for it that do
// useful domain-specific things --- your life can go smoothly.
nuomi1 / PrintBootCampESDInfo.swift
Last active January 13, 2023 18:09
macOS and BootCamp Latest
View PrintBootCampESDInfo.swift
#!/usr/bin/env swift
// REPL.swift
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
import Foundation