mkdir /mnt/linux_smb
chmod 755 /mnt/linux_smb
This file contains hidden or 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
WARNING: This process is irreversible! | |
Mac / Linux: | |
$ cd documents | |
$ find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
This file contains hidden or 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
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo | |
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo | |
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo | |
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | |
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* |
This file contains hidden or 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
## | |
## Estender espaço de disco disponivel | |
## | |
## Espande para 100% uso do disco | |
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv | |
## Visualiza alteração | |
lvdisplay |
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch path/to/ceo.jpg' \
--prune-empty --tag-name-filter cat -- --all
## Cria certificado com chave key do certificado
openssl pkcs12 -in certificado.pfx -nocerts -out cert.key
## Cria certificado tipo .pem
openssl pkcs12 -in certificado.pfx -out cert.pem -nodes
This file contains hidden or 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
# | |
git config core.filemode false | |
git config --global core.autocrlf false | |
git config --global core.safecrlf false |
Centos 7
yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install postgresql-libs postgresql-dev
Atualizar php pdo
$yum install php-pdo_pgsql
Adicionar permissão
GRANT SELECT, SHOW VIEW ON basededados.* TO 'usuario'@'%';
flush privileges;
Visualizar permissões do usuário.
This file contains hidden or 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
Gerar certificado tipo pem. | |
~~~ | |
openssl x509 -inform PEM -in cert.crt > public.pem | |
~~~ |
NewerOlder