Skip to content

Instantly share code, notes, and snippets.

Avatar

Gustavo Kawamoto gkawamoto

View GitHub Profile
@gkawamoto
gkawamoto / parent-pid-tree.sh
Created Sep 3, 2020
Simple script to list all parents from a given pid
View parent-pid-tree.sh
#!/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
@gkawamoto
gkawamoto / result.log
Created Aug 20, 2020
Requests result httpd htaccess https/www enforce
View result.log
gustavo@redacted:~$ curl -k http://example.com
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://example.com/">here</a>.</p>
</body></html>
gustavo@redacted:~$ curl -k https://example.com
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
View keybase.md

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 Nov 14, 2019
Compiling pgBackRest @ Debian 10
View build.sh
#!/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 Nov 14, 2019
Compiling pgBackRest @ Debian 10
View build.sh
#!/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 Nov 14, 2018
Exportando casts e episódios do 99Vidas para CSV
View main.go
package main
import (
"bytes"
"encoding/csv"
"encoding/xml"
"io"
"net/http"
"os"
)
You can’t perform that action at this time.