Skip to content

Instantly share code, notes, and snippets.

View Haruki's full-sized avatar
🕶️

Pimpelkram Haruki

🕶️
View GitHub Profile
@Haruki
Haruki / ddns_ud.sh
Created June 11, 2021 21:51 — forked from mueslo/ddns_ud.sh
Dynamic A-Record DNS Updater for united-domains.de (OpenWRT/LEDE)
#!/bin/sh
# requires: wget, ca-certificates, grep
#rm /tmp/cookies.txt
cookiefile="/tmp/cookies.txt"
#domain should contain "domain_id:record_id"
domain_id=$(echo $domain | tr ":" "\n" | sed -n "1p")
record_id=$(echo $domain | tr ":" "\n" | sed -n "2p")
@Haruki
Haruki / .hyper.js
Last active October 12, 2017 12:33
hyper.js with Msys2 configuration
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 18,
// font family with optional fallbacks
fontFamily: 'Hack, Consolas, monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@Haruki
Haruki / caddy.sh
Last active April 15, 2017 18:47 — forked from Jamesits/caddy.sh
Install Caddy Server on Ubuntu
apt install curl
curl https://getcaddy.com | bash -s cors,expires,filemanager,git,hugo,ipfilter,jsonp,jwt,locale,mailout,minify,multipass,prometheus,ratelimit,realip,search,upload
chown root:root /usr/local/bin/caddy
chmod 755 /usr/local/bin/caddy
setcap 'cap_net_bind_service=+ep' /usr/local/bin/caddy
mkdir /etc/caddy
chown -R root:www-data /etc/caddy
mkdir /etc/ssl/caddy
chown -R www-data:root /etc/ssl/caddy
chmod 0770 /etc/ssl/caddy
@Haruki
Haruki / 0_reuse_code.js
Created March 27, 2017 08:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console