- data is fetched from a binary RRD file and converted to JavaScript object
- charts are generated with re-usable chart object to reduce duplication of code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = g++ | |
CFLAGS = -c -Wall -std=c++0x | |
LIBPATH = -L/usr/lib | |
TARGETDIR = /usr/local/bin | |
.PHONY: clean install | |
all: silence | |
silence: silence.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make sure only root can run our script | |
if [[ ${EUID} -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
if [[ $# -eq 0 ]]; then | |
echo "Usage:" | |
echo " $0 <systemd|sysv>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi ~ $ sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev \ | |
pkg-config libgl1-mesa-dev libgles2-mesa-dev \ | |
python-setuptools libgstreamer1.0-dev git-core \ | |
gstreamer1.0-plugins-{bad,base,good,ugly} \ | |
gstreamer1.0-{omx,alsa} python-dev cython | |
pi@raspberrypi ~ $ sudo pip install git+https://github.com/kivy/kivy.git@master | |
pi@raspberrypi ~ $ sudo apt-get install python-{pygments,docutils} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# board/orangepi/orangepi_plus/readme.txt | |
OrangePi Plus | |
Intro | |
===== | |
This default configuration will allow you to start experimenting with the | |
buildroot environment for the OrangePi PC. With the current configuration | |
it will bring-up the board, and allow access through the serial console. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NAME=$1 | |
FERAL_SERVER=$2 | |
KEYSTORE=./keys | |
CA=$(< ${KEYSTORE}/ca.crt) | |
CERT=$(< ${KEYSTORE}/${NAME}.crt) | |
KEY=$(< ${KEYSTORE}/${NAME}.key) | |
TLS_AUTH=$(< ${KEYSTORE}/tls-auth.key) | |
OUTPUT=./${NAME}.ovpn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Add these css rules to the end of /usr/share/calibre/content_server/browse/browse.css | |
Place them just before the final }}} | |
*/ | |
#booklist .listnav { | |
padding-bottom: 1em; |
Graphing data pulled from an RRD file using javascriprrd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Minecraft Overviewer dynamic config file for multiple Minecraft worlds | |
# managed by MSM (https://github.com/marcuswhybrow/minecraft-server-manager) | |
import os | |
# Define where to put the output here. | |
outputdir = "/storage/www/vhosts/minecraft.example.com" | |
# Add Javascript to map when rendering | |
from observer import JSObserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kivy | |
kivy.require('1.9.0') | |
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.uix.button import Button | |
from kivy.properties import NumericProperty, ObjectProperty | |
import RPi.GPIO as GPIO |