This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Based on a script by Donald Feury | |
# https://gitlab.com/dak425/scripts/-/blob/master/trim_silenceV2 | |
# https://youtu.be/ak52RXKfDw8 | |
import math | |
import sys | |
import subprocess | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /lib/systemd/system/php8.1-fpm_phpmyadmin.service | |
# alterar: {DIR} | |
[Unit] | |
Description=PHPMyAdmin FPM Pool - Reinaldo Deprera | |
Documentation=man:php-fpm8.1(8) | |
After=network.target | |
[Service] | |
Type=notify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Modelo de certificado auto-assinados para teste SSL em virtualhosts em ambiente de testes | |
# Referências: | |
# https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04 | |
# | |
# TODO(rdeprera): criar .run apartir desse modelo | |
# TODO(rdeprera): descrever nos comentários cada uma das variáveis | |
## Valores prováveis para DIR_CERTIFICADOS: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Compactado | |
tar \ | |
-pzcvf \ | |
backup-site.tar.gz \ | |
--exclude=".DS_Store" \ | |
--exclude="*-BKP-*" \ | |
--exclude="*.BKP*" \ | |
--exclude="*BKP.*" \ | |
--exclude="*BACKUP*" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains website.org \ | |
--no-parent \ | |
www.site.com.br/uri/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$gallery = $this->getDoctrine() | |
->getRepository('Application\Sonata\MediaBundle\Entity\GalleryHasMedia') | |
->find(1); | |
$medias = $gallery->getMedia(); |