- W: Write
- R: Read
W 00 {FF} 00 00 00 // controller 1 red light activate
W 00 {00} 00 00 00 // controller 1 red light deactivate
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.31.17" | |
config.vm.hostname = "rails.demo" | |
config.vm.provider "virtualbox" do |vb| |
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi | |
apt-get update -y | |
apt-get upgrade -y | |
apt-get dist-upgrade -y |
import json | |
import base64 | |
import os | |
import pathlib | |
from urllib.parse import urlparse | |
# list of supported image mime-types | |
# Special thanks to https://gist.github.com/FurloSK/0477e01024f701db42341fc3223a5d8c | |
# Special mention, and thanks to MDN | |
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types |
Adds a context menu to the Gnome File Manager for .mve
& .MVE
files (interplay video format)
Used to save space, but also to enable a minor project I have been wanting for a while to bring an old Windows game to Linux (technically to web, so any OS supporting HTML5 media)
mkdir -p ~/.local/share/file-manager/actions
/** | |
* Generic Container, which can contain a single item, and the next item as a function | |
*/ | |
function cons(value, next) { | |
return function wrap(wrapper) { return wrapper(value, next) }; | |
}; | |
/** | |
* Get value of item by calling unwrap function, taking value | |
*/ |
#!/bin/bash | |
# | |
# This version uses September 2017 august stretch image, please use this image | |
# | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "debian/jessie64" | |
config.vm.network "private_network", ip: "10.0.0.7" | |
config.vm.hostname = "magento2.local" | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine |
[Input-SDL-Control1] | |
# Mupen64Plus SDL Input Plugin config parameter version number. Please don't change this version number. | |
version = 2 | |
# Controller configuration mode: 0=Fully Manual, 1=Auto with named SDL Device, 2=Fully automatic | |
mode = 0 | |
# Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number | |
device = 0 | |
# SDL joystick name (or Keyboard) | |
name = "DragonRise Inc. Generic USB Joystick " |