I hereby claim:
- I am naqirizvi on github.
- I am naqir (https://keybase.io/naqir) on keybase.
- I have a public key ASB96FFFFxcbGOqgLiD6aijTu6bnMV30ORhcwjxH0cKfngo
To claim this, I am signing this object:
| import subprocess | |
| proc = subprocess.Popen("du -sh ./applications/* | sort -hr", shell=True, stdout=subprocess.PIPE) | |
| for line in iter(proc.stdout.readline,''): | |
| line = line.split() | |
| size = line[0] | |
| app_dir = line[1] | |
| app_name = app_dir[15:] | |
| app_conf = "/home/master/applications/%s/conf/server.apache" % (app_name) |
| # === Optimized my.cnf configuration for MySQL/MariaDB (on cPanel/WHM servers) === | |
| # | |
| # by Fotis Evangelou, developer of Engintron (engintron.com) | |
| # | |
| # ~ Updated December 2021 ~ | |
| # | |
| # | |
| # The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
| # If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
| # |
| #!/bin/bash | |
| #1) on https://console.developers.google.com/ register project and associate API from library | |
| # OUTPUT: client_id,client_secret | |
| client_id="..." | |
| client_secret="...." | |
| #2) get authorization code at the following link using web browser | |
| # OUTPUT: code | |
| scope="https://www.googleapis.com/auth/drive" |
I hereby claim:
To claim this, I am signing this object:
| user web; | |
| # One worker process per CPU core. | |
| worker_processes 8; | |
| # Also set | |
| # /etc/security/limits.conf | |
| # web soft nofile 65535 | |
| # web hard nofile 65535 | |
| # /etc/default/nginx |