Skip to content

Instantly share code, notes, and snippets.

View vivlim's full-sized avatar

Vivian Lim ⭐ vivlim

View GitHub Profile
<table>
<tr>
<td>
<h2>player 1</h2>
<iframe src="https://gamepadviewer.com/?p=1&sc=0.5" width="400" height="400"></iframe>
</td>
<td>
<h2>player 2</h2>
<iframe src="https://gamepadviewer.com/?p=2&sc=0.5" width="400" height="400"></iframe>
</td>
@vivlim
vivlim / profiles.json
Last active September 13, 2019 07:29
windows terminal settings
{
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [{
"command": "closeTab",
"keys": [
"ctrl+shift+w"
@vivlim
vivlim / targz-repack.py
Created March 9, 2019 19:42
Extract and re-pack part of a tar.gz
import tarfile
t = tarfile.open("<input filename>", "r:gz")
out = tarfile.open("<output filename>", "w:gz")
for f in t:
path = f.path
# use your own logic to match files you want to take here
if path.startswith("mnt/usr") or path.startswith("mnt/var"):
print(path)
data = t.extractfile(f)
@vivlim
vivlim / tphd-notes.md
Created October 9, 2018 06:24
Rough notes on Twilight Princess HD ram hacking
  • Typically you would be able to use this trainer to do some basic things. But TCPGecko stops working as soon as you launch the game.
  • I had good results with geckiine which bundles an older version of TCPGecko as well as cafiine (which also doesn't seem to work with TPHD.) MuddyAce on gbatemp suggested this and it worked for me too.
  • A key difference that I noticed with Geckiine is that it seemed to re-initialize when I loaded TPHD. I didn't do any exhaustive testing, but it was clear that it was loading because the prompt for my cafiine server's IP would show up when I launched the game.
  • For cafiine you can use whatever server you like. It isn't really necessary but it means you don'

Keybase proof

I hereby claim:

  • I am vivlim on github.
  • I am vvn (https://keybase.io/vvn) on keybase.
  • I have a public key ASBu0BoNfRC8tFnzvzGHaBIBPYpN8R-zn1deRvBm4BzioQo

To claim this, I am signing this object:

@vivlim
vivlim / ibm 3270 cybre.space userstyle
Last active March 28, 2018 23:37
ibm 3270 cybre.space userstyle
/* ==UserStyle==
@name cybre.space use IBM3270 font
@namespace github.com/openstyles/stylus
@version 0.0.2
@description just replace a font
@author vivlim
==/UserStyle== */
@-moz-document domain("cybre.space") {
body {
@vivlim
vivlim / ibm 3270 cybre.space userstyle
Created March 28, 2018 22:17
ibm 3270 cybre.space userstyle
/* ==UserStyle==
@name cybre.space use IBM3270 font
@namespace github.com/openstyles/stylus
@version 0.0.0
@description just replace a font
@author vivlim
==/UserStyle== */
@-moz-document domain("cybre.space") {
body.system-font {
@vivlim
vivlim / gist:661830da95181c501e08f559801b9fae
Created February 13, 2018 05:49
Use a Raspberry Pi Zero W as a ad-blocking ssl-stripping proxy for vintage computers over USB
Follow this guide to set up your pi initially
https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a
Make sure that you are plugging usb into the data port and not the power port
The pi's ip when plugged in will be 169.254.45.166, if the name raspberrypi.local doesn't resolve
do the usual to set up wifi on the pi and upgrade your packages
@vivlim
vivlim / arch.md
Last active May 13, 2021 08:35 — forked from onlurking/arch.md
Arch Linux chroot on Termux (aarch64)

Arch Linux

chroot on Termux (aarch64)

Let's download the Arch ARM image with the text-browser w3m and install proot:

apt install w3m proot
w3m http://archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz

Keybase proof

I hereby claim:

  • I am mjlim on github.
  • I am mjlim (https://keybase.io/mjlim) on keybase.
  • I have a public key whose fingerprint is 0037 C9B0 DA33 F35F B94C 5FA1 AB67 8E9A 5E5A 6E2A

To claim this, I am signing this object: