Skip to content

Instantly share code, notes, and snippets.

@petrockblog
petrockblog / gist:43dd12d8dcd8fe222abb
Created June 14, 2014 10:12
Exemplary output of lsinput command when Xarcade Tankstick is connected to a Debian installation
/dev/input/event7
bustype : BUS_USB
vendor : 0xaa55
product : 0x101
version : 272
name : "XGaming X-Arcade"
phys : "usb-0000:00:06.0-2/input0"
uniq : ""
bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP
@petrockblog
petrockblog / gist:9c81ba51ad8f3ebeba7f
Created May 29, 2014 13:34
Image short code for the RetroPie Contest
[IMG]insert image link here[/IMG]
@petrockblog
petrockblog / gist:5047883
Created February 27, 2013 13:27
Exemplary theme.xml for Emulation Station
<theme>
<listPrimaryColor>0000FF</listPrimaryColor>
<listSecondaryColor>00FF00</listSecondaryColor>
<component>
<type>image</type>
<path>./theme/background.png</path>
<pos>0 0</pos>
<dim>1 1</dim>
<origin>0 0</origin>
@petrockblog
petrockblog / gist:3476134
Created August 26, 2012 08:19
Excerpt from Gamegon_gpio_rpi README
Copy the driver to module path
# mkdir /lib/modules/`uname -r`/kernel/drivers/input/joystick
# cp gamecon_gpio_rpi.ko /lib/modules/`uname -r`/kernel/drivers/input/joystick/
# depmod -a
4.2 Configure pads
# modprobe gamecon_gpio_rpi map=<pad1/GPIO0>,<pad2/GPIO1>,<pad3/GPIO4>,<pad4/GPIO7>
where <pad...> is a number defining the pad type:
0 = no connection
1 = SNES pad
@petrockblog
petrockblog / gist:3358196
Created August 15, 2012 09:43
Run OwncloudPie script
cd OwncloudPie
chmod +x owncloudpie_setup.sh
sudo ./owncloudpie_setup.sh
@petrockblog
petrockblog / gist:3358194
Created August 15, 2012 09:42
Download OwncloudPie script
cd
git clone git://github.com/petrockblog/OwncloudPie.git
@petrockblog
petrockblog / gist:3358189
Created August 15, 2012 09:41
OwncloudPie Preparation
sudo apt-get update
sudo apt-get install -y git dialog
@petrockblog
petrockblog / gist:3258753
Created August 4, 2012 16:53
Start Emulation Station
emulationstation
@petrockblog
petrockblog / gist:3258677
Created August 4, 2012 16:26
Execute RetroPie script
cd RetroPie-Setup
chmod +x retropie_setup.sh
sudo ./retropie_setup.sh
@petrockblog
petrockblog / gist:3258649
Created August 4, 2012 16:19
Install RetroPie script
cd
git clone git://github.com/petrockblog/RetroPie-Setup.git