tail -n +1 *.jsCategory: bash
Categories
Bash cheat sheet
sudo /var/www/html/auto-ssl.sh
- How to monitor the progress
If a user says their SSL isn’t working, you can check exactly what the script is doing by reading the log file:
Bash
tail -f /var/www/html/ssl_automation.log
sudo cat /etc/nginx/sites-available/default
sudo tee setopt nullglob
mkdir -p jpg_output; for ext in png jpg jpeg heic tiff webp gif avif; do
for img in *."$ext"; do
[ -f "$img" ] && magick "$img" "jpg_output/${img%.*}.png"
done
done
Categories
i’m bat man!
@echo off
cd /d "C:\Users\sumnima\Documents\minu"
:: Start Git Bash and run stencil
start "" "C:\Program Files\Git\git-bash.exe" --cd="C:\Users\sumnima\Documents\minu" -c "stencil start; exec bash"
:: Delay for server to start (tweak if needed)
timeout /t 10 >nul
:: Launch Firefox with localhost
start "" "C:\Program Files\Mozilla Firefox\firefox.exe" "http://localhost:3000"
:: Open Sublime Text in the same folder
start "" "C:\Program Files\Sublime Text\sublime_text.exe" "C:\Users\sumnima\Documents\minu"export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh