Skip to content

Instantly share code, notes, and snippets.

View Sinistral2099's full-sized avatar

Sinistral2099 Sinistral2099

View GitHub Profile
@Sinistral2099
Sinistral2099 / 7z2zip
Last active July 21, 2021 18:31
Bash scripts for managing ROM files
#!/bin/bash
version="0.2"
if [ "$#" -ne 1 ]; then
echo "Usage: $(basename $0) [7z file]"
exit 0
fi
function error() {
@Sinistral2099
Sinistral2099 / clearlastplayed.sh
Created August 20, 2019 00:43
Bash Shell script to clear last played games in Emulation Station
#!/bin/sh
#clear_played.sh
for f in /home/pi/RetroPie/roms/**/gamelist.xml
do
echo "file: $f"
grep -e lastplayed -e playcount -v $f > "$f.tmp"
mv -f "$f.tmp" $f
done
@Sinistral2099
Sinistral2099 / pushbullet.sh
Last active August 23, 2018 00:36 — forked from outadoc/pushbullet.sh
Pushbullet bash script
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 <message> [title]"
exit
fi
MESSAGE=$1
TITLE=$2
@Sinistral2099
Sinistral2099 / retropie_upgrade.sh
Last active May 10, 2018 01:37
A script to perform an unattended upgrade a RetroPie.
#!/usr/bin/bash
cd ~/RetroPie-Setup/
git pull
sudo __nodialog=1 ./retropie_packages.sh raspbiantools apt_upgrade
sudo __nodialog=1 ./retropie_packages.sh setup post_update
sudo __nodialog=1 ./retropie_packages.sh setup update_packages
@Sinistral2099
Sinistral2099 / platforms.cfg
Last active January 28, 2020 02:39
RetroPie platforms.cfg file for US consoles.
megadrive_fullname="Sega Genesis"
megadrive_theme="genesis"
pcengine_fullname="TurboGrafx 16"
pcengine_theme="tg16"
pce-cd_fullname="TurboGrafx-CD"
pce-cd_theme="tg-cd"