August 20
Setup React Project
Make sure you have Node 12 LTS or greater installed, download from
https://nodejs.org/en/
Use npm to install the Expo CLI command line utility
sudo npm install -g expo-cli
or
sudo npm install expo-cli --global
Then (use expo) run the following commands to create a new React Native project called "AwesomeProject":
expo init AwesomeProject
cd AwesomeProject
npm start
# you can also use: expo start
expo commands:
...
June 23
Creating a Stand Alone Executable from a Python Script using PyInstaller
1. go to https://www.pyinstaller.org/
2. install PyInstaller from PyPI
pip install pyinstaller
3. run pyinstaller --onefile -w if you want only one output file and without opening console terminal
pyinstaller --onefile -w yourscript.py
4. (for windows) if your program requires additional packages, you can use NSIS (Nullsoft Scriptable Install System) https://nsis.sourceforge.io/Main_Page. download and install it. (watch video above to see how to do it properly).
...
March 28
Certbot SSL Certification Auto Renew Cron Job
Let's encrypt SSL certificates will get expired after 90 Days of installation and you must renew it before it get expired.
Certbot Renew Command
$ sudo certbot renew --dry-run
Certbot Auto Renew Cron Job
$ cat /etc/cron.d/certbot
Content:
# /etc/cron.d/certbot: crontab entries for the certbot package
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate certificates
# haven't been revoked, etc....