Tool.Yun
Handy tools for developers
Barcode Reader
Barcode generator
GTIN Validator
QR Code decoder
QR Code generator
QR Contact Info generator
WiFi QR Code generator
tools.epc-qrcode-generator.name
Bash Cheatsheet
CSS Selectors Cheatsheet
Common Regex Cheatsheet
Docker Cheatsheet
Docker Compose cheatsheet
Docker SWARM cheatsheet
Dockerfile cheatsheet
Git Semantic Commit Cheatsheet
Git cheatsheet
JSONPath Syntax Cheatsheet
Jq Cheatsheet
K8s Cheatsheet
Markdown Cheat Sheet
Nano CheatSheet
Nginx Cheatsheet
Powershell Cheatsheet
Regex cheatsheet
Screen Command Cheatsheet
Sed cheatsheet
Tmux Command Cheatsheet
VIM Cheatsheet
XPath Syntax Cheatsheet
Zellij Command Cheatsheet
chmod Command Cheatsheet
Base64 Hex array encoder/decoder
Base64 file converter
Base64 string encoder/decoder
Csv to Data
Data Storage Unit converter
Email normalizer
Energy Consumption and Expense Computer
Env Variables Format Converter
Excel to data
Geographic Coordinates Converter
Integer base converter
Many Units Converter
Properties converter
Roman numeral converter
Text to UTF-8 binary
Text to Unicode
Torrent to Magnet
ULID generator
Unicode Characters to Java Entities Converter
dBm mW Converter
AGE Cryptography
Ansible vault crypt decrypt
Argon2 Hasher
Bcrypt
Bech32 Encoder/Decoder
CRC calculator
CSR Generator
Certificate/Key parser
ECDSA key pair generator
Ed25519 key pair generator
Encrypt / decrypt text
File Hasher
Hash text
Hmac generator
JWT Generator
JWT parser
Jasypt String Encryption
Niceware Bytes to Passphrase
PGP File Encryption
PGP encryption
PGP keygen
Paseto/PASERK Local
Paseto/PASERK Public/Private
RSA encryption
RSA key pair generator
RSA/DSA/ECDSA Signer and Verifier
SAML Parser
SSL Certificate converter
Shamirs Secret Sharing
X509 certificate generator
BMI Calculator
Calendar Converter
Credit Card Checker
Currency Converter
Explain Shell Command
IBAN validator and parser
IES Lighting Guidelines
ISBN Validator and Parser
ISO 3166 Country Codes Searcher
ISO 639 Searcher
Luhn Validator
Online Dictionary
Phone parser and formatter
RMB Uppercase Converter
Running Pace Calculator
SLA calculator
Software licence compatibility
Unicode Search
VAT Numbers Validator
Chronometer
Countdown
Cron/Weekday Alarm
Date+Durations Calculator
Date-time converter
Days Calculator
Duration Calculator
ETA calculator
ICAL File Parser
ICAL Generator
TTL calculator
Time Alarm
Timezone Converter
Week Numbers Converter
Which Day?
iCal Merger
Cron Expression Builder
ANSI Escape Tester
API Tester
CSS/JS Prettify & Minify
Cli command editor
Code/Scripts Highlighter
Curl Converter
Data Faker
Database Connection String Builder
Database Creation Builder
Database Table Generator
Django Secret Generator
Favicon Generator
File Splitter
GitIgnore Generator
Gitattributes Generator
HEX File Converter
Javascript Obfuscator
Javascript Prettifier
Javascript Unobfuscator/Unpacker
Json to Protobuf
Json to SQL INSERT
Json to Typescript
K6 Load Testing Script Generator
Mailto Generator
Open graph meta generator
Picomatch Tester
Pomodoro Timer
Quote Converter
SQL Minifier
SQL Parameters Generator
SQL prettify and format
Stacktrace prettier
String Escaper
Swagger UI tester
Docker Compose Format Converter
Docker Compose Validator
Docker Compose to .env file
Docker Compose to Docker run converter
Docker Compose to Quadlets
Docker Image Downloader
Docker Pangolin Labels
Docker compose to kubernetes
Docker inspect to Docker run
Docker run to Docker compose converter
Docker run to Quadlets
Docker run to kubernetes
Dockerfile Label Generator
Kubernetes RBAC Generator
Traefik Docker Compose Maker
Amortization Calculator
ActiveDirectory LDAP properties searcher
Bounce Email Parser
Cookies Parser
DMARC Report Analyzer
DNS Propagation Tester
DNS Tester
Dead Pixel Tester
EMV TLV decoder
ETH Transaction Decoder
Email Parser
File Type Detector
Floating point number converter
GZip/Deflate converter
HTTPS Tester
Hex Encoder/Decoder
Keycode info
MIME Encoding Converter
Middle-Endian Converter
MongoDB ObjectId Converter
Nmap Command Builder
Outlook MSG Parser
Outlook Safelink decoder
Parquet files Reader
RJ45 Cat6 Wiring Cheatsheet
Resistor Calculator
SMART Raw Converter
Sensitive data masker
Serial Port Console
Sharepoint Share Url Decoder
Short Urls Expander
Snowflake ID extractor
TCPDump Generator
Text Charset Detector/Decoder
URL Builder
URL parser
้”ฎ็›˜ๆต‹่ฏ•ๅ™จ
Card Picker
Coin Flipper
Dice Roller
Fortune wheel
BIP39 passphrase generator
Diceware Password Generator
NanoIDs generator
Numeronym generator
OTP code generator
Passphrase Generator
Pin Code Generator
Random numbers generator
Token generator
UUID converter
UUIDs generator
Camera recorder
Crop image
GIF to MP4
HEIC Converter
ICO/PNG converter
Image Color Inverter
Image Comparer
Image EXIF/Metadata/GPS/JPEG Quality reader
Image Formats Converter
Image resizer
Image to SVG (potrace)
OCRize image and PDF
Remove EXIF
Remove Image Background
SVG Previewer
Watermarker
CSV to JSON
JS to JSON converter
JSON Editor
JSON Flattener/Unflattener
JSON Linter
JSON Merger
JSON diff
JSON minify
JSON prettify and format
JSON sort master
JSON to .env
JSON to C#
JSON to CSV
JSON to Data
JSON to Go
JSON to JS converter
JSON to Java Entity
JSON to MessagePack
JSON to TOML
JSON to TS
JSON to XML
JSON to YAML converter
JSON to object
Jq/JSONPath Tester
Json Escaper/Unescaper
Json Query
Json Size Analyzer
Json string converter
Json to PHP Code
Json to PHP-Array
Json to Python
Json to SQL DDL
Json to Schema
Message Pack to JSON
ObjGen to JSON
PHP-Array to JSON
tools.json-patch.name
Epub to Markdown
Format Converter
HTML to markdown
Markdown Diff
Markdown Editor
Markdown Lorem Ipsum
Markdown Table Generator
Markdown Table Prettifier
Markdown preview
Markdown to DOCX
Markdown to HTML
Markdown to Text
Markdown to data
Markdown toc generator
Paste as Markdown
Binary Calculator
Math Formats Converter
Math OCR
Math evaluator
Tip calculator
Trigonometric/Equation Curve Visualizer
Aspect Ratio Calculator
Benchmark builder
Geo distance calculator
Percentage calculator
ARPA Decoder
Apache LogRotate Generator
BIMI DNS Generator
Basic auth generator
Chmod calculator
Cloudflare DNS/RDAP Queries
Crontab generator
Curl Command Generator
DKIM DNS Generator
DMARC DNS Generator
DNS Queries
DNSBL Checker
Data Transfer Rate Calculator
FStab Generator
HAR Sanitizer
HDD calculator
HTAccess generator
Htpasswd/htaccess generator
IP Geo Location
IP Subnets Exclude Calculator
IPv4 Subnets Lister
IPv4 address converter
IPv4 range expander
IPv4 subnet calculator
IPv4-6/IPRange/CIDR in IPRange/CIDR/IPMask
IPv4/6 Range to CIDR(s) Calculator
IPv6 ULA generator
Integers to IPv4/IPv6
Iptables Generator
Ipv4/6 CIDR to IP Range Calculator
Ipv6 address converter
Ipv6 subnet calculator
MAC Address Converter
MAC address generator
MAC address lookup
Microphone Tester
Multi link downloader
My IP Address
Nginx formatter
Option43 generator
PTR DNS Generator
Password strength analyser
Ping
Port Numbers
Punycode Converter
RAID Calculator
RAID Reliability Calculator
Random port generator
Restic Command Generator
Rsync Generator
SIP Authorization
SPF DNS generator
Shell Commands Formatter
Shell Commands Linearizer
Shutdown Command Generator
TCP/UDP Port Tester
UFW Command Generator
Visual Subnet Calculator
WPA PSK generator
Websocket tester
Whois Checker
Wireguard Config Generator
X-VR-SpamCause Decoder
ZPOOL RAID calculator
ZPool Cheatsheet
Zxcvbn Password Strength
firewalld command line generator
tools.url-redirection-checker.name
HTML to PDF
PDF Compressor
PDF Text Extractor
PDF signature checker
Pdf Concatener
Pdf Decrypt and Unlock
Pdf Encrypt
Pdf Linearize/FastWeb
Pdf Page Extractor
Acceleration Converter
Angle Units Converter
Area Units Converter
Energy Units Converter
Fitness Computer
Food Energy Converter
Force Units Converter
Frequency Converter
Illuminance Converter
Length Units Converter
Mass Units Converter
Power Converter
Pressure Units Converter
SI Prefixes Converter
Speed Converter
Temperature converter
Volume Flow Rate Converter
Volume Units Converter
TOML Linter
TOML to JSON
TOML to YAML
AI Prompt Splitter
ASCII Art Text Generator
Case converter
Citation Generator
Distinct Words
Duplicate Lines Finder
Emoji picker
Extract text from HTML
Folder Structure Diagram
Font Compare
GPT Token Encoder/Decoder
GPT Token Estimator
I and L Checker
Image to ASCII Art
JSON to TOON
Keyboard Layout Converter
Levenshtein Calculator
List converter
Lists Comparer
Lorem ipsum generator
Mermaid exporter
Morse Code Converter
Pack files for AI
RSVP Reader
Random Line Picker
Regex Tester
Rune converter
Sed Command generator
Smart Text Replacer and Linebreaker
Social Link Sharer
String obfuscator
TOON to JSON
Tab to Spaces
Text Translator
Text diff
Text statistics
Text to NATO alphabet
Text to Unicode Names
Unicode Formatter
Unicode to GSM-7
Zalgo Generator/Banner
CSS Gradient Generator
CSS Units Converter
CSS XPath Converter
Color Contrast Checker
Color Wheel
Color converter
Css prettifier
Device information
Encode/decode url formatted strings
Escape HTML entities
HTML Minifier
HTML Prettifier
HTML WYSIWYG editor
HTML cleaner
HTML to XHTML
HTML to data
HTTP status codes
Image to CSS
MIME types
REM Pixel converter
SVG placeholder generator
Slugify string
UTM Url Generator
Url Cleaner
Url Fanger
Url Text Search Fragment Maker
User-agent parser
ObjGen to HTML
XML Linter
XML formatter
XML to JSON
XPath Tester
XSLT tester
YAML Flattener/Unflattener
YAML Merger
YAML prettify and format
YAML to JSON converter
YAML to TOML

