- Search String in files in PWS:
Get-ChildItem -Recurse -Exclude *.bmp,*.pdf | Select-String "todo" | Select Path, LineNumber, Line
Options:- Get-ChildItem:
-Include *.* -Exclude *.pdf,*.dll
Filter - Select-String:
-Context 1, 2
Also show surrounding lines (Only works without "| Select Path, etc") - Select-String:
-List
Only show file once, even with multiple matches | Out-File search_out.txt
divert output to file
- Get-ChildItem:
| clip.exe
pipe output into clipboardpwd | Select-Object -ExpandProperty "Path"
get value of an objects property by namegal -Definition Get-Process
get aliases for commandlet
- Image conversion:
D:\ImageMagick-7.1.0-Q16-HDRI\convert.exe .\mandlebrot.ppm new.png
- Get only+best audio from yt-url:
youtube-dl -x --audio-format mp3 ULR_HERE
- Pack as single exe:
pyinstaller -F main.py
- Requirements w/o virtualenv:
pipreqs ./ --encoding=utf8 --force
- Style- and error-check:
flake8
&pylint .\main.py
git remote -v
See all sourcesgit rm -r --cached <folder>
Remove folder that is are now ignored (remove '-r' for only files)git log --graph --oneline -n 10
condensed loggit mv .\Implementation\KnownFaces\bruno.bmp .\Implementation\KnownFaces\Bruno.bmp
make git notice the switch to uppercase
- Code block with linting and copy-button
System.out.println("Hello World!");
Expanding List
- Here is a hidden Comment
- Basic Stuff:
- **Bold** → Bold
- *italic* → italic
- ~strikethrough~ →
strikethrough
- Can be a link
- Todo
- List