Skip to content

Instantly share code, notes, and snippets.

View josephdougs's full-sized avatar

Joey Smith josephdougs

View GitHub Profile
@josephdougs
josephdougs / remap.sh
Created August 28, 2021 18:22
Remap the right command key to escape in macbooks on MacOS Sierra or higher
#!/bin/bash
# hidutil can remap keys from one to another;
# This will wipe out any previous remappings you have from hidutil.
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x7000000E7,"HIDKeyboardModifierMappingDst":0x700000029}]}'
# to remove this mapping, reset the user key mappings to be emtpy like this
# hidutil property --set '{"UserKeyMapping":[]}'
# to find other keys to remap, check this reference https://usb.org/sites/default/files/hut1_22.pdf
<html><head>
<title>PICO-8 Cartridge</title>
<meta name="viewport" content="width=device-width">
<script type="text/javascript">
// Default shell for PICO-8 0.1.12
// options
// p8_autoplay true to boot the cartridge automatically after page load when possible
This file has been truncated, but you can view the full file.
var _cartname=['celeste.p8'];
var _cdpos=0; var iii=0; var ciii=0;
var _cartdat=[
0,0,0,0,0,0,0,0,0,0,0,0,128,136,136,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,170,170,10,0,160,170,0,0,0,10,0,0,112,7,119,7,112,119,0,0,0,6,0,0,0,6,0,0,96,0,0,0,0,0,0,128,136,136,8,128,136,136,8,136,136,136,136,128,136,136,8,128,136,136,0,0,0,0,0,128,136,136,8,0,10,0,10,0,160,160,0,0,0,10,0,112,119,119,103,119,119,119,7,0,0,6,0,0,0,6,0,0,96,0,0,0,0,0,0,136,136,136,136,136,136,136,136,136,248,255,143,136,136,136,136,136,136,136,8,128,136,136,8,136,31,255,129,0,154,144,10,0,160,160,0,0,0,10,0,119,102,102,102,118,103,119,119,0,96,0,0,0,0,6,0,0,96,0,0,0,0,0,0,136,248,255,143,136,248,255,143,136,31,255,129,136,248,255,143,248,255,143,8,136,136,136,136,136,255,255,143,0,169,170,9,0,144,154,0,0,0,10,0,103,119,103,102,103,102,102,119,0,96,0,0,0,0,6,0,0,96,0,0,
0,0,0,0,136,31,255,129,136,31,255,129,128,255,255,15,136,31,255,129,24,255,241,8,136,248,255,143,136,255,255,143,0,0,10,0,0,0,10,0,0,0,10,0,0,0,0,0,0,0,0,0,0,96,0,0,0,96,0,0,0,0,6,0,0,0