|
@ -38,6 +38,11 @@ ocr(){ |
|
|
http-server -o |
|
|
http-server -o |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# resize pdf <input> <output> |
|
|
|
|
|
resizePdf(){ |
|
|
|
|
|
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dDownsampleColorImages=true -dColorImageResolution=94 -dNOPAUSE -dBATCH -sOutputFile="$2" "$1" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
# Open many ssh sessions in separate tabs in gnome-terminal |
|
|
# Open many ssh sessions in separate tabs in gnome-terminal |
|
|
sshInTabs(){ |
|
|
sshInTabs(){ |
|
|
logins="$@" |
|
|
logins="$@" |
|
@ -297,6 +302,11 @@ swaysleep(){ |
|
|
swaylock & systemctl suspend |
|
|
swaylock & systemctl suspend |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Start php with xdebug |
|
|
|
|
|
phpdebugsrv(){ |
|
|
|
|
|
php -S 127.0.0.1:8000 -d xdebug.mode=develop,debug -d xdebug.start_with_request=yes $@ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Setup autocomplete. run eval "$(THIS_FILE setup-autocomplete)" |
|
|
# Setup autocomplete. run eval "$(THIS_FILE setup-autocomplete)" |
|
|
setup-autocomplete(){ |
|
|
setup-autocomplete(){ |
|
|