Skip to content

Instantly share code, notes, and snippets.

⚙️
Factorio

Sandro SuperSandro2000

⚙️
Factorio
Block or report user

Report or block SuperSandro2000

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View isc-dhcp.diff
diff --git a/debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config b/debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config
index aab6611..7f6b2fb 100755
--- a/debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config
+++ b/debian/initramfs-tools/lib/etc/dhcp/dhclient-enter-hooks.d/config
@@ -2,48 +2,56 @@
case "$reason" in
BOUND)
- echo "DEVICE=$interface" >> /run/net-$interface.conf
- echo "PROTO=dhcp" >> /run/net-$interface.conf
View hetzner-dropbear-network.patch
*** /usr/share/initramfs-tools/scripts/functions 2019-09-07 00:12:03.587701832 +0200
--- /usr/share/initramfs-tools/scripts/functions 2019-09-07 00:13:00.793664387 +0200
***************
*** 632,637 ****
--- 632,640 ----
> "${out_d}/$name.yaml"
done
rm -Rf "$tmpd"
+ # Hetzner patch
+ ip route add ${IPV4GATEWAY}/${IPV4NETMASK} dev ${DEVICE}
@SuperSandro2000
SuperSandro2000 / docker-entrypoint.sh
Created Aug 7, 2019
Add host.docker.internal DNS resolution if you are on mac or do not want to run the container in host mode
View docker-entrypoint.sh
RUN HOST_DOMAIN="host.docker.internal" \
# only add it if it does not exist
&& ping -q -c1 $HOST_DOMAIN > /dev/null 2>&1 \
if [ $? -ne 0 ]; then
HOST_IP=$(ip route | awk 'NR==1 {print $3}')
echo -e "$HOST_IP\t$HOST_DOMAIN" >> /etc/hosts
fi
exec "$@"
View actiTIME_readable.user.js
// ==UserScript==
// @name Actitime readable
// @namespace https://ktr.quodata.de/
// @version 0.2.2
// @description make it more readable
// @author adapted SuperSandro2000, original from hannsen https://github.com/hannsen/userscripts/blob/master/actiTIME_readable
// @match https://ktr.quodata.de/actitime/user/submit_tt.do*
// @grant none
// ==/UserScript==
You can’t perform that action at this time.