Cat files without comments! only relevant information from config files will be shown
- PHP ini files (linnes commented with ;):
cat php.ini | egrep -v "^\s*(;|$)"
- Apache, Nginx conf files (lines commented with #):
| #!/bin/bash | |
| set -e | |
| # Check for root priviliges | |
| if [[ $EUID -ne 0 ]]; then | |
| printf "Please run as root:\nsudo %s\n" "${0}" | |
| exit 1 | |
| fi | |
| apt-get update | |
| apt-get install ca-certificates curl gnupg lsb-release -y |
| #!/bin/bash | |
| # makes a template vm from URL | |
| # call like ./make-ff-proxmox-template.sh 9000 http://firmware-server/factory/gluon-v2022.1.2-x86-64.img.gz | |
| ID=$1 | |
| URL=$2 | |
| FS=lvm | |
| wget $URL -O firmware.img.gz | |
| gzip -df firmware.img.gz |
| #!/bin/sh | |
| # usage: skript.sh eno2 ./gluon-ffac-7520-sysupgrade.img | |
| ip a a 192.168.178.2/24 dev $dev | |
| set -e | |
| image="$2" | |
| dev="$1" |
| import glob | |
| import os | |
| import pwd | |
| import re | |
| import subprocess | |
| import unicodedata | |
| from flask import Flask, jsonify, request | |
| #!/bin/bash | |
| # makes a cloud-init template vm from URL | |
| # call like ./make-debian-template.sh 9000 | |
| # Check for root priviliges | |
| if [[ $EUID -ne 0 ]]; then | |
| printf "Please run as root:\nsudo %s\n" "${0}" | |
| exit 1 | |
| fi |
| #!/bin/bash | |
| set -e | |
| # Check for root priviliges | |
| if [[ $EUID -ne 0 ]]; then | |
| printf "Please run as root:\nsudo %s\n" "${0}" | |
| exit 1 | |
| fi | |
| # for more information look here: https://docs.conda.io/projects/conda/en/latest/user-guide/install/rpm-debian.html | |
| # Install our public GPG key to trusted store |
| #!/usr/bin/lua | |
| -- Install at /lib/setup-mode/rc.d/S14-migrate (chmod +x) | |
| local site = require 'gluon.site' | |
| local uci = require('simple-uci').cursor() | |
| local util = require 'gluon.util' | |
| local pretty_hostname = require 'pretty_hostname' | |
Cat files without comments! only relevant information from config files will be shown
cat php.ini | egrep -v "^\s*(;|$)"
| wget https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb | |
| dpkg -i zabbix-release_latest+debian12_all.deb | |
| apt update | |
| apt install zabbix-agent2 | |
| #apt install zabbix-agent2-plugin-* | |
| # | |
| sed -i 's/Server=127.0.0.1$/Server=127.0.0.1,2001:470:746c:144::ffac:affe:affe,78.47.123.144,2a01:4f8:212:48:b144:ffac:affe:affe,2a01:4f8:191:13c8:b144:ffac:affe:affe/' /etc/zabbix/zabbix_agent2.conf |
| https://unix.stackexchange.com/questions/722954/ssh-stuck-at-expecting-ssh2-msg-kex-ecdh-reply | |
| Somehow I can connect on the second try, but never on the first try after waiting some minutes. | |
| This only happens through the BGP session between the hosts, never when directly accessing the host. | |
| not working: | |
| debug3: kex_choose_conf: will use strict KEX ordering | |
| debug1: kex: algorithm: [email protected] | |
| debug1: kex: host key algorithm: ssh-ed25519 |