Skip to content

Instantly share code, notes, and snippets.

View diegobujat's full-sized avatar

Diego Henrique diegobujat

  • Cilia Tecnologia
  • Goiânia
View GitHub Profile
@diegobujat
diegobujat / localhost-as-domain.md
Created March 8, 2023 13:49
Localhost as domain with nginx

Localhost as domain with nginx

Install nginx

sudo apt install nginx

Create config on sites-available

Create file with domain name on /etc/nginx/sites-available/mydomain.com.conf with content:

# Custom aliases
alias aliasupdate='rm ~/.oh-my-zsh/custom/aliases.zsh; wget https://gist.github.com/diegobuiatti/9bf4d54621c91aba0c69485e54382b94/raw/aliases.zsh -O ~/.oh-my-zsh/custom/aliases.zsh && omz reload'
alias aliasupdate_sudo='sudo rm ~/.oh-my-zsh/custom/aliases.zsh; sudo wget https://gist.github.com/diegobuiatti/9bf4d54621c91aba0c69485e54382b94/raw/aliases.zsh -O ~/.oh-my-zsh/custom/aliases.zsh && omz reload'
alias fix_vm='sudo modprobe vboxdrv && sudo modprobe vboxnetflt'
mkcd () { mkdir -p -- "$1" && cd -P -- "$1"; }
corrigir_permissoes () {
if [ -d "$1" ]
version: '3'
services:
teste-postgres-compose:
image: postgres
environment:
POSTGRES_PASSWORD: "Postgres2019!"
ports:
- "15432:5432"
volumes:
@diegobujat
diegobujat / alias_matchers.md
Created July 22, 2021 02:40 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@diegobujat
diegobujat / .bash
Last active July 17, 2022 17:42
bash
# Load .profile, containing login, non-bash related initializations.
source ~/.profile
# Load .bashrc, containing non-login related bash initializations.
source ~/.bashrc
alias aliasupdate='rm ~/.bash_profile; wget https://gist.github.com/diegorikhy/bd550ca0fe574e1bb213c6c829f61cc7/raw/.bash -O ~/.bash_profile && source ~/.bash_profile'
alias aliasupdate_sudo='sudo rm ~/.bash_profile; sudo wget https://gist.github.com/diegorikhy/bd550ca0fe574e1bb213c6c829f61cc7/raw/.bash -O ~/.bash_profile && source ~/.bash_profile'
alias fix_vm='sudo modprobe vboxdrv && sudo modprobe vboxnetflt'