This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Download from https://unofficial-builds.nodejs.org/download/release/ the appropriate build for armv6l, example https://unofficial-builds.nodejs.org/download/release/v18.9.1/node-v18.9.1-linux-armv6l.tar.gz | |
wget https://unofficial-builds.nodejs.org/download/release/v18.9.1/node-v18.9.1-linux-armv6l.tar.gz | |
tar -xzf node-v18.9.1-linux-armv6l.tar.gz | |
cd node-v18.9.1-linux-armv6l | |
sudo cp -R * /usr/local | |
node -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If Debian 11 is ran on a LXC container (Proxmox), SSH login and sudo actions can be slow | |
# Check if in /var/log/auth.log the following messages | |
Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms) | |
-> Run systemctl mask systemd-logind | |
-> Run pam-auth-update (and deselect Register user sessions in the systemd control group hierarchy) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# copydb.sh | |
# description : will sync databases after backup | |
APP_VERSION="1.2.0-20210223" | |
### Editable variables | |
MYSQL_HOST="127.0.0.1" | |
MYSQL_USER="automysqlbackup" | |
MYSQL_PASS="xxxxxxx" | |
MYSQL_PORT="3306" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Authorize 8888 on Loadbalancer (haproxy) | |
# In the frontend:80 & frontend:443, add : | |
acl letsencrypt-acl path_beg /.well-known/acme-challenge/ | |
use_backend letsencrypt-backend if letsencrypt-acl | |
# Add a new backend : | |
backend letsencrypt-backend | |
server letsencrypt 127.0.0.1:8888 | |
# Run it once, for the 1st certificate generation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### description : fetch local network IP through Scaleway API (local IP changes on each reboot), and expose these IP in a file (e.g : for firewall purposed) | |
### Author : Charles Bourgeaux <[email protected]> | |
### Date : 11 AUG 2020 | |
### requires `jq` package | |
### Editable variables | |
SCALEWAY_TOKEN='xxxx-xxx-xxx-xxx-xxx' | |
SCALEWAY_ZONE='fr-par-1' | |
IP_LIST_FILE='/opt/sbin/local_authorized_ip' |