Delete history and exit bash
cat /dev/null > ~/.bash_history && history -c && exit
Print all uncommented config file lines (without the empty ones)
cat file.txt | egrep -v '^#|^$'
#!/bin/bash | |
################################# | |
# Constants / global variables | |
################################# | |
LOGFILE='example.log' | |
LOGLEVEL='INFO' | |
################################# | |
# Functions |
version: "3.7" | |
services: | |
backend: | |
image: registry.example.com/my-example-docker-image:stable | |
restart: always | |
hostname: my-example-service.example.com | |
environment: | |
TZ: Europe/Zurich | |
env_file: |
feature netflow
flow exporter elastic-exp
description elasticsearch exporter
destination 10.10.10.10 use-vrf XY
transport udp 9995
source Vlan123
dscp 0
version 9
Use the following commands to add CA certificates to the Firefox truststore via command line. Ensure Firefox is closed while running these commands! certutil
comes with the installation of libnss3-tools
.
certificateFileRoot="root.crt"
certificateNameRoot="Root CA"
certificateFileInter="intermediate.crt"
certificateNameInter="Intermediate CA"
# We use cert9.db and "sql:..." since cert8.db is in the legacy format
for certDB in $(find ~/.mozilla* -name "cert9.db")
Use the following commands to add a security device module to Firefox. Ensure Firefox is closed while running these commands! modutil
comes with the installation of libnss3-tools
.
securityModuleDeviceName="My Awesome Module"
securityModulePath="/usr/lib/libBlaBla.so"
# We use cert9.db and "sql:..." since cert8.db is in the legacy format
for devicedDB in $(find ~/.mozilla* -name "cert9.db")
do
certDir=$(dirname ${devicedDB});