Powershell Cheatsheet

Powershell is a powerful scripting language and command-line shell designed for system administration and automation. It provides a wide range of cmdlets and features that allow users to manage and automate tasks on Windows systems efficiently.

PowerShell is a shell and scripting language built on .NET. Unlike POSIX shells it passes objects down the pipeline rather than text, so Get-Process | Sort-Object CPU sorts real numbers instead of parsing columns.

โ„น๏ธ PowerShell 7+ (pwsh) is cross-platform and current; Windows PowerShell 5.1 (powershell.exe) ships with Windows and is in maintenance. Check with $PSVersionTable.

๐Ÿ”Ž Finding Your Way

# what commands exist for a noun?
Get-Command *service*
Get-Command -Module Microsoft.PowerShell.Management

# help, with the part everyone actually wants
Get-Help Get-ChildItem -Examples
Get-Help Get-ChildItem -Full
Update-Help

# what properties and methods does this object have?
Get-Process | Get-Member

# what did that command actually return?
Get-Process | Select-Object -First 1 | Format-List *

๐Ÿ“ฆ Variables

SyntaxDescription
$var = "string"Assign a variable
[int]$var = 5Strongly typed variable
[ValidateRange(1,9)][int]$x=1Typed and constrained
$a, $b = 'a', 'b'Assign several at once
$a, $b = $b, $aSwap two values
$global:var = "v"Scope: global, script, local, private
${my var}A name containing spaces or punctuation
$env:PATHAn environment variable
Remove-Variable xDelete a variable

