Skip to content

Instantly share code, notes, and snippets.

View ricjcosme's full-sized avatar

Ricardo Cosme ricjcosme

View GitHub Profile

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/

After discovering it chowing 2 cores, I decided to go about disabling it.

Directories

@ricjcosme
ricjcosme / main.go
Created April 4, 2018 10:19
Command line base58 enc/dec in golang
package main
import (
"fmt"
"io/ioutil"
"os"
"strings"
"bufio"
b58 "github.com/jbenet/go-base58"
@ricjcosme
ricjcosme / dump-restore
Created September 13, 2017 17:33
DUMP / RESTORE PostgreSQL Kubernetes
DUMP
// pod-name name of the postgres pod
// postgres-user database user that is able to access the database
// database-name name of the database
kubectl exec [pod-name] -- bash -c "pg_dump -U [postgres-user] [database-name]" > database.sql
RESTORE
// pod-name name of the postgres pod
// postgres-user database user that is able to access the database
// database-name name of the database