Skip to content

Instantly share code, notes, and snippets.

View petronioamaral's full-sized avatar

Petrônio Amaral petronioamaral

View GitHub Profile
@petronioamaral
petronioamaral / gerar_screen.md
Last active July 11, 2021 00:09
gerar screen ssh

Gerar SCREEN_

screen -S gerartar
screen -ls //para ver
screen -x gerartar
Control AD sair sem finalizar
Control D ou exit para matar o scrreen

@petronioamaral
petronioamaral / populate_select.js
Last active April 13, 2021 21:10
populate city and neighborhood javascript pure
<script>
const estados = document.getElementById("estados_orcamento");
const selectCidades = document.querySelector('#cidades_orcamento');
const selectBairros = document.querySelector('#bairros_orcamento');
const selectEspecialistas = document.querySelector('#especialistas_orcamento');
estados.addEventListener("change", function() {
var options = estados.options[estados.selectedIndex].value;
@petronioamaral
petronioamaral / media-css.md
Created February 23, 2021 19:35
medias css

/* ##Device = Desktops ##Screen = 1281px to higher resolution desktops */

@media (min-width: 1281px) {

/* CSS */

}

@petronioamaral
petronioamaral / install_ssl_bitnami.md
Created February 12, 2021 14:57
install ssl bitnami aws amazon ssh

install ssl bitnami aws - ssh

sudo /opt/bitnami/bncert-tool

@petronioamaral
petronioamaral / media_queries.css
Created January 11, 2021 14:50
media queries in css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
We couldn’t find that file to show.
@petronioamaral
petronioamaral / AWS_error_cURL_error_60.md
Created December 7, 2020 19:29
Solution: Error executing "PutObject" on AWS HTTP error: cURL error 60 localhost

Solution: Error executing "PutObject" on AWS HTTP error: cURL error 60 localhost

Folder: vendor\guzzlehttp\guzzle\src\Client.php

Change verify to false.

$defaults = [ 'allow_redirects' => RedirectMiddleware::$defaultSettings, 'http_errors' => true, 'decode_content' => true,

Solution: Error executing "PutObject" on AWS HTTP error: cURL error 60 localhost site:stackoverflow.com
Folder: vendor\guzzlehttp\guzzle\src\Client.php
Change verify to false.
$defaults = [
'allow_redirects' => RedirectMiddleware::$defaultSettings,
'http_errors' => true,
'decode_content' => true,
teste
dsafsdfsafs
@petronioamaral
petronioamaral / mask_phone_9or8digits.html
Last active November 25, 2020 03:32
mask to phone 9 or 8 digits brazil
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Demo Máscara Telefone</title>
</head>
<body>
Telefone: <input onkeypress="mascaraTelefone(this)"/><br />
<script>
/*