๐Ÿ“š Arrays

SyntaxDescription
"a","b","c"Array of strings
@()Empty array
,"hi"Array of exactly one element
1,(2,3),4Nested array
$arr[5]Sixth element (0-based)
$arr[2..20]A range of elements
$arr[-1]The last element
$arr[-3..-1]The last three
$arr[1,4+6..9]Positions 1, 4 and 6โ€“9
$arr[($arr.length-1)..0]Reversed
@(Get-Process)Force a single result into an array
$z = $arrA + $arrBConcatenate
$list = [System.Collections.Generic.List[int]]::new()A growable list โ€” much faster than += in a loop

๐Ÿ—‚ Hash Tables

SyntaxDescription
$hash = @{}Empty hash table
@{foo=1; bar='two'}Initialise with values
[ordered]@{a=1; b=2}Keeps insertion order
$hash.key1 / $hash["key1"]Read a value
$hash.key1 = 1Write a value
$hash.Remove("key1")Delete a key
$hash.ContainsKey("key1")Test for a key
$hash.GetEnumerator() | Sort-Object KeyIterate in key order
[pscustomobject]@{x=1; z="z"}Turn a hash into an object

๐Ÿ”ค Strings

SyntaxDescription
"$var expands"Double quotes interpolate
'$var does not'Single quotes are literal
"Total: $($items.Count)"$( ) evaluates an expression inside a string
"{0} of {1}" -f $a, $bThe format operator
"col1`tcol2`n"`t tab, `n newline, ` escapes
@"โ€ฆ"@ / @'โ€ฆ'@Here-string, expanding / literal
"abc".ToUpper().NET methods work on strings
$s -split ',' / $a -join ','Split and join
$s.Trim() / .PadLeft(5)Trim and pad
$s -replace 'a','b'Regex replace

๐Ÿ’ฌ Comments & Escaping

# a single-line comment

<#
  a block comment, also used for help text
#>

# the backtick is the escape character
Write-Output "He said `"hi`""
Write-Output "line one`nline two"

