Last active
November 5, 2020 01:34
-
-
Save dogancelik/64fbe46050a2db1b67b3 to your computer and use it in GitHub Desktop.
Command Aliases #Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doskey cdd=cd /D $1 | |
doskey nu=npm update -g $* | |
doskey nig=npm install -g $* | |
doskey nis=npm install --save $* | |
doskey nisd=npm install --save-dev $* | |
doskey bis=bower install --save $* | |
doskey bisd=bower install --save-dev $* | |
doskey bb=youtube-dl -f bestvideo+bestaudio $* | |
doskey mp3=youtube-dl -f bestaudio -x --audio-format mp3 --embed-thumbnail $* | |
doskey yu=youtube-dl --update | |
doskey ph=python -m SimpleHTTPServer 80 | |
doskey js=jekyll s -w -P 80 $* | |
doskey gor=go run $* main.go | |
doskey gist=git commit -am "" --allow-empty-message $T git push origin master | |
doskey exp=start . | |
doskey jsw=jekyll serve --watch $* | |
doskey ls=dir /B $1 | |
doskey cat=type $* | |
doskey ned=set NODE_ENV=development | |
doskey nes=set NODE_ENV=staging | |
doskey nep=set NODE_ENV=production | |
doskey psv=powershell -Command "& {$PSVersionTable.PSVersion}" | |
doskey e=exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
livestreamer.exe --player=vlc.exe %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
mkdir %1 >nul 2>&1 | |
start %1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%~dp0live.bat http://twitch.tv/%1 best |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set "vlc=C:\path\to\vlc.exe" | |
set "nir=C:\path\to\nircmd.exe" | |
set "text=%1" | |
if "%~1" == "" goto novar | |
:var | |
echo URL: %text% | |
%nir% execmd "youtube-dl -o - "%text%" | %vlc% --play-and-exit -" | |
goto end | |
:novar | |
for /f %%i in ('%nir% consolewrite ~$clipboard$') do set text=%%i | |
goto var | |
:end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment