-
Create the script download-caps-routeros. Add or remove packages, depeding on caps' hardware.
-
Add a scheduler
/system scheduler
add name=download-caps-routeros on-event=":delay 120s\
\n/system script run download-caps-routeros" start-time=startup
| #!/bin/bash | |
| # Change to the script's directory & create directory | |
| cd $(dirname "$(readlink -f "$0")") | |
| mkdir -p ./dbdumps | |
| # Load database name + root password | |
| source .env | |
| # Check if variables were provided |
| #!/bin/bash | |
| # https://gist.github.com/sebastian13/c57fb8f62863112825b7b1b912b9a2d8 | |
| # | |
| # This script sets WordPress' file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # and https://stackoverflow.com/a/23755604/8940679 | |
| # | |
| # Idea from https://github.com/mconigliaro/notes/blob/master/wordpress/permissions.md | |
| # | |
| # To use this script run: |
/tool e-mail
set address=smtp.gmail.com [email protected] port=587 tls=starttls \
[email protected] password=___
| # Deploy this via PDQ Deploy or run once as admin | |
| # Delete all Network Printers | |
| Get-WmiObject -Class Win32_Printer | where{$_.Network -eq 'true'} | ForEach-Object {$_.Delete()} | |
| # Add Driver to the Store | |
| # ... example for Sharp 1910a - 9.1.18.47 | |
| pnputil.exe /a "\\nas01\tools\drivers\_Printers\MX_D54_PCL6_PS_1910a_German_64bit\German\PCL6\64bit\su0emdeu.inf" | |
| # Install the Driver |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name example.com 1.example.com; | |
| # Redirect all HTTP links to the matching HTTPS page | |
| location / { | |
| return 301 https://$host$request_uri; | |
| } | |
| } |
| #!/bin/bash | |
| # Change to the script's directory & create directory | |
| cd $(dirname "$(readlink -f "$0")") | |
| mkdir -p ./dbdumps | |
| # Start mysql service | |
| docker --log-level=error compose up -d mysql | |
| # Wait |
| # Access mysql console | |
| mysql -u root -p | |
| # Select Database | |
| use zabbix; | |
| # List existing users | |
| select * from users; | |
| # Update Password |