Skip to content

Instantly share code, notes, and snippets.

View jairoFernandez's full-sized avatar

Jairo Fernández jairoFernandez

View GitHub Profile
jairoFernandez /
Created October 14, 2023 21:40 — forked from kgnfth/
How i sign git commits using Keybase on Ubuntu 20.04 and later.

Before following the guide, you should be familiar with GPG and Keybase... oh and Linux ofcourse!

The dollar sign($) means the terminal input.


- gpg # which is preinstalled in linux
- git
- zsh
- oh-my-zsh
jairoFernandez /
Created October 14, 2023 21:27 — forked from gtrabanco/
Import existing GPG keys from Keybase wizard and configure it for GIT
#!/usr/bin/env bash
#shellcheck disable=SC2016
set -euo pipefail
if [[ -z "${DOTLY_PATH:-}" ]] || ! output::empty_line > /dev/null 2>&1; then
jairoFernandez /
Created March 21, 2023 15:47 — forked from posener/
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
jairoFernandez / us_state_capitals.json
Created December 30, 2021 19:47 — forked from jpriebe/us_state_capitals.json
US State Capitals JSON file
"AL": {
"name": "Alabama",
"capital": "Montgomery",
"lat": "32.361538",
"long": "-86.279118"
"AK": {
"name": "Alaska",
"capital": "Juneau",
jairoFernandez /
Created July 30, 2017 03:47 — forked from urodoz/
Cleans the old images and exited containers
# Clean the exited containers
docker rm $(sudo docker ps -a | grep Exit | cut -d ' ' -f 1)
# Clean the untagged images (or old images)
docker rmi $(docker images | tail -n +2 | awk '$1 == "<none>" {print $'3'}')
# On Docker 1.9+ you can remove the orphan volumes with the next command
docker volume rm $(docker volume ls -qf dangling=true)