Browse Source

lists quotes :computer:

windhamdavid 2 years ago
parent
commit
de55e8ddff
2 changed files with 43 additions and 6 deletions
  1. 18 5
      docs/computers/woozie.md
  2. 25 1
      lists/quotes.md

+ 18 - 5
docs/computers/woozie.md

@@ -293,10 +293,16 @@ System keeps daily, a 2-7 day old, and 8-14 day old
 ```bash
 # crontab
 sudo crontab -e
+# set path for crontab to run awk,zsh,etc..
+PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+# lets encrypt renew every Monday at 1:01
+11 1 * * 1 /usr/bin/certbot renew --quiet --noninteractive
 # db optimize/backup every Sunday at 01:11
 11 1 * * 0 /home/user/scripts/mysql-cron.sh
-# log monitor every morning at 01:31
-31 0 * * * /home/user/scripts/monitor.sh
+# monitor every morning at 06:00
+00 6 * * * /home/user/scripts/monitor.sh
+# monitor-archive every Sunday at 05:55 ( since weekly runs at 6:47 )
+55 5 * * * /home/user/scripts/monitor-archive.sh
 
 # mysql-cron.sh
 #!/bin/sh
@@ -309,10 +315,16 @@ mysqlcheck -o gg --user=******* --password='*******'
 #!/bin/sh
 
 /usr/bin/awk '$8=$1$8' /var/log/apache2/other_vhosts_access.log | goaccess -a -o /var/www/dev.davidawindham.com/html/**********/index.html >> /home/*******/logs/cron.log 2>&1
+
 goaccess /var/log/nginx/access.log -o /var/www/dev.davidawindham.com/html/monitor/nginx/index.html --log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u" %T' >> /home/*******/logs/cron.log 2>&1
 
-# lets encrypt renew 
-11 1 * * 1 /usr/bin/certbot renew --quiet --noninteractive
+# monitor-archive.sh
+#!/bin/sh
+cp /var/www/dev.davidawindham.com/html/monitor/nginx/index.html /var/www/dev.davidawindham.com/html/monitor/nginx/$(date +"%y%m%d").html
+
+cp /var/www/dev.davidawindham.com/html/monitor/index.html /var/www/dev.davidawindham.com/html/monitor/$(date +"%y%m%d").html
+
+
 
 ```
 
@@ -575,7 +587,7 @@ sudo vi /etc/apache2/mods-available/mpm_event.conf
   MaxSpareThreads         75
   ThreadLimit             64
   ThreadsPerChild         25
-  MaxRequestWorkers       250
+  MaxRequestWorkers       600
   MaxConnectionsPerChild  100000
 </IfModule>
 
@@ -899,6 +911,7 @@ default-character-set=utf8mb4
 default-character-set=utf8mb4
 
 [mysqld]
+max_allowed_packet = 128M
 character-set-client-handshake = FALSE
 collation-server = utf8mb4_unicode_ci
 init-connect = 'SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci'

+ 25 - 1
lists/quotes.md

@@ -1,3 +1,27 @@
 # Quotes
 
-I used to love buying books of quotes when my parents took us to the bookstore. I've bookmarked some elsewhere on my website, but I'm going to start putting them here. ( e.g. - [https://davidawindham.com/education-through-recreation/](https://davidawindham.com/education-through-recreation/))
+I used to love buying books of quotes when my parents took us to the bookstore. I've bookmarked some elsewhere on my website, but I'm going to start putting them here. ( e.g. - [https://davidawindham.com/education-through-recreation/](https://davidawindham.com/education-through-recreation/))
+
+---
+
+"A master in the art of living draws no sharp distinction between his work and his play; his labor and his leisure; his mind and his body; his education and his recreation. He hardly knows which is which. He simply pursues his vision of excellence through whatever he is doing, and leaves others to determine whether he is working or playing. To himself, he always appears to be doing both." - [L.P. Jacks](https://en.wikipedia.org/wiki/L._P._Jacks)
+
+"Tell me to what you pay attention and I will tell you who you are." - [Ortega y Gasset](https://en.wikipedia.org/wiki/Jos%C3%A9_Ortega_y_Gasset)
+
+"The nicest thing about anything is not knowing what it is." - [George Carlin](https://en.wikipedia.org/wiki/George_Carlin)
+
+"If the fool would persist in his folly, he would become wise." - [William Blake](https://en.wikipedia.org/wiki/William_Blake)
+
+"You know, I'm sick of following my dreams, man. I'm just going to ask where they're going and hook up with 'em later." - [Mitch Hedberg](https://en.wikipedia.org/wiki/Mitch_Hedberg)
+
+"The bigger you build the bonfire, the more darkness is revealed." - [Terence McKenna](https://en.wikipedia.org/wiki/Terence_McKenna)
+
+"The unhappy person resents it when you try to cheer him up, because that means he has to stop dwelling on himself and start paying attention to the universe. Unhappiness is the ultimate form of self-indulgence. When you're unhappy, you get to pay a lot of attention to yourself. You get to take yourself oh so very seriously." - [Tom Robbins](https://en.wikipedia.org/wiki/Tom_Robbins), [Jitterbug Perfume](https://en.wikipedia.org/wiki/Jitterbug_Perfume)
+
+"Everywhere is walking distance if you have the time" - [Steven Wright](https://en.wikipedia.org/wiki/Steven_Wright)
+
+"The more opinions you have, the less you see" - [Wim Wenders](https://en.wikipedia.org/wiki/Wim_Wenders)
+
+"The only true wisdom is in knowing you know nothing." - [Socrates](https://en.wikipedia.org/wiki/Socrates)
+
+"Computers are useless. They can only give you answers." - [Pablo Picasso](https://en.wikipedia.org/wiki/Pablo_Picasso)