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 #):
wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-5+debian12_all.deb | |
dpkg -i zabbix-release_6.0-5+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 |
Cat files without comments! only relevant information from config files will be shown
cat php.ini | egrep -v "^\s*(;|$)"
#!/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' | |
#!/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 |
#!/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 |
import glob | |
import os | |
import pwd | |
import re | |
import subprocess | |
import unicodedata | |
from flask import Flask, jsonify, request | |
#!/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" |
#!/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/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 |