From 6ec26b78b727165efdd8ec7da2d09e37ebf8bbbe Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sat, 10 Apr 2021 11:42:06 +0200 Subject: [PATCH] Add list-cheat-sheet.ps1 --- Data/scripts.csv | 1 + README.md | 1 + Scripts/convert-mysql2csv.ps1 | 0 Scripts/convert-sql2csv.ps1 | 0 Scripts/install-google-chrome.ps1 | 0 Scripts/list-cheat-sheet.ps1 | 36 +++++++++++++++++++++++++++++++ Scripts/list-mysql-tables.ps1 | 0 Scripts/list-sql-tables.ps1 | 0 Scripts/list-system-info.ps1 | 0 Scripts/open-file-explorer.ps1 | 0 Scripts/search-filename.ps1 | 0 11 files changed, 38 insertions(+) mode change 100644 => 100755 Scripts/convert-mysql2csv.ps1 mode change 100644 => 100755 Scripts/convert-sql2csv.ps1 mode change 100644 => 100755 Scripts/install-google-chrome.ps1 create mode 100755 Scripts/list-cheat-sheet.ps1 mode change 100644 => 100755 Scripts/list-mysql-tables.ps1 mode change 100644 => 100755 Scripts/list-sql-tables.ps1 mode change 100644 => 100755 Scripts/list-system-info.ps1 mode change 100644 => 100755 Scripts/open-file-explorer.ps1 mode change 100644 => 100755 Scripts/search-filename.ps1 diff --git a/Data/scripts.csv b/Data/scripts.csv index fb567f14..cef3692b 100644 --- a/Data/scripts.csv +++ b/Data/scripts.csv @@ -60,6 +60,7 @@ list-aliases.ps1, lists all PowerShell aliases list-anagrams.ps1, lists all anagrams of the given word list-automatic-variables.ps1, lists the automatic variables of PowerShell list-branches.ps1, lists all branches in the current/given Git repository +list-cheat-sheet.ps1, lists the PowerShell cheat sheet list-commits.ps1, lists all commits in the current/given Git repository list-current-timezone.ps1, lists the current time zone details list-clipboard.ps1, lists the contents of the clipboard diff --git a/README.md b/README.md index d686ad59..9af999bb 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ Mega Collection of PowerShell Scripts * [introduce-powershell.sh](Scripts/introduce-powershell.sh) - introduces PowerShell to new users * [list-aliases.ps1](Scripts/list-aliases.ps1) - lists all PowerShell aliases * [list-automatic-variables.ps1](Scripts/list-automatic-variables.ps1) - lists the automatic variables of PowerShell +* [list-cheat-sheet.ps1](Scripts/list-cheat-sheet.ps1) - lists the PowerShell cheat sheet * [list-cmdlets.ps1](Scripts/list-cmdlets.ps1) - lists the PowerShell cmdlets * [list-modules.ps1](Scripts/list-modules.ps1) - lists the PowerShell modules * [list-profiles.ps1](Scripts/list-profiles.ps1) - lists your PowerShell profiles diff --git a/Scripts/convert-mysql2csv.ps1 b/Scripts/convert-mysql2csv.ps1 old mode 100644 new mode 100755 diff --git a/Scripts/convert-sql2csv.ps1 b/Scripts/convert-sql2csv.ps1 old mode 100644 new mode 100755 diff --git a/Scripts/install-google-chrome.ps1 b/Scripts/install-google-chrome.ps1 old mode 100644 new mode 100755 diff --git a/Scripts/list-cheat-sheet.ps1 b/Scripts/list-cheat-sheet.ps1 new file mode 100755 index 00000000..3149c9b1 --- /dev/null +++ b/Scripts/list-cheat-sheet.ps1 @@ -0,0 +1,36 @@ +<# +.SYNTAX list-cheat-sheet.ps1 +.DESCRIPTION lists the PowerShell cheat sheet +.LINK https://github.com/fleschutz/PowerShell +.NOTES Author: Markus Fleschutz / License: CC0 +#> + +"PowerShell Cheat Sheet" +"======================" +"" +"Basic Commands" +"--------------" +" Cmdlet : Commands built into shell written in .NET" +" Functions : Commands written in PowerShell language" +" Parameter : Argument to a Cmdlet/Function/Script" +" Alias : Shortcut for a Cmdlet or Function" +" Scripts : Text files with .ps1 extension" +" Applications : Existing windows programs" +" Pipelines : Pass objects Get-process word | Stop-Process" +" Ctrl+c : Interrupt current command" +" Left/right : Navigate editing cursor" +"Ctrl+left/right : Navigate a word at a time" +" Home / End : End Move to start / end of line" +" Up / down : Move up and down through history" +" Insert : Toggles between insert/overwrite mode" +" F7 : Command history in a window" +"Tab / Shift-Tab : Command line completion" +"" +"Variables" +"---------" +" `$var = `"string`" : Assign variable" +"`$a,`$b = 0 or `$a,`$b = 'a','b' : Assign multiple variables" +" `$a,`$b = `$b,`$a : Flip variables" +" `$var=[int]5 : Strongly typed variable" +"" +exit 0 diff --git a/Scripts/list-mysql-tables.ps1 b/Scripts/list-mysql-tables.ps1 old mode 100644 new mode 100755 diff --git a/Scripts/list-sql-tables.ps1 b/Scripts/list-sql-tables.ps1 old mode 100644 new mode 100755 diff --git a/Scripts/list-system-info.ps1 b/Scripts/list-system-info.ps1 old mode 100644 new mode 100755 diff --git a/Scripts/open-file-explorer.ps1 b/Scripts/open-file-explorer.ps1 old mode 100644 new mode 100755 diff --git a/Scripts/search-filename.ps1 b/Scripts/search-filename.ps1 old mode 100644 new mode 100755