Based on this blogpost.
To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.
Install with Homebrew:
$ brew install gpgRedis/Valkey changes, difference from the default Redis configuration.
If no max. is set, Redis/Valkey can use all the RAM. We want to avoid this and limit the RAM usage of the Redis server. If you want to limit the Redis process and to what extend, that is up to you. Don't forget to change the max memory policy (the default policy is not what you want). More info: https://valkey.io/topics/lru-cache/
I also bind only to IPv4. And created a valkey socket file with 777 permissions. And use io-threads (default is also 4 in Valkey).
| # conf.d/20-mysqli.ini | |
| extension=mysqli.so | |
| [mysql] | |
| mysql.allow_local_infile=On | |
| mysql.allow_persistent=On | |
| mysql.cache_size=2000 | |
| mysql.max_persistent=-1 | |
| mysql.max_links=-1 |
| # etc/sysctl.d/99-sysctl.conf | |
| # This control is used to define how aggressive the kernel will swap memory pages. | |
| # We will lower the number to decrease the amount of swap. | |
| vm.swappiness = 10 | |
| # This variable controls the tendency of the kernel to reclaim the memory which is used for caching of directory and inode objects. | |
| vm.vfs_cache_pressure = 200 | |
| # This value in 100'ths of a second define when dirty data is old enough to e eligible for writeout by the kernel flush threads. | |
| vm.dirty_expire_centisecs = 500 |
Getting your custom font (once uploaded to the MapBox Studio interface), by downloading the actual pbf files. You need to fill-in your font name, username and the access token, see: https://www.mapbox.com/account/.
In this Nginx configuration Lumen is actually installed within /home/mydomainfolder/html/admin/api/, so this is the root folder of Lumen installation. The public folder within this api directory is created by Lumen.
Replace <your_domain> with your actual domainname in Nginx (or use localhost for development).
Change /var/www/mydomainfolder/html to your actual website location on disk.
Change /var/run/php-fpm/php-fpm.sock to the correct PHP fpm socket file (eg. it could also be /var/run/php/php7.3-fpm.sock for example)
| { | |
| "dns": ["192.168.1.20", "1.0.0.1", "1.1.1.1"] | |
| } |
Process multiple Git repos from top-level script (pull_push_all.sh).
The pull_push_all.sh will perform git pull & push only on main/master branch. And will list any untracked files. Last but not least, the script will give a warning when the current checked-out branch is NOT main or master. That project will be skipped in this case.
The goal of this script is to sync your Git projects with the remote Git server, especially once you got a lot of Git projects.
NOTE 1: This script will NEVER automatically commit changes.
NOTE 2: Processing each repo will take less than 1 second. Efficiently: O(n)