To create a static website, just need to 1) create index.html in /var/www/websitename/pubic (can keep the permission to root). 2) add virtual host config to the available site in /etc/apache2/sites-available/ 3) restart apache sudo a2ensite your-site.conf sudo systemctl reload apache2
Author Archives: epsilon
Migrate a WordPress Website from AWS to OCI
Below is the notes I had to move my WordPress website from AWS (Amazon Web Services) to OCI (Oracle Cloud Infrastructure). 1. Export WordPress from AWS On the AWS WordPress site: 2. Set Up WordPress on OCI On your OCI server: Copy your unzipped WordPress files into /var/www/exampleblog.com/public. 3. Create a New Database Log into …
Continue reading “Migrate a WordPress Website from AWS to OCI”
Graphic Design
argparse const vs default
default is used when option is not provided. const is used when option is provide, but no value is given. For example, if we have an arg ‘–bookname’ for test.py, then test.py will use default name, test.py –bookname will use const name.
avoid googlesheets to increase the dates
https://support.google.com/docs/thread/4899768/how-do-i-stop-google-sheets-from-automatically-increasing-the-dates-in-a-list?hl=en select and cmd+d.
Pdb commands shortcut
https://web.stanford.edu/class/physics91si/2013/handouts/Pdb_Commands.pdf
search string from text files
grep –include=\*.{c,h} -rnw . -e ‘keywords/string’ https://stackoverflow.com/questions/16956810/how-to-find-all-files-containing-specific-text-string-on-linux
git push to a remote branch with different name
https://stackoverflow.com/questions/36139275/git-pushing-to-remote-branch
squash multiple commits into one in git
https://www.internalpointers.com/post/squash-commits-into-one-git
get all output in a console into a file
https://stackoverflow.com/questions/6674327/redirect-all-output-to-file-in-bash