Skip to content

Instantly share code, notes, and snippets.

@earthmeLon
earthmeLon / SMW_Shenanigans.mkd
Last active March 12, 2020 19:32
README for SMW Shenanigans @earthmeLon

SMW Shenanigans

Update RAM values to SNES Games, typically Super Mario World, to interact with the game and make changes.

  • Do not intentionally Soft-Lock or Hard-Lock.
  • Do not repeatedly kill the player with the same trick. Spice it up.

Subscribers can use !smwedit commands in chat, while Viewers can spend Melon Seeds to perform writes. Check out SMWCentral's RAM Map to determine Registers and valid Values.

@earthmeLon
earthmeLon / smwCharLut
Last active February 19, 2020 03:41
Determine HEX values for various ASCII characters within Super Mario World.
#!/usr/bin/env python3
# @earthmeLon
'''
Translate ASCII characters to Hex values which map to the same/similar char.
Otherwise:
$: Coin
@: Clock
*: Star
@earthmeLon
earthmeLon / Twitch_Balls.mkd
Last active February 2, 2020 05:03
Twitch Balls aka Channel Points

When a Channel Point reward requires text input from the viewer, this event is available over Chat. Tags are provided with each Message, and these will have a custom-reward-id field.

If a Channel Point reward does not require text input, I have no known method of capturing the event.

Assuming you're on Python/IRC and have something similar to

    # ####################################################################
@earthmeLon
earthmeLon / cs_time.py
Created November 29, 2012 20:32
Convert time to C#
def cs_time():
'''
Convert current time into .Net/C# equivalent
(and think to yourself why you're dealing with C# in the first place).
import datetime
'''
t = str(datetime.datetime.now())
return t.replace(" ", "T")
@earthmeLon
earthmeLon / cacert.org-wget
Created October 25, 2012 20:03
Install CaCert.org for wget (Debian)
##Install CaCert.org for wget (Debian)
## Error: –no-check-certificate
#Install ca-certificates
sudo apt-get install ca-certificates
#Edit /etc/wgetrc
sudo vim /etc/wgetrc
## Append to wgetrc
ca_certificate=/etc/ssl/certs/cacert.org.pem
@earthmeLon
earthmeLon / sources.list
Created October 25, 2012 18:29
Debian Squeeze Repository List (Official)
#squeeze
deb http://ftp.us.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp.us.debian.org/debian/ squeeze main non-free contrib
#security
deb http://security.debian.org/ squeeze/updates main non-free contrib
deb-src http://security.debian.org/ squeeze/updates main non-free contrib
#squeeze updates/volatile
deb http://ftp.us.debian.org/debian/ squeeze-updates main non-free contrib
deb-src http://ftp.us.debian.org/debian/ squeeze-updates main non-free contrib
#backports
@earthmeLon
earthmeLon / .bashrc
Created October 8, 2012 20:30
.bashrc - Enable Bash Completion (Debian/Ubuntu)
#Add to ~/.bashrc
#Enable Bash Completion
#sudo apt-get install bash-completion
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
complete -cf sudo
@earthmeLon
earthmeLon / .bashrc
Created October 8, 2012 20:15
.bashrc - Make copy of CD/DVD from command line
#Add this to ~/.bashrc
#Burn /dev/dvd to /dev/cdrecorder (Change if necessary)
alias copydisk='dd if=/dev/dvd of=/dev/cdrecorder' # Copies bit by bit
@earthmeLon
earthmeLon / .bashrc
Created October 8, 2012 20:13
.bashrc - Encrypt/Decrypt files w. GPG
#Add this to ~/.bashrc
#Encrypt/Decrypt file w. GPG
encrypt ()
{
gpg -ac --no-options "$1"
}
decrypt ()
{
gpg --no-options "$1"
@earthmeLon
earthmeLon / .bashrc
Created October 8, 2012 20:11
.bashrc - Set terminal title
#Add this to ~/.bashrc
#Set current terminal's title
function settitle()
{
if [ $# -eq 0 ]
then
eval set -- "\\u@\\h: \\w"
fi
case $TERM in