Skip to content

Instantly share code, notes, and snippets.

@earthmeLon
earthmeLon / ps3-3.2.x-patch-glevand.sh
Created April 24, 2012 04:24
@gitbrew script to run glevand kernel patches on 3.2.x
#!/bin/bash
#glevand's PS3 kernel patches
#modified ./patches/series for NAND 3.2.x
#you on twitter? @earthmeLon
# git://gist.github.com/2476405.git
###
###
###Move to your kernel source root
### wget -r --no-parent --reject "index*" http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/
### mv gitbrew.org/~glevand/ps3/linux/linux-3/patches/ ./
@earthmeLon
earthmeLon / ps3-3.3.x-patch-glevand.sh
Created April 24, 2012 04:29
@gitbrew script to run glevand kernel patches on 3.3.x
#!/bin/bash
#glevand's PS3 kernel patches
#modified ./patches/series for NAND 3.3.x
#you on twitter? @earthmeLon
# git://gist.github.com:2476441.git
###
###
###Move to your kernel source root
### wget -r --no-parent --reject "index*" http://gitbrew.org/~glevand/ps3/linux/linux-3/patches-3.3/
### mv gitbrew.org/~glevand/ps3/linux/linux-3/patches-3.3/ ./
@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
@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: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: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 / 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 / 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 / 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 / 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

    # ####################################################################