Skip to content

Instantly share code, notes, and snippets.

View DjLeChuck's full-sized avatar

Vivien DE BONA DjLeChuck

View GitHub Profile
Verifying that +djlechuck is my blockchain ID. https://onename.com/djlechuck
Verifying that "djlechuck.id" is my Blockstack ID. https://onename.com/djlechuck
@DjLeChuck
DjLeChuck / exit-emu-1b-installer
Last active March 19, 2019 12:40
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
@DjLeChuck
DjLeChuck / rpi-exit-emu-1b.py
Created February 8, 2017 08:07
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 / S98exit-emu-1b
Created February 8, 2017 08:07
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
;;
{
"extends": [ "eslint:recommended", "plugin:react/recommended" ],
"plugins": [ "babel", "react" ],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true,
@DjLeChuck
DjLeChuck / deploy-vm
Last active June 1, 2022 20:35
Gestion de VMs via multipass
#!/bin/bash
# /!\ Nécessite "jq" /!\
# Grandement basé sur le script deploy.sh de xavki <3 : https://gitlab.com/xavki/presentation-ansible-fr/-/blob/master/14-plateforme-dev-docker/deploy.sh
help() {
echo "
Options :
- --create : lancer des VMs