Skip to content

Instantly share code, notes, and snippets.

@DanEdens
Created February 8, 2025 21:21
Show Gist options
  • Save DanEdens/13755310bd77e8841d2e786cd4b12492 to your computer and use it in GitHub Desktop.
Save DanEdens/13755310bd77e8841d2e786cd4b12492 to your computer and use it in GitHub Desktop.
my public doskeys
@REM Use my .rc.cmd script to setup autoloading.
_eg=EventGhost.exe -e $*
tcpip=adb -s $1 tcpip 5555
,=popd
...=cd .. $T cd ..
..=cd ..
.=pushd "%jobpath%"
.boot=%editor% C:\Users\Dan\.bootscripts\.boot.cmd
+++=%charm% $*
++="%ProgramFiles%\Notepad++\notepad++.exe" $*
ack=post DVT/CDRouter/HoldTilAck $*
acom=git add --all $T git commit -m 'Autosave'
adbd=adb devices
addenv=%editor% "%vault%\Scripts\_Main\boot\env_setup.cmd"
addlink=%editor% "%vault%\Scripts\_Main\boot\link_setup.cmd"
addsub=git submodule add $*
alias=doskey /macros:all|grep -in $*
ar=python "%main%\Python\ARmessage.py" "$*"
ar=python "C:\Users\Dan\Desktop\Tree\the_lab\Python\Scripts\ARmessage.py" "$*"
arch=wsl -d arch
as=move /-Y "$*" "%JOBPATH%"
b_json=js-beautify -f $* -r
@REM backup=post S10 var=:=Admin backupvars
BAKjobx=setx jobpath '%CD%' $T setx jobname $* $T rost vars/Jobname $* $T rost vars/jobpath %CD% $T refreshenv
basicurl="%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window $*
bbb=echo Your current branch: & git symbolic-ref --short HEAD
beaut=js-beautify -f $* -r
bin=pushd "%bin%"
branch=git branch -r
c.boot=code "%userprofile%\.bootscripts\.boot.cmd"
c.new=code %userprofile%/.doskey
c.square=code "C:\Users\Dan\Documents\Rainmeter\Skins\Expandable\expandable.ini"
c=color $*
cb=clipboard
cc=cd $* $T
ccom=git add --all $T git commit -m "$*" $T git push
cd~=pushd %userprofile%
cdmacro=pushd "%_main%\Doskey" $T ls
check=twine check dist/*
checknet=netsh interface show interface
checkout=git checkout
checkout=git checkout
chromeurl="%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window $*
chs=ssh saws cat ~/notes/hhs_playlist
@REM clean=mv $1 .orginal_$1 $T awk '!seen[$0]++' .orginal_$1 >> $1
@REM cleanmusiclog=ssh saws sudo awk '!seen[$0]++' notes/log/music > notes/log/music2 && ssh saws sudo mv notes/log/music2 notes/log/music
@REM clickp3=post P3L var=:=Motosync_click_on $*
dutp3=post P3L var=:=Motosync_DUT $*
@REM clickp6=post P6 var=:=Motosync_click_on $*
@REM clicks22=post S22 var=:=Motosync_click_on $*
clist=rm %clistlog% $T choco list -localonly > %clistlog% $T notepad.exe %clistlog%
ipy=python -m IPython --profile=$*
ipyc=python -m IPython --profile=cdrouter $*
ipyd=python -m IPython --profile=default $*
comports=fmv3dbg_0.2.17.exe COM$*
cont=git add . && git rebase --continue
copy=echo -n $*|clip
copy1=copy $* "%USERPROFILE%\Desktop\temp1"
copy2=copy $* "%USERPROFILE%\Desktop\temp2"
copy3=copy $* "%USERPROFILE%\Desktop\temp3"
copydir1=cp -vr "%USERPROFILE%\Desktop\temp1" %CD%\
copydir2=cp -vr "%USERPROFILE%\Desktop\temp2" %CD%\
copydir3=cp -vr "%USERPROFILE%\Desktop\temp3" %CD%\
corahelp=echo "%lab%\corascript\main\cora_cmd.chm"| clip
ct1=dir "%USERPROFILE%\Desktop\temp1" /b | Clip
ct2=dir "%USERPROFILE%\Desktop\temp2" /b | Clip
ct3=dir "%USERPROFILE%\Desktop\temp3" /b | Clip
dash="%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window %dash%
data=pushd %data%
ddd=doskey /macros:all|grep -in $*
dddd=grep -in $* %sfile%
de=pushd "%USERPROFILE%/desktop"
deav=deactivate
delx=reg delete "HKCU\Environment" /v $1 /f
di_drum="%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window https://di.fm/drumandbass
di_hard="%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window https://di.fm/hardstyle
di_hdance="%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window https://di.fm/harddance
dosref=Doskey /macrofile=%sfile% $T echo Macros refreshed
dump1=mv -v "%USERPROFILE%\Desktop\temp1" %CD%
dump2=mv -v "%USERPROFILE%\Desktop\temp2" %CD%
dump3=mv -v "%USERPROFILE%\Desktop\temp3" %CD%
dvt=post S9 var=:=Task dvt-$1
e.=echo %jobpath%
ec=clipboard
edit=where /R C:\ /F %* 2>nul ^| xargs -r notepad.exe
editbak=where %1 | xargs -t -I {} notepad.exe {}
editrc=%editor% %userprofile%/bin/.rc.cmd
egbin=pushd %lab%\Workspaces\generalai\"
egpip=cd C:\Python27 $T pip install $* $t start.
eharm=%charm%
elm=post littleelm/$*
find=pushd C:\ $t dir $* /s /p $t popd
findin=pushd $1 $t dir $~ /s /p $t popd
flatten=copy $* flat_$* $T js-beautify -f flat_$* -r
freeze=pip freeze > requirements.txt
gat=ssh saws sudo cat notes/$1 | grep -in $2
get_dut_pw=ssh [email protected] && nvram show | grep psk
gg=git push
giturl=git config --get remote.origin.url|clip && echo Copied Url to clip && git config --get remote.origin.url
gnv=env|grep -in $*
grh=doskey /history|grep -in "$*"
gsub="C:\Program Files\mosquitto\mosquitto_sub.exe" -h %awsip% -p %awsport% -t ghost | xargs -I {} eg.bat ghost {}
hackp1=adbfull %p1%
hackp2=adbfull %p2%
hackp3=adbfull %p3%
hackp4=adbfull %p4%
hardstyle=pushd "%_main%\Youtubedownloads" $T youtube-dl --extract-audio --audio-format best --o %USERPROFILE%\Music\Hardstyle\$1_%(autonumber)s.%(ext)s $2 $T popd
hhs=ssh saws ~/bin/hhs
hidegit=mv .git bak_.git
holly="%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window https://www.messenger.com/t/holly.robin.3
ignore=echo -n "$*" >> .gitignore
imgsize=magick identify -format "%m:%f %wx%h" $1
jo=wsl jo $*
job=set jobpath %CD% $T set jobname $1
jobs=pushd "%jobs%"
kill=taskkill /F /IM $*.exe
killeg=taskkill /F /IM eventghost.exe
l.=ls -a -g --hyperlink --color=auto $T git symbolic-ref --short HEAD
la=ls --color=auto -a $*
lab=pushd "%lab%"
laphost=echo 5CG8115FYC-LT | clip $T echo 5CG8115FYC-LT
lily=url https://www.roblox.com/users/2537776934/profile
link=adb forward tcp:8022 tcp:8022
lll=echo Your current branch: & git symbolic-ref --short HEAD
lnet=connectscreen.exe $*
logdis=cmdow " Log" /dis
logena=cmdow " Log" /ena
loggernet=pushd %data%\LOGGERNET1\Argus\
logs=pushd "%logs%"
loopstop=post S22 Loopstop
ls.=dir -a %jobpath%
ls=ls --color=auto $*
lsd=ls --color=auto -h -S -t -s -1
main=pushd "%userprofile%"/bin
mainn=pushd %main%\Dos
makechoco=@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
master=git checkout master
me=pushd %me%
melink=mklink /J %CD%\user %me%
mindmap="%ProgramFiles(x86)%\FreeMind\FreeMind.exe" $*
mindmap2="%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window https://app.wisemapping.com/c/maps/855379/edit
mkjob=mkdir %~1 $T cd %~1 $T cp %jobs%\template "%CD%" $T setx jobname "%1" $T setx jobpath "%CD%"
mlocate=wsl mlocate
mm="%monitor%.exe"
@REM mmsi=python setup.py bdist_msi
mt1=@echo off $T move $* "%USERPROFILE%\Desktop\temp1" $T pushd "%USERPROFILE%\Desktop\temp1" $T $T Echo "Temp 1 contents: " $T dir /B /O-D $T popd $T echo "File moved" $T echo on
mt2=@echo off $T move $* "%USERPROFILE%\Desktop\temp2" $T pushd "%USERPROFILE%\Desktop\temp2" $T $T Echo "Temp 2 contents: " $T dir /B /O-D $T popd $T echo "File moved" $T echo on
mt3=@echo off $T move $* "%USERPROFILE%\Desktop\temp3" $T pushd "%USERPROFILE%\Desktop\temp3" $T $T Echo "Temp 3 contents: " $T dir /B /O-D $T popd $T echo "File moved" $T echo on
mv=mv -i -u -v $*
mvjsnote=move $* "C:\Users\Dan\Desktop\Tree\the_vault\Notes\nodejs_notes\"
mvpynote=move $* "C:\Users\Dan\Desktop\Tree\the_vault\Notes\python_notes\"
mvtocool=move $* "C:\Users\Dan\Pictures\Saved Pictures\"
mvtonote=move $* "C:\Users\Dan\Desktop\Tree\the_vault\Notes\"
name=cmd.exe /c echo %1 |clip
ne=type $* >> %sourcefile% $T Doskey /macrofile=%sourcefile% $T tail -v -n 3 %sourcefile%
new=%editor% %sfile%
new=%editor% %sourcefile%
new=vim %userprofile%/.doskey
newar=notepad.exe %main%\Doskey\autoremote.txt
newnote=pushd "%notes%" $T copy con $*.txt $T notepad $*.txt
newurl;="%USERPROFILE%\Desktop\Scripts\_Main\Doskey\urlmacros.txt"
nnew=notepad %sfile%
nodenote=pushd "%USERPROFILE%\Desktop\Tree\the_lab\NodeJS\" $T copy con $*.js
nop=pushd "%USERPROFILE%\Desktop\Tree\the_lab\NodeJS\"
notes=pushd "%notes%"
nwt1=start "Temp 1" cmd /k "color 01 & pushd %USERPROFILE%\Desktop\temp1 & dir /B /O-D"
nwt2=start "Temp 2" cmd /k "color 02 & pushd %USERPROFILE%\Desktop\temp2 & dir /B /O-D"
nwt3=start "Temp 3" cmd /k "color 03 & pushd %USERPROFILE%\Desktop\temp2 & dir /B /O-D"
old2pull=scp -r -p -P 8022 u0_a304@%s22ip%:/sdcard/dcim/ %sorting%
oldpull=%ProgramFiles(x86)%\ADB\pull.bat
open1=start %USERPROFILE%\Desktop\temp1
open2=start %USERPROFILE%\Desktop\temp2
open3=start %USERPROFILE%\Desktop\temp3
p1=%phonelauncher% -s %p1%
p1a=adb -s R5CT602ZVTJ tcpip 5556
p2=%phonelauncher% -s %p2%
p3=%phonelauncher% -s %p3%
p4=%phonelauncher% -s %p4%
pass=ssh saws sudo cat notes/.keychain |grep -in $*
peak=pushd %DJWUND%
pi=ssh -t -v pi@hometv "$*"
pi4=ssh hometv sudo %*
pl=%phonelauncher% $*
ppo=vpndown
ppp=vpnup
pptp=ptpython
prom=prompt $P$+$G
purple=color 5
pynote=echo $* >> "C:\Users\Dan\Desktop\Tree\the_vault\Notes\python_notes\python_note.txt" $T notepad.exe "C:\Users\Dan\Desktop\Tree\the_vault\Notes\python_notes\python_note.txt"
pynote=pushd "%USERPROFILE%\Desktop\Tree\the_lab\Python\" $T copy con $*.py
rain="%ProgramFiles%\Rainmeter\Rainmeter.exe" $*
raindesk=EventGhost.exe -e rain_desk
rank=cat '%notes%\raidlist.csv'|grep -in $*
read=tail -f %desknote%
read=type $1 | clip $t echo Clip set $t type $1
realpath=realpath "%CD%"
rebase=git rebase -i HEAD~$*
red=color 4
ref=refreshenv $T %sourcefile%
refx=taskkill /F /IM Sharex.exe $T "C:\Program Files\ShareX\ShareX.exe" -silent
regexhh=url.bat https://en.wikibooks.org/wiki/Regular_Expressions/POSIX-Extended_Regular_Expressions
pnew=vim "C:\Users\Dan\.ipython\profile_eg\startup\eg.py"
pcnew=code "C:\Users\Dan\.ipython\profile_eg\startup\eg.py"
tests=pushd "C:\Users\Dan\lab\minimtestkit\cdroutertestkit\tests"
renamebranch=git symbolic-ref refs/heads/$2 refs/heads/$1
revert=git revert --no-commit HEAD~$1
roblox=python "C:\Users\Dan\Envs\ghostweb\main.py"
run=python __main__.py $*
run1=pushd "%USERPROFILE%\Desktop\Tree\the_lab\NodeJS\Puppet_sitecheck_scrapper" $T node "C:\Users\Dan\Desktop\Tree\the_lab\NodeJS\Puppet_sitecheck_scrapper\index.js" --debug=1 $* $T popd
runlog=post S22 runlog
s.=set jobpath="%CD%"
S22=post S22 var=:=$*
sat=ssh saws sudo cat notes/$1
savenpm=post programs/npm 'npm install $*'
saws=ssh -x saws $*
scan=post littleelm/scan $*
scon=eg sconnect
scripts=pushd "%_main%" $T ls
setgoal=post S22 var=:=RaidEndVibGoal $1
setp=eventghost.exe -e Variable_editor_p2 "%*"
shared=pushd \\kelleramericas.com\getec\ri\shared
shareref=taskkill /F /IM Sharex.exe $T "C:\Program Files\ShareX\ShareX.exe" -silent $T exit
shell=pushd "%shells%"
shells=pushd "%shells%"
shop=pushd "%shop%"
showgit=mv bak_.git .git
showint=netsh wlan show int
sitecheck="C:\Program Files\mosquitto\mosquitto_sub.exe" -h %awsip% -p %awsdataport% -t Scanner/# -v
snet=pushd %data%\LOGGERNET1\Argus\senceive\
song=ssh saws sudo cat notes/music | grep -in --max-count=1 -e=$2|clip
sorter=pushd %USERPROFILE%\Desktop\Sorting
sorting=pushd %USERPROFILE%\.autosort
sortthis=mv /-y $* "%USERPROFILE%\Desktop\Sorting\Autosorter"
source=%sourcefile% && doskey /macrofile="$*"
squash=git branch | grep -in -v "master" | xargs git branch -D
sshkey=cat %USERPROFILE%\.ssh\id_rsa.pub| CLIP $T echo Pub Key copied
status=git status
sub="C:\Program Files\mosquitto\mosquitto_sub.exe" -h %awsip% -p %awsport% -v -t $1
tandw=echo gykWpc1|clip && sftp tandw
task=post.cmd S22 var=:=Task $*
tat=scp ubuntu@%awsip%:/home/ubuntu/notes/$1 $1.txt
tekno=pushd "%_main%\Youtubedownloads" $T youtube-dl --extract-audio --audio-format best --o %USERPROFILE%\Music\Tekno\$1_%(autonumber)s.%(ext)s $2 $T popd
temp1=cd "%USERPROFILE%\Desktop\temp1" $T dir /B /O-D
temp1=color 06 $T pushd %USERPROFILE%\Desktop\temp1 $T dir /B /O-D
temp2=cd "%USERPROFILE%\Desktop\temp2" $T dir /B /O-D
temp2=color 02 $T pushd %USERPROFILE%\Desktop\temp2 $T dir /B /O-D
temp3=cd "%USERPROFILE%\Desktop\temp3" $T dir /B /O-D
temp3=color 03 $T pushd %USERPROFILE%\Desktop\temp3 $T dir /B /O-D
terset=cd %terset%
testin=pip install %jobname%
testout=pip uninstall -y %jobname%
thiswindow=cmdow 'Administrator: terminal' $*
todo=post todo $*
touch=copy con $1
tp=scp -P 8022 $1 [email protected]:/sdcard/Download/$1
traffic=start "Net Traffic" cmd /k "color 02 & netstat -a -b"
trance=pushd "%_main%\Youtubedownloads" $T youtube-dl --extract-audio --audio-format best --o %USERPROFILE%\Music\Trance\$1_%(autonumber)s.%(ext)s $2 $T popd
ttt=cat %terset% |grep -in $*
unzip=powershell -Command "Get-ChildItem . -Filter *.zip | Expand-Archive -DestinationPath . -Force"
up="C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE" /c IPM.Note.certify /a "%1"
@REM url-ter=pushd "C:\Users\Dan\AppData\Local\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\" $t git add settings.json $T git commit -m 'Autosave' $T git push $T TIMEOUT 2 $T "%chromeexe%" "https://dev.azure.com/DanEdens/Self/_git/terminal_setting?path=%2Fsettings.json" $T popd
var=post.cmd P9 var=:=$*
vault=pushd "%vault%"
vew=vim +$1 %sfile%
vmref=aws ec2 reboot-instances --instance-ids %awsid%
wallp=pushd %wallpapers%
wallpapers=pushd %wallpapers%
wc=where -f $1 | grep -m 1 $1 | clip && echo Copied Path to clip: & where -f $1 | grep -m 1 $1
wheel=python setup.py bdist_wheel
wifil=netsh wlan show profile
wifipw=netsh wlan show profile $1 key=clear
wls=cmdow *$**
wsltop=echo Running distros: && wsl -l --running
wv=where $* | xargs -o vim
ww=exit
www=@pushd %wallpapers% $T @start. $t @popd
xdir=setx jobpath "%CD%"
xm=Xming :0 -multiwindow -clipboard -ac
yl=pushd "%_main%\Youtubedownloads" $T youtube-dl --extract-audio --audio-format best --o %USERPROFILE%\Music\$1_%(autonumber)s.%(ext)s $2 $T popd
yla=pushd "%_main%\Youtubedownloads" $T youtube-dl --extract-audio --audio-format best --o %USERPROFILE%\Music\%(alt_title)s%(autonumber)s.%(ext)s $1 $T popd
yld=pushd C:\Users\Dan\Desktop\Tree\the_lab\NodeJS\ytmdesktop && START /B npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment