Skip to content

Instantly share code, notes, and snippets.

Leaving footprints all over

Jesus Vazquez jesusvazquez

Leaving footprints all over
  • Spain
Block or report user

Report or block jesusvazquez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jesusvazquez /
Created May 11, 2019 — forked from Kartones/
PostgreSQL command line cheatsheet


Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
jesusvazquez /
Last active May 7, 2019
Go tools for development
# Tools for developing using go
go get
go get
go get
jesusvazquez /
Last active Apr 16, 2019
Migrate golang project from dep to go mod
# Quick list of steps to initialize go mod in your go project.
# Make sure to do this out of the GOPATH or play around with GO111MODULE env var
# Initialize project
go mod init<repository_path>/<project_name>
go build -o /tmp/main main.go
rm /tmp/main
# Remove traces of dep
rm -rf vendor
rm Gopkg.*
# Verify dependencies are there
  • Metric cardinality

count by(__name__) ({__name__=~".*<metric_name>"})

jesusvazquez / .ideavimrc
Created Aug 28, 2018 — forked from bennyyip/.ideavimrc
idea vim plugin config
View .ideavimrc
set hlsearch
set scrolloff=3
set ignorecase smartcase
set showmode
set history=1000
"" easy system clipboard copy/paste
"noremap <space>y "*y
"noremap <space>Y "*Y
"noremap <space>p "*p

SSH Cheatsheet


Generate strong ed25519 key

ssh-keygen -t ed25519 -b 4096

References for the above command

jesusvazquez /
Created Jul 31, 2018 — forked from bjmiller121/
Add multiple push URLs to a single git remote

Sometimes you need to keep two upstreams in sync with eachother. For example, you might need to both push to your testing environment and your GitHub repo at the same time. In order to do this simultaneously in one git command, here's a little trick to add multiple push URLs to a single remote.

Once you have a remote set up for one of your upstreams, run these commands with:

git remote set-url --add --push [remote] [original repo URL]
git remote set-url --add --push [remote] [second repo URL]

Once set up, git remote -v should show two (push) URLs and one (fetch) URL. Something like this:

View bumpme
Fri Jun 29 14:35:32 UTC 2018
View Gcloud

Gcloud Cheatsheet


Create them using             gcloud init
Which config is set           gcloud info
List configurations           gcloud config configurations list
Change between them           gcloud config configuration activate <config>
Set project in current config gcloud config set project <project>

Keybase proof

I hereby claim:

  • I am jesusvazquez on github.
  • I am jesusvazquez ( on keybase.
  • I have a public key ASA9Y_Fqy7kUcb6wiXIeVdL_RAo7p-lgsTM3cGrYwNtKXAo

To claim this, I am signing this object:

You can’t perform that action at this time.