Skip to content

Instantly share code, notes, and snippets.

i like trains


i like trains
Block or report user

Report or block redsPL

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
redsPL / gist:be43a82b5fb1d5a61d57194fbe842ba8
Created Jul 25, 2019
4chan image dumper w/ following links
View gist:be43a82b5fb1d5a61d57194fbe842ba8
from bs4 import BeautifulSoup
import urllib.request
import sys
import re
import os
arg = sys.argv[1]
opener = urllib.request.build_opener()
redsPL /
Created Oct 17, 2018
Automatic XPI version patcher
if [[ -f $1 ]]; then
echo "XPI Patcher by reds"
mkdir "$1_tmp"; cd "$1_tmp";
unzip ../$1
sed '/<em:targetApplication>$/,/<\/em:targetApplication/!{//!b};d' install.rdf | sed '/<\/Description>$/,/<\/\/RDF/!{//!b};d' > install_.rdf
echo "
<!-- Firefox -->
View gist:8fab19f6d071133679b6a718159df94f
This was a good game, the people who made it did a great job, despite the best efforts of the publisher that they worked for (who eventually screwed over the developers as well). I would still have recommended it, however, if it weren't for some more recent developments. From the EULA:
"The transfer of any personal information and other information to Licensor, its affiliates, vendors, and business partners, and to certain other third parties, such as governmental authorities, in the U.S. and other countries located outside Europe or your home country, including countries that may have lower standards of privacy protection
The information we collect may include personal information such as your first and/or last name, e-mail address, phone number, photo, mailing address, geolocation, or payment information. In addition, we may collect your age, gender, date of birth, zip code, hardware configuration, console ID, software products played, survey data, purchases, IP address and the systems you have played on.
redsPL /
Created May 27, 2018
Fujitsu LifeBook P1610 run-before-touchscreen-perl-driver commands. Yay!
stty -F /dev/ttyS0 9600 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
setserial /dev/ttyS0 port 0x0220 irq 4 autoconfig
xsetwacom --set "Wacom Bamboo Connect Pen stylus" MapToOutput 1280x1024+0+0
while true; do
sudo evtest --query /dev/input/event2 EV_KEY KEY_LEFTMETA
if [[ $? == 10 ]]; then
xdotool mousedown 1
xdotool mouseup 1
redsPL /
Created May 19, 2018
script for measuring raspberry pi's GPU and CPU temp (requires superuser for gpu)
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
cpureal=$(echo $cpu | cut -c 1-2).$(echo $cpu | cut -c 3-6)\'C
gpu=$(vcgencmd measure_temp | cut -c 6-11)
echo "CPU: $cpureal | GPU: $gpu"
redsPL / isnetup
Created May 16, 2018
magic internet checker in bash
View isnetup
# has interweb come back up? know today with this one simple trick!
if ! [[ $ip ]]; then
while true; do
if ping -c 1 $ip &> /dev/null; then
notify-send --urgency=critical --icon=firefox "Internet is back up!"
View theme_greenish_mocp
background = default default
frame = white default
window_title = white default
directory = cyan default bold
selected_directory = black green
playlist = white default bold
selected_playlist = black green
file = white default
selected_file = black green
marked_file = white default bold
You can’t perform that action at this time.