Skip to content

Instantly share code, notes, and snippets.

Avatar
⚙️
Factorio

Sandro SuperSandro2000

⚙️
Factorio
View GitHub Profile
@SuperSandro2000
SuperSandro2000 / gist:b120efa8015e96588f71ab1f893bd67d
Created Jul 6, 2020 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:b120efa8015e96588f71ab1f893bd67d

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
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 "$@"
You can’t perform that action at this time.