How to kill all vscode process on remote Linux server

If you disconnect vscode from a linux server. You will see all these  node tasks that vscode uses. root@lamp ~# ps -ef | grep vscode root 8966 28764 0 15:11 pts/2 00:00:00 grep –color=auto vscode jon2all+ 22881 1 0 Apr28 ? 00:00:00 sh /home/jon2allen/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/server.sh –start-server –host=127.0.0.1 –enable-remote-auto-shutdown –port=0 –connection-secret /home/jon2allen/.vscode-server/.f4af3cbf5a99787542e2a30fe1fd37cd644cc31f.token jon2all+ 22889 22881 0 Apr28 ? 00:06:02 /home/jon2allen/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/node /home/jon2allen/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/out/vs/server/main.js –start-server […]

Bash script to check SSL expiration

Script you can run in a cron Several thing of note:  when getting the SSL information – you have to echo a “q” because the openssl is interactive. To covert from timestamp to formatted date – use the @ symbol date -d @$timestamp_item ‘+%Y-%m-%d’   #!/bin/bash TARGET=”www.website.net”; RECIPIENT=”admin@websit.net”; DAYS=7; echo “checking if $TARGET expires in less than $DAYS days”; ssl_out=$(echo […]