Skip to content

Instantly share code, notes, and snippets.

View Ertain's full-sized avatar

Ertain

View GitHub Profile
@Ertain
Ertain / safe-shutdown.service
Created December 12, 2020 07:06
A systemd service file for running safe shutdown Python script on the RetroFlag NESPi case
[Unit]
Description=Safe shutdown for the RetroFlag PiCase that uses Retropie.
[Service]
Type=simple
ExecStart=/usr/bin/python /opt/RetroFlag/SafeShutdown.py &
RemainAfterExit=yes
[Install]
WantedBy=default.target
@Ertain
Ertain / build_godot_with_mono.sh
Last active May 31, 2018 17:55
Builds the Godot Engine with Mono bindings on Linux
#!/bin/bash
if [ ! $(which scons) ]; then
echo "Please install scons."
exit 2
fi
if [ ! $(which msbuild) ]; then
echo "Please install msbuild."
exit 3
@Ertain
Ertain / dim_screen.sh
Last active April 23, 2017 17:43
This is a script for dimming the backlight on my Dell laptop
#!/bin/bash
# Since my backlight is not dimming on its own, I have resorted
# to getting a Bash script to do it for me. This script waits
# a certain amount of seconds (passed as input) until it dims
# the screen.
# This script was found here: http://askubuntu.com/a/762994
# Jason Anderson, February 2, 2017