I must thank the following people for the knowledge and help they've given me when making all of these scripts. Credits are organized by language. If there's someone I missed, please, let me know.
Click here to expand the list!
-
Ask Different:
- User "Chris Page" - Code to resize a terminal window through Xterm Control Sequences: https://apple.stackexchange.com/questions/33736/can-a-terminal-window-be-resized-with-a-terminal-command.
-
ByteXD:
- User "EdXD" - Code to make a folder and additional options: https://bytexd.com/mkdir-command-create-directories/.
-
DevQA:
- User "Amir Ghahrai" - Code to create and call functions: https://devqa.io/create-call-bash-functions/.
-
DZone:
- User "Rob Allen" - How to extract the base name of a file: https://dzone.com/articles/extracting-the-base-name-of-a-file-in-bash.
-
EDUCBA:
-
Fedora Docs:
- Code to make a folder and refresh font cache: https://docs.fedoraproject.org/en-US/quick-docs/fonts/#unpackaged.
-
GeeksforGeeks:
- Usage of wget: https://www.geeksforgeeks.org/wget-command-in-linux-unix/.
- Array basics: https://www.geeksforgeeks.org/array-basics-shell-scripting-set-1/.
-
How-To-Geek:
- User "Chris Hoffman" - Code to save console output to a file: https://www.howtogeek.com/299219/HOW-TO-SAVE-THE-OUTPUT-OF-A-COMMAND-TO-A-FILE-IN-BASH-AKA-THE-LINUX-AND-MACOS-TERMINAL/.
-
Koen Woortman:
- Code to get the current working directory: https://koenwoortman.com/bash-script-get-current-directory/.
-
Linux:
- User "Jack Wallen" - Command to run Flatpak apps: https://www.linux.com/training-tutorials/how-install-and-use-flatpak-linux/.
-
Linux Bash Shell Scripting Tutorial Wiki:
- Definition and creation of the ".bash_aliases" file: https://bash.cyberciti.biz/guide/~/.bash_aliases.
-
Linuxize:
- How to create Bash aliases: https://linuxize.com/post/how-to-create-bash-aliases/.
-
nixCraft:
- User "Vivek Gite" - Usage of rm to remove a folder: https://www.cyberciti.biz/tips/find-out-if-file-exists-with-conditional-expressions.html.
- User "Vivek Gite" - Code to check if a file exists: https://www.cyberciti.biz/tips/find-out-if-file-exists-with-conditional-expressions.html.
- User "Vivek Gite" - Bash exit status: https://www.cyberciti.biz/faq/linux-bash-exit-status-set-exit-statusin-bash/.
-
Ryan's Tutorials:
- Information about if statements and operators: https://ryanstutorials.net/bash-scripting-tutorial/bash-if-statements.php.
-
ShellHacks:
- ANSI color codes to colorize text: https://www.shellhacks.com/bash-colors/.
-
Stack Overflow:
- User "Jim" - Usage of read to pause the console: https://stackoverflow.com/questions/92802/what-is-the-linux-equivalent-to-dos-pause.
- User "John Kugelman" - Code to copy folder contents except one file: https://stackoverflow.com/questions/1313590/bash-copy-all-files-except-one.
- User "Andy Lester" - Code to set a variable to the output of a command: https://stackoverflow.com/questions/4651437/how-do-i-set-a-variable-to-the-output-of-a-command-in-bash.
- User "Jeff Bowman" - Code to hide command output: https://stackoverflow.com/questions/18062778/how-to-hide-command-output-in-bash.
- User "SethMMorton" - Code to get the current user: https://stackoverflow.com/questions/19306771/how-can-i-get-the-current-users-username-in-bash.
- User "Some programmer dude" - Usage of the bash command: https://stackoverflow.com/questions/8352851/shell-how-to-call-one-shell-script-from-another-shell-script.
- User "gudok" - Code to import functions from a different file: https://stackoverflow.com/questions/36829997/how-to-import-shell-functions-from-one-file-into-another.
- User "chris01" - Code to check if a file exists: https://stackoverflow.com/questions/40082346/how-to-check-if-a-file-exists-in-a-shell-script.
- User "RPradeep" - Parameter to specify the download location on wget: https://stackoverflow.com/questions/1078524/how-to-specify-the-download-location-with-wget.
- User "Saftever" - Usage of unzip: https://stackoverflow.com/questions/7132514/bash-how-to-unzip-a-piped-zip-file-from-wget-qo/.
- User "Charles Duffy" - Correct way of accessing an array through a for loop: https://stackoverflow.com/questions/46181174/accessing-array-through-for-loop-in-linux-shell-script.
- User "bschlueter" - How to determine the name of a function inside of that function: https://stackoverflow.com/questions/1835943/how-to-determine-function-name-from-inside-a-function.
- User "Barmar" - Help with the "binary operator expected error": https://stackoverflow.com/questions/40939134/unix-bash-error-binary-operator-expected.
-
TecAdmin Tutorials:
- Code to make comments: https://tecadmin.net/tutorial/bash-comments.
- User "Rahul" - Code to get the current date and time: https://tecadmin.net/get-current-date-and-time-in-bash/.
-
techStop:
- User "Antonio T." - Tutorial that helped me when starting with Bash: https://techstop.github.io/menu-bash-script/.
-
The GNU Operating System and the Free Software Movement:
- wget exit statuses: https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html.
-
The Linux Documentation Project:
- Code to count files in the current directory: https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x700.html.
-
Unix & Linux Stack Exchange:
- User "John" - Code to suppress error messages: https://unix.stackexchange.com/questions/192042/how-do-i-suppress-error-messages-from-cp.
- User "annahri" - Ways to append text to a file: https://unix.stackexchange.com/questions/567531/ways-to-append-text-to-a-file.
Click here to expand the list!
-
Computer Hope:
- Code to change window color: https://www.computerhope.com/color.htm.
-
Rob van der Woude:
- Code to check for allowed versions to run a script: https://www.robvanderwoude.com/battech_debugging.php.
- Code to enable delayed variable expansion: https://www.robvanderwoude.com/battech_inputvalidation_setp.php.
- Code to check for the availability of a program: https://www.robvanderwoude.com/autodownload.php.
-
ServerFault:
- User "jftuga" - Code to turn off echo-ing: https://serverfault.com/questions/187355/dont-show-batch-file-command-when-execute-it.
-
SevenForums:
- User "not so gray matter" - Tutorial that helped me when starting with Batch: https://www.sevenforums.com/tutorials/78083-batch-files-create-menu-execute-commands.html.
-
Stack Overflow:
- User "TechnoCraft" - Code to change window size: https://stackoverflow.com/questions/8688846/resize-command-prompt-through-commands.
- User "Ryan Bemrose" - Code to invoke Powershell from CMD: https://stackoverflow.com/questions/41862786/how-can-i-download-a-file-from-the-internet-via-command-prompt.
- User "PA." - Code to ignore case sensitivity in variables: https://stackoverflow.com/questions/8759433/windows-batch-command-to-ignore-case-sensitivity-in-variables.
- User "user3647205" - Code to save console output to a text file: https://stackoverflow.com/questions/34617211/batch-file-out-put-to-both-console-and-text.
- User "stuartd" - Code to check if a file exists: https://stackoverflow.com/questions/3022176/how-to-verify-if-a-file-exists-in-a-batch-file.
- User "Recon" - Environment variable to get the current user profile: https://stackoverflow.com/questions/1607271/how-do-you-find-the-current-user-in-a-windows-environment.
-
Tutorials Point:
- Code to make comments: https://www.tutorialspoint.com/batch_script/batch_script_comments.htm.
- Code to change window title: https://www.tutorialspoint.com/batch_script/batch_script_title.htm.
-
Windows Command Line:
- User "SRINI" - Code to change file attributes: https://www.windows-commandline.com/set-read-only-attribute-file/.
Click here to expand the list!
-
Arcane Code:
- User "arcanecode" - How to download files with Invoke-WebRequest: https://arcanecode.com/2018/09/17/downloading-files-with-powershell-and-invoke-webrequest/.
-
ATA Learning:
- User "Adam Bertram" - Code to print a menu: https://adamtheautomator.com/powershell-menu/.
-
CTGlobal:
- User "Jakob Gottlieb Svendsen" - How to create an empty array: https://blog.ctglobalservices.com/powershell/jgs/powershell-how-to-create-an-empty-array/.
-
ITProTV Blog:
- User "Adam Gordon" - Code to get the time and date: https://blog.itpro.tv/get-date-powershell-cmdlet/.
-
Improve Scripting:
- User "Dejan Mladenovic" - Instructions to debug code in Powershell ISE: https://www.improvescripting.com/how-to-debug-powershell-scripts/.
-
Java2Blog:
- User "Arpit Mandliya" - Check if a URL is reachable: https://java2blog.com/check-if-url-is-reachable-powershell/.
-
FAQforge:
- User "Karim Budzar" - Code to make comments: https://www.faqforge.com/powershell/comment-code-powershell/.
-
Microsoft Docs/Microsoft Learn/PowerShell Community:
- Code for if statements: https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-if?view=powershell-7.2.
- Code to change a script working directory: https://docs.microsoft.com/en-us/powershell/scripting/samples/managing-current-location?view=powershell-7.2.
- Code to check if a folder exists: https://devblogs.microsoft.com/powershell-community/determine-if-a-folder-exists/.
- Code to compress archives: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/compress-archive?view=powershell-7.1.
- Code to copy files: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/copy-item?view=powershell-7.1.
- Code to force directory creation with New-Item: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-item?view=powershell-7.2.
- Code to use Test-Path: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-path?view=powershell-7.2.
- Information about arrays: https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-arrays?view=powershell-7.2.
- Information about variables: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_variables?view=powershell-7.1.
- Information about logical operators: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logical_operators?view=powershell-7.2.
- Information about the "foreach" statement: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_foreach?view=powershell-7.2.
- How to write a PowerShell module: https://learn.microsoft.com/en-us/powershell/scripting/developer/module/how-to-write-a-powershell-script-module?view=powershell-7.4.
- Importing a PowerShell module: https://learn.microsoft.com/en-us/powershell/scripting/developer/module/importing-a-powershell-module.
-
YouTube:
- User "MrPowerScripts" - Parameter to print colored text with Write-Host: https://www.youtube.com/watch?v=xA7xGA6cwwQ.
-
SID-500:
- User "Patrick Gruenauer" - How to compress multiple folders with Compress-Archive: https://sid-500.com/2021/10/26/powershell-zip-multiple-folder-or-files-at-once-with-compress-archive/.
-
ShellGeek:
- User "shelladmin" - Code to get the current working directory: https://shellgeek.com/how-to-get-current-directory-full-path-in-powershell/.
-
SS64 Command line reference:
- Code to pause a script: https://ss64.com/ps/pause.html.
-
Stack Overflow:
- User "ChiliYago" - Code to hide console output using Out-Null and the pipeline: https://stackoverflow.com/questions/46586382/hide-powershell-output.
- User "Anders" - How to Test-Path values on an array: https://stackoverflow.com/questions/49179807/test-path-on-an-array-and-return-values.
- User "Jeff Zeitlin" - How to Test-Path two files at once: https://stackoverflow.com/questions/56297149/if-test-path-path-detect-2-files-at-once.
- User "Micky Balladelli" - How to Test-Path with a variable foldername: https://stackoverflow.com/questions/51010422/test-path-with-variable-foldernameZ.
- User "Andy Arismendi" - Usage of Write-Error, Throw and other methods to deal with errors: https://stackoverflow.com/questions/9294949/when-should-i-use-write-error-vs-throw-terminating-vs-non-terminating-errors.
- User "wizzwizz4" - How to query the GitHub API to get the list of branches of a repo: https://stackoverflow.com/questions/10911923/get-the-list-of-git-branches-for-a-repository-hosted-on-github.
- User "Martin Brandl" - How to append a string to the items of an array: https://stackoverflow.com/questions/41412470/appending-a-string-to-each-item-of-an-array.
- User "gaelicWizard" - How to determine the OS using "System.Environment": https://stackoverflow.com/questions/44703646/determine-the-os-version-linux-and-windows-from-powershell.
- User "Jeremy Thompson" - How to return true or false in functions: https://stackoverflow.com/questions/18148560/powershell-functions-that-return-true-false.
- User "user2233949" - Usage examples of function parameters: https://stackoverflow.com/questions/4988226/how-do-i-pass-multiple-parameters-into-a-function-in-powershell.
- Users "mklement0" and "Jason Boyd" - Usage of module manifests and the Export-ModuleMember command: https://stackoverflow.com/questions/74082913/how-to-avoid-repeating-the-exported-functions-in-the-manifest-psd1-and-the-mo and https://stackoverflow.com/questions/38339377/variables-i-listed-to-export-in-my-powershell-module-manifest-arent-actually-ex.
-
Tutorials Point:
- Code to create folders: https://www.tutorialspoint.com/powershell/powershell_files_create_folders.htm.
- Code to delete folders: https://www.tutorialspoint.com/powershell/powershell_files_delete_folders.htm.
- Code for if statements and to create or delete a directory: https://www.tutorialspoint.com/powershell/if_else_statement_in_powershell.htm.
-
4sysops:
- User "Michael Pietroforte" - Code to download Internet files: https://4sysops.com/archives/use-powershell-to-download-a-file-with-http-https-and-ftp/.
- Information about errors in Powershell and how to deal with them: https://4sysops.com/archives/stop-or-exit-a-powershell-script-when-it-errors/.
Click here to expand the list!
-
Ask Ubuntu:
- User "Radu Rădeanu" - Base concept for the "Actualizaciones.sh" script: https://askubuntu.com/questions/405176/shortcut-to-open-terminal-and-run-some-commands.
- User "Seth" - How to execute a script from a .desktop file or a key combo: https://askubuntu.com/questions/398666/execute-sh-script-from-desktop-file.
-
Stack Overflow:
- User "triplee" - How to open the "default" text editor on Linux systems: https://stackoverflow.com/questions/19252791/how-to-open-the-default-text-editor-in-linux.
- Users "ajgringo619" and "GoodMirek" - How to set a Flatpak app as the default browser: https://unix.stackexchange.com/questions/614899/setting-a-flatpak-app-as-the-default-web-browser.
-
Flatpak Docs:
- How to uninstall a Flatpak app: https://docs.flatpak.org/en/latest/using-flatpak.html.
-
ManKier:
- Man page for flatpak update: https://www.mankier.com/1/flatpak-update.
-
Programster's Blog:
- Code to set custom keyboard shortcuts on GNOME: https://blog.programster.org/using-the-cli-to-set-custom-keyboard-shortcuts.
-
Server Fault:
- User "ewwhite" - How to automatically answer yes when using yum install: https://serverfault.com/questions/442088/how-do-you-answer-yes-for-yum-install-automatically.