Skip to content

Instantly share code, notes, and snippets.

Jonathan Dumont JOduMonT

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am JOduMonT on github.
  • I am jodumont (https://keybase.io/jodumont) on keybase.
  • I have a public key whose fingerprint is D662 B6F8 8637 BCFD 3BB8 1502 7D39 A819 4D2D 119F

To claim this, I am signing this object:

@JOduMonT
JOduMonT / PhotonOS.sh
Last active Apr 11, 2020
PhotonOS script to deploy on Hetzner
View PhotonOS.sh
# IPv6: (Hetzner Cloud)[https://gist.github.com/JOduMonT/320ab7701073e1a6a4fb67f25170a33c]
TZ=""
User=""
SSHKey=""
tdnf update -y
tdnf remove -y cloud-init open-vm-tools
tdnf install -y apparmor-profiles apparmor-utils bindutils cronie diffutils gawk git haveged ipset iputils less photon-upgrade socat tar unzip wget
View gist:e962fa4a942e8bf3571e863fc2c5172c
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFw2HSQg+uiD9yoUCBdy84WvMLxWkHYSmvsHYYktF9yQ JDdumont.com
@JOduMonT
JOduMonT / PhotonOS.md
Last active Jan 25, 2020
PhotonOS Snapshot @hetzner for gLibre
View PhotonOS.md

DETAIL

SNAPSHOT NAME= Ready FROM= mail DATE= Oct 27

STORAGE

fstab

@JOduMonT
JOduMonT / gb2gib.md
Last active Apr 10, 2019
How to have xGIB when you install Debian and it ask your for xGB ?
View gb2gib.md

simply be using this

EXAMPLE

such as during the installation Debian use GB unit
while after the installation it will refer to GiB
so if you want 5GiB for /
you have to define 5.37GB during the installation

@JOduMonT
JOduMonT / hexo.sh
Created Apr 4, 2019
Install Hexo on Debian
View hexo.sh
#!/bin/bash
namePkg="nodejs"
nodejsVersion="10"
workDir="$HOME/Public"
## Install Node.js
if [ -z $(command -v git) ] || [ -z $(command -v nodejs) ]; then
if [ "$EUID" == 0 ]; then
curl -sL https://deb.nodesource.com/setup_$nodejsVersion.x | bash -
@JOduMonT
JOduMonT / Photon OS note for Hetzner and IPv6.md
Last active Dec 3, 2019
How to configure IPv6 for networkd at Hetzner
View Photon OS note for Hetzner and IPv6.md

create /etc/systemd/network/static.network

remove /etc/systemd/network/99-dhcp-en.network

echo -e "[Match]
Name=e*

[Network]
DHCP=ipv4
@JOduMonT
JOduMonT / letsencrypt_notes.sh
Last active Apr 2, 2019 — forked from lachesis/letsencrypt_notes.sh
Set up LetsEncrypt using acme.sh without root
View letsencrypt_notes.sh
# How to use "acme.sh" to set up Lets Encrypt without root permissions
# See https://github.com/Neilpang/acme.sh for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "EXAMPLE.com" as an example
# When this is done, there will be an "acme" user that handles issuing,
# updating, and installing certificates. This account will have the following
# (fairly minimal) permissions:
# - Host files at http://EXAMPLE.com/.well-known/acme-challenge
View Alpine Linux for Hetzner and IPv6
# setup-interface
than vi /etc/network/interfaces
iface eth0 inet static
address
netmask 255.255.255.255
dns-nameservers 1.1.1.1 1.0.0.1
post-up ip route add 172.31.1.1 dev eth0
post-up ip route add default via 172.31.1.1 dev eth0
pre-down ip route del default via 172.31.1.1 dev eth0
pre-down ip route del 172.31.1.1 dev eth0
You can’t perform that action at this time.