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
removecontainers() { | |
docker stop $(docker ps -aq) | |
docker rm $(docker ps -aq) | |
} | |
armageddon() { | |
removecontainers | |
docker network prune -f | |
docker rmi -f $(docker images --filter dangling=true -qa) | |
docker volume rm $(docker volume ls --filter dangling=true -q) |
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
mkfs.fat -F32 /dev/sda1 | |
mkswap /dev/sda2 | |
mkfs.ext4 /dev/sda3 | |
mkfs.ext4 /dev/sda4 | |
echo "Create Directories and mount in /mnt" | |
mount /dev/sda3 /mnt | |
mkdir /mnt/home | |
mkdir /mnt/boot/efi | |
mount /dev/sda4 /mnt/home |
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
#!/bin/bash | |
sudo yum update -y | |
sudo yum install htop vim -y | |
sudo amazon-linux-extras enable php7.4 | |
sudo amazon-linux-extras enable nginx1 | |
yum clean metadata | |
yum install -y nginx \ | |
php-cli \ | |
php-pdo \ |
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
#!/bin/bash | |
sudo su | |
echo ">>> ADD NAMESERVER GOOGLE <<<" | |
echo > /etc/resolv.conf | |
echo "nameserver 8.8.8.8" > /etc/resolv.conf | |
echo ">>> Edit Source List <<<" | |
mv /etc/apt/sources.list /etc/apt/sources.list-BKP |
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
{"_type":"export","__export_format":4,"__export_date":"2020-03-20T19:51:55.748Z","__export_source":"insomnia.desktop.app:v7.1.1","resources":[{"_id":"req_cdf8397c1f174a93882b92b422bce9d7","authentication":{},"body":{"mimeType":"application/json","text":"{\n \"email\": \"[email protected]\",\n \"password\": \"jabuti3031*\"\n}"},"created":1582483963926,"description":"","headers":[{"id":"pair_0d0eb5ca16fb40ef9ba6f32f756bb5dd","name":"Content-Type","value":"application/json"}],"isPrivate":false,"metaSortKey":-1579633857194,"method":"POST","modified":1584728278219,"name":"Login","parameters":[],"parentId":"fld_37d43ec4742643d79d8a294f3932a02a","settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingFollowRedirects":"global","settingRebuildPath":true,"settingSendCookies":true,"settingStoreCookies":true,"url":"{{ url }}/login","_type":"request"},{"_id":"fld_37d43ec4742643d79d8a294f3932a02a","created":1582483963921,"description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey": |
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
sudo netstat -ntu | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr |
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
# permissao de pasta e arquivos | |
find /var/www/dashboard/ -type f -exec chmod 644 {} \; | |
find /var/www/dashboard/ -type d -exec chmod 755 {} \; | |
chown -R 1000:www-data /var/www/dashboard/ | |
chmod g+s /var/www/dashboard/ | |
chmod g+w /var/www/dashboard/ | |
#criar Grupo maquina local |
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
add_action('init', function () { | |
$labels = [ | |
'name' => _x('Blog', 'post type general name'), | |
'singular_name' => _x('Blog', 'post type singular name'), | |
'add_new' => _x('Adicionar Novo', 'Novo item'), | |
'add_new_item' => __('Novo Item'), | |
'edit_item' => __('Editar Item'), | |
'new_item' => __('Novo Item'), | |
'view_item' => __('Ver Item'), | |
'search_items' => __('Procurar Itens'), |
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
{ | |
"editor.fontFamily": "Fira Code", | |
"editor.fontSize": 18, | |
"explorer.openEditors.visible": 0, | |
"workbench.editor.enablePreview": false, | |
"files.trimTrailingWhitespace": true, | |
"files.trimFinalNewlines": true, | |
"editor.wordWrap": "off", | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.snippetSuggestions": "top", |
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
#! /bin/bash | |
while : | |
do | |
read -p "Qual é o nome da conexão: " _CONEXAONAME | |
if [[ $_CONEXAONAME == "" ]]; then | |
echo "O nome da conexão não pode esta em branco!" | |
continue | |
else | |
break |
NewerOlder