# and the line-continuation character
Get-ChildItem -Path C:\ `
              -Recurse `
              -Filter *.log

๐Ÿ“ Files & Paths

CommandDoes
Get-Location (pwd)Current directory
Set-Location (cd)Change directory
Get-ChildItem (ls, dir)List a directory
Get-Content (cat)Read a file
Set-Content / Add-ContentOverwrite / append
Out-File / Out-Null / Out-StringWrite to a file / discard / stringify
New-Item -ItemType DirectoryCreate a file or folder
Copy-Item / Move-Item / Rename-Item / Remove-ItemCopy, move, rename, delete
Test-PathDoes it exist?
Split-Path -ParentThe directory part of a path
Join-Path a bBuild a path portably
Resolve-PathExpand to a full path
Get-FileHash file.zipChecksum a file
# read a large file line by line without loading it all
Get-Content big.log -ReadCount 1000 | ForEach-Object { $_ }

# tail -f
Get-Content app.log -Wait -Tail 20

# every .log modified in the last day
Get-ChildItem C:\logs -Recurse -Filter *.log |
  Where-Object LastWriteTime -gt (Get-Date).AddDays(-1)

๐Ÿ”€ Flow Control

if ($x -eq 5) { "five" } elseif ($x -gt 5) { "more" } else { "less" }

while ($x -lt 10) { $x; $x++ }

do { $x++ } while ($x -lt 10)

for ($i = 0; $i -lt 10; $i++) { $i }

foreach ($file in Get-ChildItem C:\) { $file.Name }

1..10 | ForEach-Object { $_ * 2 }

# parallel, PowerShell 7+
1..10 | ForEach-Object -Parallel { Start-Sleep 1; $_ } -ThrottleLimit 5

