Skip to content

Instantly share code, notes, and snippets.

View johannrichard's full-sized avatar
😴
I may be quite slow to respond.

Johann Richard johannrichard

😴
I may be quite slow to respond.
View GitHub Profile
@johannrichard
johannrichard / cec.service
Last active January 11, 2017 16:28
CEC REST Service, based on cdc-web (https://github.com/robbiet480/cec-web)
[Unit]
Description=CEC REST Service
# Based on https://github.com/robbiet480/cec-web
[Service]
# Change port if running together with OpenHAB
EnvironmentFile=/etc/default/cec
ExecStart=/usr/local/bin/cec-web $CEC_WEB_OPTS
Type=simple
@johannrichard
johannrichard / vhusb-armbian-install.sh
Last active March 16, 2018 14:05
VirtualHere USB Service (Download Server from https://www.virtualhere.com/usb_server_software)
#!/bin/sh
# This little script downloads the VirtualHere USB client and sets up a service
# on arm-based systems
VHUSB_URL="https://virtualhere.com/sites/default/files/usbserver/vhusbdarm"
VHUSB_BINARY="/usr/local/bin/vhusbdarm"
VHUSB_SERVICE="/etc/systemd/system/vhusb.service"
if [[ `uname -m` == *"arm"* ]]
then
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*
@johannrichard
johannrichard / build_jetty_package.sh
Last active December 21, 2015 09:07 — forked from fclairamb/build_jetty_package.sh
Jetty debian package builder.It takes the jetty script as is and build a jetty server that runs at startup.It's quick & simple version. Improvements are welcome.
#!/bin/sh
# Newest Jetty 9 version (See http://download.eclipse.org/jetty/)
JETTY_VERSION=9.3.6.v20151106
# We reset everything
rm -Rf jetty-distribution-${JETTY_VERSION} jetty
# We prepare the dirs
mkdir -p jetty/opt jetty/etc/init.d jetty/etc/default jetty/DEBIAN
### Keybase proof
I hereby claim:
* I am johannrichard on github.
* I am johannrichard (https://keybase.io/johannrichard) on keybase.
* I have a public key whose fingerprint is 9AFC 4017 D3BE 583A 0989 1C08 D05F 7D85 596E F4FB
To claim this, I am signing this object: