Skip to content

Instantly share code, notes, and snippets.

flopping around

Gonçalo Baltazar goncalomb

flopping around
Block or report user

Report or block goncalomb

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

Keybase proof

I hereby claim:

  • I am goncalomb on github.
  • I am goncalomb ( on keybase.
  • I have a public key whose fingerprint is 371E 4E46 355E 1A01 26F3 2DFB 8332 4011 5C12 E219

To claim this, I am signing this object:

goncalomb / base62.php
Last active Feb 19, 2016
Integer to/from Base62 in PHP
View base62.php
// Author: Gonçalo Baltazar <>
// I place this code in the public domain.
* Functions to encode/decode an integer to/from base62.
* It is limited to positive integers up to BASE62_MAX to make sure it works on
* 32-bit systems.
# All GIFS and VIDEOS at:
# Original Video:
video="video_BMYxImN6EBo.mp4" # 720p
goncalomb / git-problems
Last active Jul 7, 2017
Bash script to find problems with git repositories.
View git-problems
# Author: Gonçalo Baltazar <>
# I place this code in the public domain.
# Finds problems with git repositories that might lead to information loss
# in case of losing the local copy.
# Things like: uncommitted changes, untracked files, commits not pushed, etc.
# Put this script on your PATH. Then run 'git-problems' on a git repository or
goncalomb /
Last active Jan 22, 2018
Script to choose your garlicoin mining pool, with logging.
# Script to choose your garlicoin mining pool, with logging.
# If you find it useful, I'm accepting some garlic at: GNHARsNxMKqXH8xNmSR9cc8RJqDNfKgMvj
# Thanks.
# On Linux:
# Put the spript anywhere.
# Run as any other spript (using the terminal).
# On Windows:
goncalomb / oddshot-archive.php
Last active Apr 23, 2018
Oddshot archiver. It's dead now.
View oddshot-archive.php
#!/usr/bin/env php
// oddshot archiver
// Gonçalo Baltazar <>
// I place this code in the public domain.
$channels_to_archive = [
# Partial YouTube downloader (bash script for Windows).
# goncalomb (, 2018
set -e
cd "$(dirname -- "$0")"
[ -f "youtube-dl.exe" ] || {
echo "Downloading youtube-dl..."
goncalomb /
Created Apr 23, 2018
Extract and index the SkyTorrents dump.
#!/usr/bin/env python3
Copyright (c) 2018 Gonçalo Baltazar <>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
goncalomb / k8s-protect
Last active Feb 5, 2019
Kubernetes context protector and utilities
View k8s-protect
# Kubernetes context protector and utilities
# Copyright (c) 2019 Gonçalo Baltazar <>
# MIT License
# protects from accidental operations to the incorrect kubectl context
# alerts the user when calling `kubectl` and `helm` on a production context
# assumes that `kubectl` and `helm` are installed and available on PATH
goncalomb / grafana-kiosk
Created May 12, 2019
Startup script to create Grafana based kiosks.
View grafana-kiosk
# Copyright (c) 2019 Gonçalo Baltazar <>
# MIT License
# Grafana Dashboard Kiosk using Google Chrome (or Chromium)
# opens an independent google chrome instance with a custom
# extension that injects Authorization headers for grafana
You can’t perform that action at this time.