List all folders as tree (found at https://stackoverflow.com/a/3455651/9418252)
.
|-apache2
|---mod_cache_disk
|-apparmor
|-apt
|---archives
|-----partial
<?php | |
// App/Form/Extension/ConstraintsFromExtension.php | |
declare(strict_types=1); | |
namespace App\Form\Extension; | |
use Symfony\Component\Form\AbstractTypeExtension; | |
use Symfony\Component\Form\Extension\Core\Type\FormType; | |
use Symfony\Component\Form\FormBuilderInterface; |
<?php | |
declare(strict_types=1); | |
namespace App\Service; | |
use Symfony\Component\Security\Core\Role\RoleHierarchyInterface; | |
use Symfony\Component\Security\Core\User\UserInterface; | |
class SecurityHelper |
# Count (in GB) the bandwidth using 10th field in apache log (content-length) | |
zcat /var/logs/apache2/*.gz | awk '$4~/Oct\/2022/ {SUM+=$10}END{print SUM/1024/1024/1024}' |
List all folders as tree (found at https://stackoverflow.com/a/3455651/9418252)
.
|-apache2
|---mod_cache_disk
|-apparmor
|-apt
|---archives
|-----partial
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
<?php | |
namespace App\Twig; | |
use Twig\Extension\AbstractExtension; | |
use Twig\TwigFilter; | |
class AppExtension extends AbstractExtension | |
{ | |
public function getFilters(): array |
The "Object Storage" offer from OVH is indicated as being S3 compatible, but the identifiers provided by OVH do not allow us to connect directly via the AWS S3 libraries.
You must therefore retrieve a token from OVH KeyStone, then use it to obtain the accesses that can be used by S3.
for mailid in `mailq | awk '$1 ~ /^[0-9A-F]{11}$/ {print $1}' | head -n 50`; do postqueue -i $mailid; sleep 5; done; |