For more information on a specific command, type HELP command-name
Command | Description |
---|---|
ASSOC |
Displays or modifies file extension associations. |
ATTRIB |
Displays or changes file attributes. |
YT-DLP helpful options cheat sheet | |
basics: | |
--version | |
-U,--update | |
-i,--ignore-errors | |
--flat-playlist (list videos, no download) | |
video selection: | |
--datebefore YYYYMMDD |
For more information on a specific command, type HELP command-name
Command | Description |
---|---|
ASSOC |
Displays or modifies file extension associations. |
ATTRIB |
Displays or changes file attributes. |
cd
: Change directorydir
: List files and directories<#PSScriptInfo | |
.VERSION 1.0.1 | |
.GUID d8d8b0bc-d1dd-4138-9166-dab64a38e8f6 | |
.AUTHOR Robert Bleattler | |
.COMPANYNAME Coast Technologies LLC |
(function bookmarksExportToCsv() { | |
/** | |
* 1. Export bookmarks from browser (supported any Chromium based browsers and Safari) (chrome://bookmarks) | |
* 2. Open exported html file again in the browser | |
* 3. Copy paste this entire file in console, and execute it (hit enter) | |
* 4. You will be prompted to save a CSV file. Save it. | |
* 5. Open Notion. Click Import -> CSV | |
* 6. Select saved CSV file. Wait for import | |
* 7. You have a new database with all your bookmarks | |
*/ |
Take %UserProfile%\Desktop\desktop.ini
for example.
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21769
IconResource=%SystemRoot%\system32\imageres.dll,-183
Get-Command # Retrieves a list of all the commands available to PowerShell | |
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules) | |
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft* | |
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item" | |
Get-Help # Get all help topics | |
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page) | |
Get-Help -Name Get-Command # Get help for a specific PowerShell function | |
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command |
Common aliases for the scoop package manager
# Install app
scoop alias add i 'scoop install $args[0]' 'Install app'
scoop alias add add 'scoop install $args[0]' 'Install app'
# Uninstall app
scoop alias add rm 'scoop uninstall $args[0]' 'Uninstall an app'
scoop alias add remove 'scoop uninstall $args[0]' 'Uninstall an app'
# Working with a [System.IO.FileInfo] Object | |
## Get file object into variable | |
PS C:\DATA> $file = Get-ChildItem C:\DATA\test.xls | |
## Full path name | |
PS C:\DATA> $file.FullName | |
C:\DATA\test.xls | |
## Filename including extension | |
PS C:\DATA> $file.Name |