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 #):
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 |