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 / dm-toilet-paper.js
Created October 26, 2020 19:30 — forked from marco79cgn/dm-toilet-paper.js
Scriptable iOS widget that shows the amount of toilet paper which is available at your next dm drugstore
let country = 'de' // replace with 'at' for shops in Austria
let storeId = 251
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}
const widget = new ListWidget()
const storeInfo = await fetchStoreInformation()
const storeCapacity = await fetchAmountOfPaper()
<?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>
#!/bin/bash
################################
# OS X Install ISO Creater #
# #
# Author: shela #
################################
#######################################
# Declarations
@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