-
A Typing Tip
-
List Comprehensions in Python 3
-
Run Caddy on Boot
10/11/21: This article does not explain every step well but may be useful so I’m posting it. Add the following to the root crontab: screen -d -m bash /home/josh/caddystart Create a bash script that launches Caddy with your Caddyfile. Create a Caddyfile in same directory you put your script in: blog.joshmudge.com tls myemail@email.com root * /var/www/wordpress…
-
Running WordPress on Caddy – Solving my problems.
To run wordpress on Caddy, you need a Caddyfile like this: www.yourdomian.com tls youremail@youremailhost.com root * /usr/local/www/wordpress php_fastcgi # Prevent malicious PHP uploads from running @uploads { path_regexp path /uploads\/(.*)\.php } rewrite @uploads / @wp-admin { path not ^\/wp-admin/* } rewrite @wp-admin {path}/index.php?{query} file_server Then you need to set your permissions right. sudo chown -R…
-
WordPress Sending You to a Login Page on Another Site?
-
Linear Regression
One of the projects in my Python 3 course on Codecademy was to calculate the linear regression of any given line in a set. This is my journey of doing just that, following their instructions. The goal, is to calculate the bounciness of different balls with the least error possible. Starting with y = m*x…
-
Nested Loops
-
Automatically Snooze Incoming Mail in Gmail
-
Set/Reset MySQL Root Password on MySQL 14.14
I was trying to setup MySQL that I installed using sudo apt install MySql and couldn’t remember how to set the root password. I found many different instructions on how to stop MySQL, boot into safe mode and reset the root password. None of them worked. This did: sudo mysql_secure_installation You will see something like…