switch ($value) {
  'a'       { 'letter a'; break }
  { $_ -gt 10 } { 'big' }
  default   { 'something else' }
}

โš–๏ธ Operators

OperatorMeaning
= += -= *= /= %= ++ --Assignment
-eq / -neEqual / not equal
-gt -ge -lt -leNumeric comparison
-and -or -xor -not !Logical
-like / -notlikeWildcard match (*, ?)
-match / -notmatchRegex match โ€” fills $Matches
-replace 'a','b'Regex replace
-contains / -inArray membership, either way round
-split / -joinSplit a string / join an array
-is / -isnot / -asType test and conversion
-fFormat a string
..Range
$( ) / @( )Sub-expression / array sub-expression
& / .Invoke a command / dot-source a script
?? / ??=Null-coalescing (PowerShell 7+)
?. / ?[ ]Null-conditional access (PowerShell 7+)

โš ๏ธ Comparisons are case-insensitive by default. Use -ceq, -clike, -cmatch when case matters.

๐Ÿงฑ Objects & the Pipeline

# properties and methods
(Get-Date).Date
(Get-Date).AddDays(-7)
"string".ToUpper()

# static members
[DateTime]::Now
[Math]::Round(3.14159, 2)
[System.Net.Dns]::GetHostByAddress("127.0.0.1")

# build your own objects
[pscustomobject]@{ Name = 'web01'; Status = 'up' }

# add a calculated property
Get-Process | Select-Object Name, @{ Name = 'MB'; Expression = { [math]::Round($_.WorkingSet / 1MB, 1) } }

๐Ÿ” Filter, Sort, Group, Format

ExampleDoes
Get-Process | Where-Object CPU -gt 100Filter (simple syntax)
Get-Process | Where-Object { $_.Name -like "chrome*" }Filter (script block)
Get-Process | Sort-Object WorkingSet -DescendingSort
Get-Process | Select-Object -First 5Take the first few
"a","b","a" | Select-Object -UniqueDeduplicate
Get-Service | Group-Object StatusGroup
Get-Process | Measure-Object WorkingSet -Sum -AverageAggregate
Get-Process | Select-Object -ExpandProperty ModulesFlatten a nested property
Get-Process | Format-Table Name, Id -AutoSizeTable output
Get-Item C:\ | Format-List *Every property
Get-Content log.txt | Select-String "error"grep
Compare-Object $a $bDiff two collections

๐Ÿ’ก Format-* is always the last step โ€” its output is display text, not objects, so nothing downstream can filter it.

๐Ÿงฐ Functions & Scripts

function Get-Square {
  param(
    [Parameter(Mandatory)][int]$Number,
    [switch]$Verbose
  )
  $Number * $Number
}

Get-Square -Number 7

# an advanced function: pipeline input, -WhatIf, -Verbose for free
function Remove-OldLog {
  [CmdletBinding(SupportsShouldProcess)]
  param(
    [Parameter(ValueFromPipeline)][string]$Path,
    [int]$Days = 30
  )
  process {
    if ($PSCmdlet.ShouldProcess($Path, "delete")) {
      Remove-Item $Path
    }
  }
}

๐Ÿšจ Error Handling

try {
  Get-Content missing.txt -ErrorAction Stop
}
catch [System.IO.FileNotFoundException] {
  Write-Warning "no such file"
}
catch {
  Write-Error "unexpected: $($_.Exception.Message)"
}
finally {
  "always runs"
}

# make non-terminating errors terminate, so catch can see them
Get-Item missing -ErrorAction Stop

# per-session default
$ErrorActionPreference = 'Stop'

# the most recent error, and the exit code of the last native command
$Error[0]
$LASTEXITCODE
$?

๐ŸŒ Web & Data

# REST calls, parsed into objects
$data = Invoke-RestMethod https://api.github.com/repos/vuejs/core
$data.stargazers_count

