- Configurar chave SSH
- Criar Droplet
- Realizar update e upgrade
- Crua usuário
adduser deploy
eusermod -aG sudo deploy
- Cria pasta
.ssh
prodeploy
cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
chown -R deploy:deploy .ssh/
chmod 700 .ssh
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
// https://nodejs.org/api/events.html | |
const EventEmmiter = require("events"); | |
const eventEmmiter = new EventEmmiter(); | |
const cooking = async ({ name }) => ({ name }); | |
const driveTo = async () => true; | |
const leave = async () => ({ delivered: true }); | |
async function cook({ pizzaOrder, user }) { | |
console.log(`Cooking a ${pizzaOrder.name}`); |
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
#!/bin/bash | |
# https://www.howtogeek.com/fyi/enable-dark-mode-in-high-sierra-sort-of/ | |
# https://medium.com/@n1kk/how-to-tweak-macos-mojave-dark-mode-per-app-a5fab0574691 | |
# https://stackoverflow.com/questions/52562383/is-there-a-way-to-toggle-dark-mode-on-off-for-individual-apps-in-macos-mojave | |
defaults write -g NSWindowDarkChocolate -bool TRUE | |
defaults write -g NSRequiresAquaSystemAppearance -bool FALSE | |
defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool FALSE | |
defaults write com.google.Chrome _NSSystemAppearanceOverride DarkAppearance |
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
/* | |
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
Que tal enviar mensagens pra ela até obter uma resposta?! | |
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
Para utilizar: | |
- Abra o web.whatsapp.com; | |
- Selecione a conversa que você quer; | |
- Abra o console e cole o código que está no gist; |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
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
Software de gerenciamento hoteleiro - Eiche Hotel | |
Eiche Hotel - Software de gerenciamento hoteleiro, com ele é possivel gerenciar as mais diversas funções de um hotel como cadastro de hóspedes, cadastro de reservas, cadastro de quartos, tabelas de preços, checkin, checkout, geração de boleto bancário, arquivo de remessa para o banco, caixa, controle de estoque, controle de usuários e muito mais. | |
O usuário acessa o sistema utilizando senha e tem acesso apenas as funções determinadas pelo administrador. Trabalha com uma linha do tempo que cruza quartos e dias, facilitando o controle geral das hospedagens e reservas. | |
###Features### | |
Cadastro de clientes e hóspedes | |
Cadastro de Empresas | |
Cadastro de usuários |
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
$estadosBrasileiros = array( | |
'AC'=>'Acre', | |
'AL'=>'Alagoas', | |
'AP'=>'Amapá', | |
'AM'=>'Amazonas', | |
'BA'=>'Bahia', | |
'CE'=>'Ceará', | |
'DF'=>'Distrito Federal', | |
'ES'=>'Espírito Santo', | |
'GO'=>'Goiás', |