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
| FROM php:5.6-apache | |
| RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql | |
| COPY src/ /var/www/html |
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
| { | |
| // Define o tema do VSCode | |
| "workbench.colorTheme": "Dracula", | |
| // Configura tamanho e família da fonte | |
| "editor.fontSize": 18, | |
| "editor.lineHeight": 24, | |
| "editor.fontFamily": "Fira Code", | |
| "editor.fontLigatures": true, |
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
| export function loadLists() { | |
| return [ | |
| { | |
| title: 'Tarefas', | |
| creatable: true, | |
| cards: [ | |
| { | |
| id: 1, | |
| content: 'Estudar módulo 01 de NodeJS', | |
| labels: ['#7159c1'], |
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
| import requests | |
| import csv | |
| import os | |
| # Script para download dos livros: | |
| # https://www.hardmob.com.br/threads/744521-Springer-PDF-Livros-da-Editora-Springer-DE-GRACA-negocios-engenharia-medicina | |
| lista_livros = requests.get( | |
| "https://docs.google.com/spreadsheets/d/1HzdumNltTj2SHmCv3SRdoub8SvpIEn75fa4Q23x0keU/export?format=csv&id=1HzdumNltTj2SHmCv3SRdoub8SvpIEn75fa4Q23x0keU" | |
| ) |
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
| # Feche os browsers antes de começar | |
| # Ubuntu 18.04 | |
| # Download e instalação do driver: | |
| # https://certificados.serpro.gov.br/arserpro/pages/information/drivers_token_download.jsf | |
| # Dispositivo de segurança | |
| # google-chrome e chromium-browser: | |
| sudo apt install libnss3-tools | |
| modutil -dbdir sql:.pki/nssdb/ -add "ePassNG-Token" -libfile /usr/lib/watchdata/ICP/lib/libwdpkcs_icp.so |
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
| version: '3' | |
| services: | |
| elasticsearch: | |
| container_name: elasticsearch | |
| hostname: elasticsearch | |
| image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.5.0 | |
| restart: 'no' | |
| ulimits: | |
| memlock: |
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 | |
| for my_files in *; do mv -v "$my_files" "${my_files/my pattern to remove/}";done |
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
| SELECT | |
| relname as "Table", | |
| pg_size_pretty(pg_total_relation_size(relid)) As "Size", | |
| pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as "External Size" | |
| FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC; |
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
| [ | |
| { | |
| "key" : "SE", | |
| "name" : "Sergipe", | |
| "latitude" : -10.9091, | |
| "longitude" : -37.0677 | |
| }, | |
| { | |
| "key" : "PA", | |
| "name" : "Pará", |
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 | |
| # ARQUIVO A SER FEITO O DOWNLOAD | |
| # FONTE: https://www.thinkbroadband.com/download | |
| download='http://ipv4.download.thinkbroadband.com/10MB.zip' | |
| # EXECUTA DONWLOAD | |
| # --report-speed=bits = APRESENTA A INFORMAÇÃO EM BITS/SEGUNDO | |
| # -o /dev/stdout = SAÍDA DE INFORMAÇÃO PARA O SCRIPT |