# with headers and a JSON body
Invoke-RestMethod -Uri $url -Method Post `
  -Headers @{ Authorization = "Bearer $token" } `
  -ContentType 'application/json' `
  -Body (@{ name = 'demo' } | ConvertTo-Json)

# the raw response, for scraping or downloads
Invoke-WebRequest $url -OutFile page.html

# convert between formats
Get-Process | Select-Object Name, Id | ConvertTo-Json
Get-Content data.json | ConvertFrom-Json
Import-Csv users.csv | Where-Object Dept -eq 'IT' | Export-Csv it.csv -NoTypeInformation
Export-Clixml / Import-Clixml   # round-trips real objects

๐Ÿ–ฅ System Administration

# processes
Get-Process | Sort-Object CPU -Descending | Select-Object -First 10
Stop-Process -Name notepad -Force

# services
Get-Service | Where-Object Status -eq 'Running'
Restart-Service -Name Spooler
Set-Service -Name Spooler -StartupType Manual

# background jobs
$job = Start-Job { Start-Sleep 10; "done" }
Receive-Job $job -Wait

# scheduled tasks, event logs, system info
Get-ScheduledTask
Get-WinEvent -LogName System -MaxEvents 20
Get-CimInstance Win32_LogicalDisk | Select-Object DeviceID, FreeSpace
Test-Connection example.com -Count 2

๐Ÿ”— Remoting

# one command on many machines
Invoke-Command -ComputerName web01, web02 -ScriptBlock { Get-Service Spooler }

# an interactive session
Enter-PSSession -ComputerName web01
Exit-PSSession

# a reusable session
$s = New-PSSession -ComputerName web01 -Credential (Get-Credential)
Invoke-Command -Session $s { hostname }
Remove-PSSession $s

๐Ÿ“ฆ Modules & Execution Policy

# find, install, load
Find-Module Pester
Install-Module Pester -Scope CurrentUser
Import-Module Pester
Get-Module -ListAvailable

# where does PowerShell look for modules?
$env:PSModulePath -split [IO.Path]::PathSeparator

# scripts refuse to run? check and relax the policy
Get-ExecutionPolicy -List
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

# your profile script
notepad $PROFILE

๐Ÿงพ Automatic Variables

VariableHolds
$_ / $PSItemThe current pipeline object
$ArgsUnbound arguments to a script or function
$ErrorThe error history, newest first
$MatchesCapture groups from the last -match
$PSVersionTableVersion and edition information
$PWD / $HOMECurrent directory / home directory
$PSScriptRootThe folder the running script lives in
$LASTEXITCODEExit code of the last native command
$?Did the last command succeed?
$true $false $nullConstants
$PROFILEPath to your profile script

๐Ÿ’พ PSDrives

DriveContents
Env:Environment variables
Alias:Command aliases
Function:Defined functions
Variable:Variables
Cert:Certificate stores
HKLM: / HKCU:The registry
WSMan:WinRM configuration
Set-Location HKLM:\SOFTWARE
Get-ChildItem Env: | Sort-Object Name
Get-ChildItem Variable:

โŒจ๏ธ Aliases Worth Knowing

AliasReal commandAliasReal command
ls, dir, gciGet-ChildItem%ForEach-Object
cat, gcGet-Content?Where-Object
cd, slSet-LocationselectSelect-Object
cp, copyCopy-ItemsortSort-Object
rm, delRemove-Itemft / flFormat-Table / Format-List
ps, gpsGet-ProcessslsSelect-String
killStop-ProcessgmGet-Member

โš ๏ธ Aliases are for the console, not for scripts โ€” write the full cmdlet name in anything you commit.

๐Ÿ”ฃ Regular Expressions

PatternMatches
\w / \WWord character / non-word
\s / \SWhitespace / non-whitespace
\d / \DDigit / non-digit
{n} {n,} {n,m}Quantifiers
^ / $Start / end of the string
(?<name>โ€ฆ)Named capture group
# -match fills $Matches
if ("build-1234" -match '(?<name>\w+)-(?<id>\d+)') { $Matches.id }

# extract every match from a file
Select-String -Path app.log -Pattern '\b\d{1,3}(\.\d{1,3}){3}\b' -AllMatches |
  ForEach-Object { $_.Matches.Value } | Sort-Object -Unique

PowerShell uses the .NET regex engine โ€” see .NET regular expressions.

๐Ÿ“š Resources

  • PowerShell documentation
  • Cmdlet reference
  • PowerShell Gallery
  • Style guide (community)