Change to #!/usr/bin/pwsh

This commit is contained in:
Markus Fleschutz 2021-04-07 11:53:57 +02:00
parent 958265793c
commit 009949ee76
168 changed files with 168 additions and 168 deletions

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./MD5.ps1 [<file>]
.DESCRIPTION prints the MD5 checksum of the given file

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./SHA1.ps1 [<file>]
.DESCRIPTION prints the SHA1 checksum of the given file

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./SHA256.ps1 [<file>]
.DESCRIPTION prints the SHA256 checksum of the given file

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./add-firewall-rules.ps1 [<path-to-executables>]
.DESCRIPTION adds firewall rules for the given executables, administrator rights are required

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./alert.ps1 [<message>]
.DESCRIPTION handle and escalate the given alert message

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-cpu-temp.ps1
.DESCRIPTION checks the CPU temperature

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-dns-resolution.ps1
.DESCRIPTION checks the DNS resolution with frequently used domain names

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-drive-space.ps1 [<drive>] [<min-level>]
.DESCRIPTION checks the given drive for free space left

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-file-system.ps1 [<drive>]
.DESCRIPTION checks the validity of the file system (needs admin rights)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-health.ps1
.DESCRIPTION checks the system health

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-ipv4-address.ps1 [<address>]
.DESCRIPTION checks the given IPv4 address for validity

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-ipv6-address.ps1 [<address>]
.DESCRIPTION checks the given IPv6 address for validity

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-mac-address.ps1 [<MAC>]
.DESCRIPTION checks the given MAC address for validity

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-ping.ps1
.DESCRIPTION checks the ping latency to the internet

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-swap-space.ps1 [<min-level>]
.DESCRIPTION checks the free swap space

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-symlinks.ps1 [<dir-tree>]
.DESCRIPTION checks every symlink in the given directory tree

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-windows-system-files.ps1
.DESCRIPTION checks the validity of the Windows system files (requires admin rights)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./check-xml-file [<file>]
.DESCRIPTION checks the given XML file for validity

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./cherry-picker.ps1 [<commit-id>] [<commit-message>] [<branches>] [<repo-dir>]
.DESCRIPTION cherry-picks a Git commit into multiple branches

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./clean-repo.ps1 [<repo-dir>]
.DESCRIPTION cleans the current/given Git repository from untracked files (including submodules, e.g. for a fresh build)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./clone-repos.ps1 [<target-dir>]
.DESCRIPTION clones well-known Git repositories into the current/given directory.

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-calculator.ps1
.DESCRIPTION closes the calculator program gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-chrome.ps1
.DESCRIPTION closes Google Chrome gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-cortana.ps1
.DESCRIPTION closes Cortana gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-edge.ps1
.DESCRIPTION closes Microsoft Edge gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-file-explorer.ps1
.DESCRIPTION closes Microsoft File Explorer gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-program.ps1 [<full-program-name>][<program-name>] [<program-alias-name>]
.DESCRIPTION closes the processes of the given program gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-system-settings.ps1
.DESCRIPTION closes the System Settings gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-thunderbird.ps1
.DESCRIPTION closes Mozilla Thunderbird gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-vlc.ps1
.DESCRIPTION closes the VLC media player gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./close-windows-terminal.ps1
.DESCRIPTION closes Windows Terminal gracefully

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
.DESCRIPTION sets up the Git user configuration

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./create-branch.ps1 [<new-branch-name>] [<repo-dir>]
.DESCRIPTION creates a new branch in the current/given Git repository

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./create-shortcut.ps1 [<shortcut>] [<target>] [<description>]
.DESCRIPTION creates a new shortcut

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./create-symlink.ps1 [<symlink>] [<target>]
.DESCRIPTION creates a symbolic link

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./create-tag.ps1 [<new-tag-name>] [<repo-dir>]
.DESCRIPTION creates a new tag in the current/given Git repository

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./csv-to-text.ps1 [<csv-file>]
.DESCRIPTION converts the given CSV file into a text list

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./decrypt-file.ps1 [<path>] [<password>]
.DESCRIPTION decrypts the given file

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./display-time.ps1 [<seconds>]
.DESCRIPTION displays the current time for 10 seconds by default

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./download.ps1 [<URL>]
.DESCRIPTION downloads the file/directory from the given URL

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./edit.ps1 <filename>
.DESCRIPTION starts the built-in text editor to edit the given file

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./enable-crash-dumps.ps1
.DESCRIPTION enables the writing of crash dumps

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./enable-god-mode.ps1
.DESCRIPTION enables the god mode (adds a new icon to the desktop)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./enable-ssh-client.ps1
.DESCRIPTION enables the SSH client

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./enable-ssh-server.ps1
.DESCRIPTION enables the SSH server

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./encrypt-file.ps1 [<path>] [<password>]
.DESCRIPTION encrypts the given file

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./fetch-repo.ps1 [<repo-dir>]
.DESCRIPTION fetches updates for the current/given Git repository (including submodules)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./fetch-repos.ps1 [<parent-dir>]
.DESCRIPTION fetches updates for all Git repositories under the current/given directory (including submodules)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./generate-qrcode.ps1 [<text>] [<image-size>]
.DESCRIPTION generates a QR code

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./go-downloads.ps1
.DESCRIPTION go to the user's downloads folder

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./go-home.ps1
.DESCRIPTION go to the user's home folder

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./go-music.ps1
.DESCRIPTION go to the user's music folder

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./go-root.ps1
.DESCRIPTION go to the root directory (C: on Windows)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./go-scripts.ps1
.DESCRIPTION go to the PowerShell Scripts folder

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./hibernate.ps1
.DESCRIPTION enables hibernate mode for the local computer (requires admin rights)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./inspect-exe.ps1 [<path-to-exe-file>]
.DESCRIPTION prints basic information of the given executable file

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./introduce-powershell.ps1
.DESCRIPTION introduces PowerShell to new users

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-aliases.ps1
.DESCRIPTION lists all PowerShell aliases

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-anagrams.ps1 [<word>] [<columns>]
.DESCRIPTION lists all anagrams of the given word

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-automatic-variables.ps1
.DESCRIPTION lists the automatic variables of PowerShell

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-branches.ps1 [<repo-dir>] [<pattern>]
.DESCRIPTION lists all branches in the current/given Git repository

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-clipboard.ps1
.DESCRIPTION lists the contents of the clipboard

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-cmdlets.ps1
.DESCRIPTION lists all PowerShell cmdlets

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-commits.ps1 [<repo-dir>] [<format>]
.DESCRIPTION lists all commits in the current/given Git repository

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-current-timezone.ps1
.DESCRIPTION lists the details of the current time zone

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-drives.ps1
.DESCRIPTION lists all drives connected to the computer

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-earthquakes.ps1
.DESCRIPTION lists earthquakes with magnitude >= 6.0 for the last 30 days

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-empty-dirs.ps1 [<dir-tree>]
.DESCRIPTION lists empty subfolders within the given directory tree

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-empty-files.ps1 [<dir-tree>]
.DESCRIPTION lists empty files within the given directory tree

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-environment-variables.ps1
.DESCRIPTION lists all environment variables

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-files.ps1 [<folder>]
.DESCRIPTION lists all files in the given folder and also in every subfolder

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-formatted.ps1 [<directory>]
.DESCRIPTION lists the current working directory formatted in columns

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
.DESCRIPTION lists the phone calls of the FRITZ!Box device

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-fritzbox-calls.ps1 [<username>] [<password>]
.DESCRIPTION lists FRITZ!Box's known devices

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-hidden-files.ps1 [<dir-tree>]
.DESCRIPTION lists hidden files within the given directory tree

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-installed-apps.ps1
.DESCRIPTION lists the installed Windows Store apps

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-installed-software.ps1
.DESCRIPTION lists the installed software (except Windows Store apps)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-logbook.ps1
.DESCRIPTION lists the content of the logbook (in ../Data/logbook.csv)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-modules.ps1
.DESCRIPTION lists all PowerShell modules

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-network-shares.ps1
.DESCRIPTION lists the network shares of the local computer

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-news.ps1 [<RSS-URL>]
.DESCRIPTION lists the latest news

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-os-releases.ps1
.DESCRIPTION lists OS releases and download URL

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-printers.ps1
.DESCRIPTION lists all printer known to the computer

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-processes.ps1
.DESCRIPTION lists the local computer processes

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-profiles.ps1
.DESCRIPTION lists your PowerShell profiles

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-random-passwords.ps1
.DESCRIPTION prints a list of random passwords

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-random-pins.ps1 [<pin-length>] [<columns>] [<rows>]
.DESCRIPTION prints a list of random PIN's

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-scripts.ps1
.DESCRIPTION lists all PowerShell scripts in this repository (sorted alphabetically)

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-tags.ps1 [<repo-dir>] [<pattern>]
.DESCRIPTION lists all tags in the current/given Git repository

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-tasks.ps1
.DESCRIPTION lists all Windows scheduler tasks

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-timezones.ps1
.DESCRIPTION lists all time zones available

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-unused-files.ps1 <dirtree> <days>
.DESCRIPTION lists files in the <directory tree> with last access time older than <days>

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./list-user-groups.ps1
.DESCRIPTION lists the user groups on the local computer

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./locate-city.ps1 [<city>]
.DESCRIPTION prints the geographic location of the given city

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./locate-ipaddress.ps1 [<IPaddress>]
.DESCRIPTION prints the geographic location of the given IP address

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./locate-zip-code.ps1 [<country-code>] [<zip-code>]
.DESCRIPTION prints the geographic location of the given zip-code

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX make-install.ps1 <build-dir>
.DESCRIPTION Copies newer EXE's + DLL's from the build directory to the installation directory.

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./moon.ps1
.DESCRIPTION prints the current moon phase

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./mute-audio.ps1
.DESCRIPTION mutes the audio

View File

@ -1,4 +1,4 @@
#!/bin/powershell
#!/usr/bin/pwsh
<#
.SYNTAX ./new-email.ps1 [<address>]
.DESCRIPTION starts the default email client to write a new email

Some files were not shown because too many files have changed in this diff Show More