Skip to content

Instantly share code, notes, and snippets.

View facundobianco's full-sized avatar

Facundo Bianco facundobianco

View GitHub Profile
@facundobianco
facundobianco / cdiburn.sh
Created January 11, 2018 22:14
Burn CDI images (Dreamcast) in Debian
#!/bin/bash
#
# Script from http://dcemulation.org/phpBB/viewtopic.php?f=48&t=98311
# I just updated it for running into Debian 9.
if whereis -b cdirip | grep -vq /bin
then
echo "cdirip isn't installed, please run:"
echo ""
echo " wget -qO - https://github.com/jozip/cdirip/archive/v0.6.3.tar.gz | tar -zxvf - -C /tmp"
Mario Adventure Simple Manual
--------------------------------------------------------------------------
How to Patch
Depending on the version of the SMB3 rom you have, you'll have to use a different patch.
Mario_Adventure_0.ips is for the SMB3 rom Super Mario Bros. 3 (PRG 0) U.nes rom file name.
Mario_Adventure_1.ips is for the SMB3 rom Super Mario Bros. 3 (PRG 1) U.nes rom file name.
They are not the same, so if one doesn't work, try the other, if that doesn't work, get a
@facundobianco
facundobianco / fetch-calibre-recipes.sh
Created July 28, 2017 22:17
Calibre: Fetch only recipes from git repository
mkdir calibre-recipes-git
cd calibre-recipes-git
git init
git remote add origin https://github.com/kovidgoyal/calibre
git config core.sparsecheckout true
echo '*.recipe' > .git/info/sparse-checkout
git pull --depth=1 origin master
@facundobianco
facundobianco / ignorelid.sh
Created July 3, 2017 15:22
Prevent laptop suspends when lid is closed
sed -i '/HandleLidSwitch=/{s/#//;s/suspend/ignore/}' /etc/systemd/logind.conf && \
service systemd-logind restart
@facundobianco
facundobianco / s3cmd.sh
Created June 21, 2017 21:35
Install S3CMD v1.5.0 in old Debian release
virtualenv s3cmd-virtualenv
source s3cmd-virtualenv/bin/activate
pip install 's3cmd==1.5.0' \
python-magic \
python-gnupg \
python-dateutil
RUN cd /path/to/control/directory -type d -perm -2000 -exec chmod g-s {} \;
@facundobianco
facundobianco / fstab
Created April 26, 2017 12:29
[RetroPie] I have two external disk drive (HDD and SSD) and the best for share contents between is mounting both on the RSPi
# SSD external
/dev/sda1 /home/pi/RetroPie/roms auto gid=1000,uid=1000,rw,umask=133,dmask=022,auto 0 0
# HDD external (WD Elements)
/dev/sdb1 /mnt/wd ntfs-3g gid=1000,uid=1000,rw,umask=133,dmask=022,noauto 0 0
@facundobianco
facundobianco / cal.sh
Created April 21, 2017 14:59
cal on BSD: display the previous, current and next month surrounding today
cal `date -d 'last month' +%m\ %Y` ; cal ; cal `date -d 'next month' +%m\ %Y`
@facundobianco
facundobianco / trust-on-my-personalkey.sh
Last active January 31, 2017 15:05
From the devices that I need to export sensible information
gpg --recv-keys --keyserver pgp.mit.edu 0xF22B8141 || \
wget -qO - https://keybase.io/vando/pgp_keys.asc | gpg --import && \
echo '8116792E9ADE8A5E11046837CDF363B4F22B8141:6:' | gpg --import-ownertrust