Skip to content

Instantly share code, notes, and snippets.

View hatus's full-sized avatar
🎯
Focusing

Hatus Niwman hatus

🎯
Focusing
  • Brazil
  • 19:54 (UTC -03:00)
  • X @hatus
View GitHub Profile
@hatus
hatus / hyper.js
Last active September 14, 2020 03:16
Hyper.js Settings
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
webGLRenderer: false,
updateChannel: "stable",
paneNavigation: {
debug: false,
hotkeys: {
navigation: {
@hatus
hatus / settings.json
Last active March 29, 2021 14:05
Windows Terminal Settings
// 20210323111922
// https://gist.githubusercontent.com/hatus/46557160905c78fb402b611b41104868/raw/8226569c104dc5f2ebc826319e1742d13a3a0a0b/settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
"copyOnSelect": true,
"copyFormatting": false,
"initialRows": 22,
"initialCols": 73,
@hatus
hatus / README.md
Created September 14, 2020 03:19 — forked from diego3g/README.md
Criação de servidor Node.js

Configuração do servidor

  1. Configurar chave SSH
  2. Criar Droplet
  3. Realizar update e upgrade
  4. Crua usuário adduser deploy e usermod -aG sudo deploy
  5. Cria pasta .ssh pro deploy
  6. cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
  7. chown -R deploy:deploy .ssh/
  8. chmod 700 .ssh
@hatus
hatus / README.md
Created December 28, 2020 19:53 — forked from nichtich/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
@hatus
hatus / gist:29e4c515980e68ef30c20a0c9f04a3f7
Created March 28, 2021 05:52 — forked from sergiosvieira/fluxo-trabalho-git.md
Fluxo de Trabalho do Git para Pequenas Equipes
Fluxo de Trabalho no Git
========================
Primeiro crie um branch de desenvolvimento no seu repositório local:
$ git checkout --track origin/development
1. Trabalhe em sua tarefa, continuamente comitando em intervalos regulares para manter
o rastro daquilo que você fez.
@hatus
hatus / docker-compose.yml
Last active May 13, 2022 16:22
docker-compose.yml - para configuração rápida de banco de dados postgres para desenvolvimento
version: "3.9"
services:
database:
image: postgres
container_name: database_prismaio
restart: always
ports:
- 5434:5432
environment:
@hatus
hatus / gist:84d750f9512f02709b5c5a4df1eca822
Created March 1, 2024 14:55 — forked from shopglobal/gist:75870369efd042031f67e98976892850
How To Set Up Automatic Deployment with Git with a VPS
Introduction
For an introduction to Git and how to install, please refer to the introduction tutorial.
This article will teach you how to use Git when you want to deploy your application. While there are many ways to use Git to deploy our application, this tutorial will focus on the one that is most straightforward. I assume you already know how to create and use a repository on your local machine. If not, please refer to this tutorial.
When you use Git, the workflow generally is toward version control only. You have a local repository where you work and a remote repository where you keep everything in sync and can work with a team and different machines. But you can also use Git to move your application to production.
Server Setup
Our fictitious workspace:
@hatus
hatus / nodejs-cicd-github-actions.md
Created March 1, 2024 14:55 — forked from danielwetan/nodejs-cicd-github-actions.md
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

SELECT
w.nr_atendimento,
w.nm_pessoa_fisica,
w.ie_triagem,
w.ie_consulta,
w.ie_medicacao,
w.ie_laboratorio,
w.ie_imagem,
case
when ((w.ie_medicacao = 'Não Solicitado' or w.ie_medicacao = 'Medicação Liberada') and