Skip to content

Instantly share code, notes, and snippets.

View themaxhero's full-sized avatar
😀

Marcelo Amancio de Lima Santos themaxhero

😀
View GitHub Profile
@jasenmichael
jasenmichael / README.md
Last active October 17, 2024 21:34
how to rip/backup playstation (psx) games to iso for use with retropie emulationstation retroarch pcsx and other emulators

how to rip/backup playstation (psx) games to iso for use with retropie emulationstation retroarch pcsx and other emulators

I had recently been setting up retropie on one of my raspberrypi3's. I found all the psx .iso's I had made years ago ran perfect on the pi3 with retropie. It had been years since I backed up some of my old playstation games, and recently found some more lying around, I decided to add them to my retropie. After searching the internet, I rememberd I used achohol in windoze xp years ago, but now strickly a linux user.

At the time of this writing I am running UbuntuGnome 16.10 on my desktop so I found this method using cdrdao, bchunk, and a bash script

add main universe repo, edit /etc/apt/sources.list and add this line save and exit: deb http://us.archive.ubuntu.com/ubuntu yakkety main universe

update repositories

@fsteffenhagen
fsteffenhagen / sum_filesize.sh
Last active October 31, 2024 17:27
sum human readable file sizes with numfmt and awk
# Input: list of rows with format: "<filesize> filename", e.g.
# filesizes.txt
#######################
# 1000K file1.txt
# 200M file2.txt
# 2G file3.txt
#
# Output:
cat filesizes.txt | numfmt --from=iec | awk 'BEGIN {sum=0} {sum=sum+$1} END {printf "%.0f\n", sum}'