Skip to content

Instantly share code, notes, and snippets.

View gkawamoto's full-sized avatar
🐈‍⬛

Gustavo Kawamoto gkawamoto

🐈‍⬛
View GitHub Profile
@gkawamoto
gkawamoto / parent-pid-tree.sh
Created September 3, 2020 17:11
Simple script to list all parents from a given pid
#!/bin/bash
[ $# -lt 1 ] && {
echo 'inform the pid' >&2
exit 1
}
pid=$1
while true
do
ps -o pid,cmd -p $pid
[ $pid -eq 1 ] && break

Keybase proof

I hereby claim:

  • I am gkawamoto on github.
  • I am gkawamoto (https://keybase.io/gkawamoto) on keybase.
  • I have a public key ASBAXYuZsnuQjbOLJaV73J5Ugo6oJTzNRo-VfYGJDEZryQo

To claim this, I am signing this object:

@gkawamoto
gkawamoto / build.sh
Created November 14, 2019 19:57
Compiling pgBackRest @ Debian 10
#!/bin/bash
# Download
wget https://github.com/pgbackrest/pgbackrest/archive/release/2.19.tar.gz
# Uncompress
tar xfvz 2.19.tar.gz
cd pgbackrest-release-2.19/src/
# Dependencies
@gkawamoto
gkawamoto / build.sh
Created November 14, 2019 19:57
Compiling pgBackRest @ Debian 10
#!/bin/bash
# Download
wget https://github.com/pgbackrest/pgbackrest/archive/release/2.19.tar.gz
# Uncompress
tar xfvz 2.19.tar.gz
cd pgbackrest-release-2.19/src/
# Dependencies
@gkawamoto
gkawamoto / main.go
Created November 14, 2018 17:33
Exportando casts e episódios do 99Vidas para CSV
package main
import (
"bytes"
"encoding/csv"
"encoding/xml"
"io"
"net/http"
"os"
)