resize pdf

php debug server
This commit is contained in:
2023-03-16 15:51:29 +05:30
parent 35f878ed04
commit a5871c48e4
@@ -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(){