Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be quite slow to respond.

Johann Richard johannrichard

💭
I may be quite slow to respond.
View GitHub Profile
View net.duplicati.server.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.duplicati.server</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/Duplicati.app/Contents/MacOS/duplicati-server</string>
<string>--webservice-port=8200</string>
@johannrichard
johannrichard / unbound-safe-search.conf
Last active Sep 5, 2020
Unbound DNS Safe Search config entries
View unbound-safe-search.conf
# Safe Search Domains
# Paste / Add this to your Unbound config
local-data: "yandex.com A 213.180.193.56"
local-data: "yandex.ru A 213.180.193.56"
local-data: "yandex.ua A 213.180.193.56"
local-data: "yandex.by A 213.180.193.56"
local-data: "yandex.kz A 213.180.193.56"
local-data: "www.yandex.com A 213.180.193.56"
local-data: "www.yandex.ru A 213.180.193.56"
local-data: "www.yandex.ua A 213.180.193.56"
@johannrichard
johannrichard / asn.js
Last active Oct 11, 2020
Serverless Worker Function for ASN prefix parsing for OPNsense and pfSense
View asn.js
/***
* Worker Function for ASN prefix parsing
* Will query the BigIP API for a given ASN and return a plain-text representation of the ASN prefixes
* (IP ranges) that can be used in either OPNsense or pfSense URL Tables (Firewall alias).
*
* See https://docs.opnsense.org/manual/aliases.html (OPNsense) and https://docs.netgate.com/pfsense/en/latest/firewall/aliases.html (pfSense) for details of their use.
*
* You can deploy this worker for example on the free tier of CloudFlare (Up to 100'000 requests a day) or
* any other serverless platform that supports JavaScript
*
@johannrichard
johannrichard / fixup-mac-address
Last active Oct 12, 2018
InvizBox Go – MAC address change
View fixup-mac-address
#!/bin/sh
# Replace this in `/sbin/fixup-mac-address`
. /lib/functions.sh
. /lib/functions/system.sh
. /lib/ramips.sh
partname=""
offset=""
NEW_MAC=
YES=
View OS X macOS Install ISO Creator
#!/bin/bash
################################
# OS X Install ISO Creater #
# #
# Author: shela #
################################
#######################################
# Declarations
View keybase.md

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 FD56 A316 743F 4B97 C0AA 2DF5 6706 03A7 F614 B32F

To claim this, I am signing this object:

View cec.service
[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
View vhusb-armbian-install.sh
#!/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
View homebridge
# 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 Dec 21, 2015 — 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.
View build_jetty_package.sh
#!/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
You can’t perform that action at this time.