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 / 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: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.
@diego3g
diego3g / README.md
Created December 3, 2019 19:15
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
@raftheunis87
raftheunis87 / hyperjs.md
Last active July 17, 2025 07:10
Hyper.js + Hyper.js Plugins + ZSH + Starship + Fira Code + Dark Theme - (macOS)

Hyper.js

module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: [
'react-app',
'airbnb',
'plugin:@typescript-eslint/recommended',
@noelboss
noelboss / git-deployment.md
Last active August 12, 2025 18:16
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@nichtich
nichtich / README.md
Last active September 12, 2025 05:54 — forked from oodavid/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)
@digitaljhelms
digitaljhelms / .gitconfig
Last active December 24, 2024 18:30
My personal ~/.gitconfig file
[user]
name = Jeremy Helms
email = digitaljhelms@gmail.com
[alias]
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort # list all aliases
cb = !git branch | grep ^* | cut -d' ' -f2
branch-name = !git cb # alias to "cb" alias
st = status
ci = commit
cie = commit --allow-empty-message -m ''