Skip to content

Instantly share code, notes, and snippets.

@wincmd64
Last active October 28, 2024 11:57
Show Gist options
  • Save wincmd64/d3b1b4e9cb5d7cfcffceda3a1fe4b42b to your computer and use it in GitHub Desktop.
Save wincmd64/d3b1b4e9cb5d7cfcffceda3a1fe4b42b to your computer and use it in GitHub Desktop.
@echo off
:: [ws] [wi] [wu] -- winget search ? | install ? | update (?)
:: [ps] [pe] {p+} -- %PATH% show | edit | add current
:: [p] [pg] [p8] -- ping ? | google -t | 8.8.8.8 -t
:: [ip] [ipf] [2ip] -- ipconfig | flushdns | ext. IP info
:: [play] -- ssh nethack
:: [ms] -- win\office activator
:: {ff} -- fastfetch (?)
:: *su* -- sudo ?
:: {ls} -- dirx
:: {size} -- elucidisk here
:: {boot} -- WinPE boot.wim
:: {yi} {yd} -- video info | download <url>
:: [e.] {tc.} -- explorer | TotalCmd here
DOSKEY hlp=notepad %LOCALAPPDATA%\clink\clink_start.cmd
:: winget
DOSKEY ws=winget search $*
DOSKEY wi=winget install $*
DOSKEY wu=winget update $*
:: builtin
DOSKEY ps=For %%G in ("%path:;=" "%") do @echo:%%~G
DOSKEY pe=rundll32.exe sysdm.cpl,EditEnvironmentVariables
DOSKEY e.=explorer .
:: net
DOSKEY 2ip=curl 2ip.ua
DOSKEY ip=ipconfig.exe
DOSKEY ipf=ipconfig.exe /flushdns
DOSKEY p=ping -a $*
DOSKEY pg=ping google.com -t
DOSKEY p8=ping 8.8.8.8 -t
DOSKEY play=ssh [email protected]
DOSKEY ms=powershell.exe "irm https://get.activated.win | iex"
:: === EXT ===
:: https://ss64.com/links/windows.html#kits
DOSKEY p+=pathman /au "%cd%"
:: https://github.com/wincmd64/blog/wiki/TotalCmd
DOSKEY tc.=TOTALCMD64.EXE /O /T "%cd%"
:: https://github.com/fastfetch-cli/fastfetch
DOSKEY ff=fastfetch $*
:: Build-in in Win11 24H2+ or https://github.com/chrisant996/sudo-windows
DOSKEY su=sudo $*
:: https://github.com/chrisant996/dirx
DOSKEY ls=dirx -oge -A -Z --icons=auto --hyperlinks
:: https://github.com/chrisant996/elucidisk
DOSKEY size=elucidisk .
:: https://www.terabyteunlimited.com/howto/tbwinpe_tutorial
DOSKEY boot=TBWinPE.exe /bootwim boot.wim
:: https://github.com/yt-dlp/yt-dlp + https://github.com/GyanD/codexffmpeg
DOSKEY yi=yt-dlp -F -S vext $*
:: can be combined with any other params like --download-sections "*00:xx:xx-00:xx:xx"
DOSKEY yd=yt-dlp -S "ext" -o "%%(title).50s.%%(ext)s" --no-part $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment