This file contains hidden or 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 | |
| # | |
| # Add new match entry to Espanso base config file | |
| # | |
| # v0.1 2024-01-10 09:52:15 Init though... | |
| # v0.2 2024-01-10 09:52:52 Added time to date header | |
| # (C) 2024 Gandalf Farnam | |
| # License: MIT | |
| #################################################### |
This file contains hidden or 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
| :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| :: Title: ni.bat | |
| :::::::::::::::::::::: | |
| :: Desc.: curl Ninite and run the program installer | |
| :: Usage: ni.bat [program] | |
| :: Source: https://gist.github.com/aimfireready/765ec65812beb9cedad50cfd97abc6ae | |
| :: | |
| :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| curl -o "%1.exe" https://ninite.com/%1/ninite.exe && call %1.exe |
This file contains hidden or 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
| @echo off | |
| echo. | |
| echo Output current date in standard ISO8601 format | |
| echo v1.0 2023-02-14 | |
| for /F "tokens=2-4 delims=/ " %%a in ('date /t') do set today=%%c%%a%%b | |
| echo Today = '%today%' | |
| pause |
This file contains hidden or 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 | |
| ########################################################### | |
| # ************************ | |
| # ** ** | |
| # ** Init Though ** | |
| # ** ** | |
| # ************************ | |
| # | |
| # Requirements | |
| # - Git installed and configured |
This file contains hidden or 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
| :::::::::::::::::::::::::::::::: | |
| :: | |
| :: Name : Short Ping | |
| :: | |
| :: Usage : 'p x y' | |
| :: | |
| :: Output: 'ping 192.168.x.y' | |
| :: | |
| :: Created: 2022-11-02 | |
| :: |
This file contains hidden or 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
| ###################################################### | |
| # Standard Issue SSH Config for Ubuntu Server | |
| # 2022-10-30 v1.0 Distilled from Gondor | |
| # | |
| # | |
| ###################################################### | |
| Include /etc/ssh/sshd_config.d/*.conf | |
| Port 22 | |
| LogLevel INFO | |
| PermitRootLogin no |
This file contains hidden or 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
| #################################################### | |
| # v1.0.0 | |
| # 2022 Gandalf Farnam | |
| # Send a Pushover notification | |
| # | |
| # Usage: | |
| # - Replace $TOKEN with the shared folder token.* | |
| # - Replace $USER with your domain. | |
| #################################################### |
This file contains hidden or 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
| # v1.0.0 | |
| # 2022 Gandalf Farnam | |
| # Watch for new files in Motioneye directory and upload them to a shared Nextcloud folder. | |
| # | |
| # Specific parameters for inotifywait: | |
| # --event create = only created files. This includes files copied to the target directory | |
| # --exclude .*thumb$ = any files except thumbnails | |
| # -r including subdirectories | |
| # | |
| # Specific parameters for curl: |
This file contains hidden or 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 script will take the groups of the current user. | |
| # Usage: 'clone-groups wesley' | |
| $targetUser=$1 | |
| target=$(for i in $(groups);do echo "$i,";done) | |
| #Remove final character to remove the extra ',' at the end of the string | |
| target=${target%?} | |
| unspaced=$(echo $target | sed 's/ //g') |
This file contains hidden or 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
| printf "Total RAM: %.0fGB\n" $(expr $(cat /proc/meminfo | sed -n 's/MemTotal: //p' | sed -n 's/kB//p') / 1000000) |
NewerOlder