| # gem install mechanize | |
| require 'mechanize' | |
| class Download | |
| def initialize(site, email, pass) | |
| @options = {site: site, email: email, pass: pass} | |
| end | |
| def call |
| #!/bin/sh | |
| # ISC License | |
| # Copyright (c) 2026 Alexandre Gomes Gaigalas <alganet@gmail.com> | |
| # Permission to use, copy, modify, and/or distribute this software for any | |
| # purpose with or without fee is hereby granted, provided that the above | |
| # copyright notice and this permission notice appear in all copies. | |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
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)