Skip to content

Instantly share code, notes, and snippets.

CatHub 365 Personal Subscription


CatHub 365 Personal Subscription
View GitHub Profile
sleirsgoevy /
Created Dec 14, 2021
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
chibicode /
Last active Sep 1, 2022
A dead simple React.js Twemoji component.

Twemoji + React

A dead simple React Twemoji component.

Requirements: twemoji

npm install --save twemoji
#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 Feb 19, 2018
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 Aug 6, 2022
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