Skip to content

Instantly share code, notes, and snippets.

@dogancelik
Last active November 5, 2020 01:34
Show Gist options
  • Save dogancelik/64fbe46050a2db1b67b3 to your computer and use it in GitHub Desktop.
Save dogancelik/64fbe46050a2db1b67b3 to your computer and use it in GitHub Desktop.
Command Aliases #Windows
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
livestreamer.exe --player=vlc.exe %*
@echo off
mkdir %1 >nul 2>&1
start %1
%~dp0live.bat http://twitch.tv/%1 best
@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