Skip to content

Instantly share code, notes, and snippets.

View baaamn's full-sized avatar
🎯
Focusing

BAAAMN baaamn

🎯
Focusing
  • Pacific Northwest
  • 20:11 (UTC -07:00)
View GitHub Profile
@tkoz0
tkoz0 / yt-dlp.txt
Created March 23, 2024 15:09
yt-dlp notes common helpful options cheat sheet
YT-DLP helpful options cheat sheet
basics:
--version
-U,--update
-i,--ignore-errors
--flat-playlist (list videos, no download)
video selection:
--datebefore YYYYMMDD
@coder-ghw
coder-ghw / cmd.md
Last active February 18, 2024 22:49
cheatsheet

Batch Cheat Sheet

cmd-batch

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.
@iampramodyadav
iampramodyadav / basic-batch-scripting.md
Last active February 18, 2024 22:48
windows batch(cmd) scripting basic
@rbleattler
rbleattler / Find-ChocoApp.ps1
Last active January 25, 2024 18:39
A command which will search chocolatey for a given package, and return a PowerShell object.
<#PSScriptInfo
.VERSION 1.0.1
.GUID d8d8b0bc-d1dd-4138-9166-dab64a38e8f6
.AUTHOR Robert Bleattler
.COMPANYNAME Coast Technologies LLC
@unrevised6419
unrevised6419 / bookmarks-to-notion.js
Last active March 26, 2025 04:06
Export bookmarks to Notion as a Database
(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
*/
@hyrious
hyrious / restore-desktop-ini.md
Last active April 22, 2025 22:36
restore desktop.ini if some guy messed them up

Take %UserProfile%\Desktop\desktop.ini for example.

  1. Create a desktop.ini file with content below and saved in UTF-16 LE with BOM. Hopefully notepad.exe has such choice to use the right encoding.
[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21769
IconResource=%SystemRoot%\system32\imageres.dll,-183
@pcgeek86
pcgeek86 / cheatsheet.ps1
Last active April 26, 2025 22:41
PowerShell Cheat Sheet / Quick Reference
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
@idleberg
idleberg / scoop.md
Last active February 15, 2025 11:01
Scoop Aliases

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'
@45413
45413 / string-and-filename-manipulation.ps1
Last active February 5, 2025 06:09
Powershell String and Filename Manipulation
# 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