Skip to content

Instantly share code, notes, and snippets.

Avatar

Vivien DE BONA DjLeChuck

View GitHub Profile
View .eslintrc
{
"extends": [ "eslint:recommended", "plugin:react/recommended" ],
"plugins": [ "babel", "react" ],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true,
View S98exit-emu-1b
#!/bin/bash
case "$1" in
start)
echo "Starting button"
/recalbox/scripts/rpi-exit-emu-1b.py & &> /dev/null
;;
stop)
echo "Stopping button"
killall -9 rpi-exit-emu-1b.py &> /dev/null
;;
View rpi-exit-emu-1b.py
#!/usr/bin/python
#Import libs
import RPi.GPIO as GPIO
import os
import time
#Set Environment
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(10, GPIO.IN, pull_up_down=GPIO.PUD_UP)
#Code
@DjLeChuck
DjLeChuck / exit-emu-1b-installer
Last active Mar 19, 2019
exit-emu-1b-installer
View exit-emu-1b-installer
#! /bin/sh
mount -o remount,rw / &> /dev/null
wget -O /recalbox/scripts/rpi-exit-emu-1b.py https://gist.githubusercontent.com/DjLeChuck/445ce3d37f41f12d5bf8cb9482db4027/raw/46e92e76afb87a8d6e8d1be352730da37aa2dfc4/rpi-exit-emu-1b.py &> /dev/null
wget -O /etc/init.d/S98exit-emu-1b https://gist.githubusercontent.com/DjLeChuck/5f798b0d4af4071a92111bf61703aeb1/raw/197a022608a5c357ea8da34540fc005d42c44b83/S98exit-emu-1b &> /dev/null
chmod 755 /recalbox/scripts/rpi-exit-emu-1b.py &> /dev/null
chmod 755 /etc/init.d/S98exit-emu-1b &> /dev/null
/etc/init.d/S98exit-emu-1b start
rm /recalbox/share/system/exit-emu-1b-installer &> /dev/null
View gist:98f39099afa5865f5135e5938ce111de
Verifying that "djlechuck.id" is my Blockstack ID. https://onename.com/djlechuck
View openname
Verifying that +djlechuck is my blockchain ID. https://onename.com/djlechuck