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
sudo apt install --reinstall bcmwl-kernel-source | |
sudo modprobe -rv bcma | |
sudo modprobe -v wl |
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 | |
FILES=$1*.*g | |
REGEX='.*(\d{4})-?(\d{2})-?(\d{2})(?>-|_|\s(?>at\s)?)(\d{2})(?>\.|-)?(\d{2})(?>\.|-)?(\d{2}).*' | |
for f in $FILES | |
do | |
echo -n "$f:" | |
date=$(echo "$f" | perl -ne 'print if m/'"$REGEX"'/' | perl -pe 's/'"$REGEX"'\..*/"$1:$2:$3 $4:$5:$6"/g') | |
if [ -n "$date" ]; then | |
echo $date |
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/sh | |
help() | |
{ | |
echo "Usage: reboot_genexis [ -p | --password (REQUIRED) ] | |
[ -u | --user default: user] | |
[ -h | --host default: 192.168.1.1 ] | |
[ --help ]" | |
exit 2 | |
} |
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
# This will recreate timestamps on the stream allowing avidemux to export the file. Note that the output has to be a Matroska container. | |
ffmpeg -start_at_zero -copyts -i input_file.ts -map 0:v -c copy -map 0:a:0 output_file.mkv |
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 | |
# Filename: grab-magnets-from-watchdir.custom-cont-init-script | |
# Save this file in /config/custom-cont-init.d/ | |
# This way it will run everytime the container is created and will add the crontab entry and transmission authentication | |
# Save env files to get authentication | |
printenv | sed 's/^\(.*\)$/export \1/g' > /root/container.env | |
# Add entry to crontab, runs every minute | |
echo '* * * * * . /root/container.env; /config/grab-magnets-from-watchdir.sh' >> /etc/crontabs/root |
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 | |
# This line generates a self signed SSL certificate and key without user intervention. | |
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/C=AU/ST=Some-State/L=Sydney/O=Internet/OU=./CN=./emailAddress=." |