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 | |
# | |
# install_cert_batch.sh | |
# | |
# -Description- | |
# | |
# This script is used when you have a lot of pfx to import in an F5 appliance, | |
# but the intermediate certificate is missing in the pfx. | |
# The script add the intermediate certificate and import the certs. |
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 | |
# | |
# This program is free software: you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by the | |
# Free Software Foundation, either version 3 of the License, or (at your | |
# option) any later version. Please see LICENSE.txt at the top level of | |
# the source code distribution for details. | |
# | |
# @package bash_template.sh | |
# @author <[email protected]> |
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
conf t | |
udld message-time 7 | |
int et 1/21 | |
lacp rate fast | |
lacp short-timeout 3 |
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
config system snmp sysinfo | |
set status enable | |
end | |
end | |
config system snmp community | |
edit 0 | |
set name "community" | |
config hosts | |
edit 0 | |
set ip a.b.c.d |
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
gsettings set org.gnome.desktop.peripherals.touchpad send-events disabled-on-external-mouse | |
gsettings set org.gnome.desktop.peripherals.touchpad disable-while-typing true |
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 -e | |
echo "Receive event from ${DEVICE_IFACE:-dummy} ${NM_DISPATCHER_ACTION:-dummy} " >> /tmp/dispatch.log | |
[[ "${DEVICE_IFACE:-dummy}" = "wg0" ]] && [[ "${NM_DISPATCHER_ACTION:-dummy}" = "up" ]] && { | |
systemctl restart systemd-resolved | |
resolvectl dns enp0s25 "1.1.1.2#security.cloudflare-dns.com 1.0.0.2#security.cloudflare-dns.com 2606:4700:4700::1112#security.cloudflare-dns.com 2606:4700:4700::1002#security.cloudflare-dns.com" | |
resolvectl domain enp0s25 ~. | |
resolvectl dnsovertls wg0 yes | |
resolvectl dnsovertls enp0s25 yes | |
resolvectl dnssec wg0 no |
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
[Unit] | |
Description=Scheduled Reboot | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/systemctl --force reboot |
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 | |
/usr/bin/dnf install -y dnf-plugin-system-upgrade | |
/usr/bin/dnf system-upgrade download -y --refresh --releasever=$(( $(/usr/bin/echo $(/usr/bin/uname -r) | /usr/bin/cut -f 4 -d '.' | /usr/bin/tail -c 3) + 1 )) | |
/usr/bin/dnf system-upgrade reboot |
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
[Unit] | |
Description=Reboot Dist Upgrade. | |
[Timer] | |
OnCalendar=*-5,11-27 20:00:00 | |
[Install] | |
WantedBy=multi-user.target |
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
[Unit] | |
Description=Scheduled Upgrade | |
[Service] | |
Type=oneshot | |
ExecStart=/opt/dist-upgrade.sh |