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
#!/usr/bin/bash | |
echo 16383 | tee /sys/bus/usb/devices/2-3/2-3:1.0/net/wwp0s20f0u3/cdc_ncm/rx_max | |
echo 16383 | tee /sys/bus/usb/devices/2-3/2-3:1.0/net/wwp0s20f0u3/cdc_ncm/tx_max | |
echo 16384 | tee /sys/bus/usb/devices/2-3/2-3:1.0/net/wwp0s20f0u3/cdc_ncm/rx_max | |
echo 16384 | tee /sys/bus/usb/devices/2-3/2-3:1.0/net/wwp0s20f0u3/cdc_ncm/tx_max |
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
#!/usr/bin/env bash | |
DELETE=$1 | |
mmcli -m 0 --output-json --messaging-list-sms | jq '."modem.messaging.sms"[]' | while read sms; do | |
SMS_NUM=$(echo $sms | sed 's/"//g'| awk -F/ '{print $NF}') | |
if [ -z $SMS_NUM ]; then | |
exit 0 | |
fi | |
SMS_DATA=$(mmcli --output-json -s $SMS_NUM) | |
SENDER=$(echo "$SMS_DATA" | jq .sms.content.number | sed 's/"//g') |
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
#!/usr/bin/env bash | |
# You *must* change parameters for IP networks, DNS etc. | |
# Otherwise your config *will* not work. | |
usage() { | |
echo "Usage: $0 <name>" | |
} | |
NAME="$1" |
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
#!/usr/bin/env bash | |
# see also https://ip6.li/de/howto/firefox | |
umask 077 | |
TMPDIR="/tmp/ff-certs" | |
# Prefight checks | |
for i in curl grep certtool certutil; do | |
which "$i" > /dev/null 2> /dev/null |
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
#!/usr/bin/env bash | |
########################################################################################### | |
# Import local CA certificates to Linux distributions | |
# Should work with CentOS/RedHat/Fedora, Debian/Ubuntu and Arch Linux | |
########################################################################################### | |
CERTS='https://pki.example.com/ejbca/publicweb/webdist/certdist?cmd=cacert&issuer=CN%3DManagement%2CO%3DChristian+Felsing+2020%2CC%3DDE&level=0' | |
CERTS+=' https://pki.example.com/ejbca/publicweb/webdist/certdist?cmd=cacert&issuer=CN%3DRoot+CA+EC+Gen+1%2COU%3DTrust+Center%2CO%3DChristian+Felsing%2CL%3DTaunusstein%2CC%3DDE&level=0' | |
CERTS+=' https://pki.example.com/ejbca/publicweb/webdist/certdist?cmd=cacert&issuer=CN%3DLegacy+CA%2COU%3DTrust+Center%2CO%3DChristian+Felsing%2CL%3DTaunusstein%2CC%3DDE&level=0' |
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
#!/usr/bin/env bash | |
################################################################## | |
# show subject of all certs in a bundle file (PEM) | |
################################################################## | |
f="$1" | |
if [ -z "$f" ]; then | |
echo "usage: $0 <filename>" | |
exit 1 |
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
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
openssl_conf = openssl_def | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . |
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
#!/usr/bin/env bash | |
# Creates unbound config with blacklisting from adaway | |
# resulting file /etc/unbound/conf.d/ads.conf needs to be | |
# included in unbound.conf | |
# This version was written for Arch Linux | |
# | |
# Expects file /opt/cftools/ads-custom.conf with following content: | |
# local-zone: "<bad.domain>." static | |
# for example: local-zone: "bild.de." static |
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 | |
# https://xkcd.com/936/ | |
# https://gist.github.com/ip6li/f4ebf492a7927887afe8563e6c66face | |
# Do not rely on passwords only. Password authentication w/o 2nd factor | |
# is to be notorious for insecurity independently from password length | |
# or complexity. | |
NUM_WORDS=2 |