<div>===Common Linux commands===</div>
<div>http://www.pixelbeat.org/cmdline.html</div>
<div>===Run Python Scripts===</div>
http://searchenterpriselinux.techtarget.com/tip/Using-your-Linux-server-to-create-an-ad-hoc-wireless-network
https://pbxinaflash.com/community/threads/how-stop-warning-always-run-incredible-pbx-vm-behind-firewall.17326/
Resize Linux Partitions
https://www.raspberrypi.org/forums/viewtopic.php?f=51&t=45265
sysctl status [service name]
Add service to startup services
update-rc.d ssh enable
Dump output to syslog:
/home/dirname/application_name -v 2>&1 | logger &This guide will discuss how to use openssl command to check the expiration of .p12 and start .crt certificate files.
Below example demonstrates how the openssl command is used:
$ cat /etc/kubernetes/kubelet-ca.crt | openssl x509 -noout -enddate
notAfter=Aug 5 21:38:23 2029 GMT
The /etc/kubernetes/kubelet-ca.crt should be replaced with the correct path to your crt file.
For .p12 files, extract it first to a .pem file using the following command:
$ openssl pkcs12 -in mycert.p12 -out mycert.pem -nodes
$ cat mycert.crt | openssl x509 -noout -enddate
One command for this is:
$ openssl pkcs12 -in mycert.p12 -nodes | openssl x509 -noout -enddate
For certificates already used in Live websites, you can run:
export SITE_URL="computingforgeeks.com"
export SITE_SSL_PORT="443"
openssl s_client -connect ${SITE_URL}:${SITE_SSL_PORT} \
-servername ${SITE_URL} 2> /dev/null | openssl x509 -noout -dates
Sample output: