Skip to content

Instantly share code, notes, and snippets.

View habibiefaried's full-sized avatar
🏃‍♂️
Working non-stop

Habibie Faried habibiefaried

🏃‍♂️
Working non-stop
View GitHub Profile
@habibiefaried
habibiefaried / gist:9dfab05cbae4be325cd954c6e701c51c
Created December 13, 2022 10:56 — forked from pwlin/gist:8a0d01e6428b7a96e2eb
Android : add cert to system store
https://code.google.com/p/android/issues/detail?id=32696#c5
If you have a certificate that is not
trusted by Android, when you add it, it goes in the personal cert store.
When you add a cert in this personal cert store, the system requires a
higher security level to unlock the device. But if you manage to add your
cert to the system store then you don't have this requirement. Obviously,
root is required to add a certificate to the system store, but it is quiet
easy.
@habibiefaried
habibiefaried / encrypt_file_pkcs5_pkcs7.go
Created June 8, 2022 15:28 — forked from huyinghuan/encrypt_file_pkcs5_pkcs7.go
golang encrypt with pkcs5 and pkcs7
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"errors"
"io"
"io/ioutil"
@habibiefaried
habibiefaried / main.go
Created May 28, 2022 19:07 — forked from walm/main.go
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@habibiefaried
habibiefaried / proxy.go
Created May 21, 2022 04:41 — forked from vmihailenco/proxy.go
Simple TCP proxy in Golang
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
@habibiefaried
habibiefaried / .env
Last active January 13, 2021 23:54 — forked from nicosingh/.env
MySQL cluster using docker
MYSQL_ROOT_PASSWORD=rootpass