Skip to content

Instantly share code, notes, and snippets.

View FreddieOliveira's full-sized avatar
💭
Hakuna Matata!

Frederico Oliveira FreddieOliveira

💭
Hakuna Matata!
  • Federal University of Uberlândia
  • Brazil
View GitHub Profile
@FreddieOliveira
FreddieOliveira / files.patch
Last active June 10, 2023 18:24
Xiaomi Note 11 (spes) kernel patches
diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
index d37b83f4..f27945a0 100644
--- a/drivers/gpu/drm/drm_panel.c
+++ b/drivers/gpu/drm/drm_panel.c
@@ -30,6 +30,20 @@
static DEFINE_MUTEX(panel_lock);
static LIST_HEAD(panel_list);
+int drm_register_client(struct notifier_block *nb)
+{
@FreddieOliveira
FreddieOliveira / Dockerfile
Last active January 27, 2023 07:47
Steps to build an ARM Kali Linux docker image from within Termux app in Android.
FROM scratch
# Metadata params
ARG BUILD_DATE
ARG VERSION
ARG TARBALL
ARG RELEASE_DESCRIPTION
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL org.opencontainers.image.created=$BUILD_DATE \
@FreddieOliveira
FreddieOliveira / docker.md
Last active November 21, 2024 11:13
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

Keybase proof

I hereby claim: * I am freddieoliveira on github. * I am freddieoliveira (https://keybase.io/freddieoliveira) on keybase. * I have a public key ASAxb_ZDU0UeZ_oI_vLM0-pv7l5bmTpcfLwTNDULlwVZLgo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "0120316ff64353451e67fa08fef2ccd3ea6fee5e5b993a5c7cbc1334350b9705592e0a",       "host": "keybase.io",       "kid": "0120316ff64353451e67fa08fef2ccd3ea6fee5e5b993a5c7cbc1334350b9705592e0a",       "uid": "36394356151928595cbc7260188c5719",       "username": "freddieoliveira"     },     "merkle_root": {       "ctime": 1566327927,       "hash": "d599e31b30c2587f6ffae3f8e2aa33df8619b99e4e3166a419884fe88d27222da8927f6df53eb7a96b4e35befa01c38b5a8abea3ba02d1c1803f36f943280dd1",       "hash_meta": "34bb3414dfe5ed5933675a450eab189e78c24b8a9447470ed8e848146c4d2ff8",       "seqno": 6059100     },     "service": {       "entropy": "fYKWqAaVSqLx2HU4Tw0kvINX",       "name": "github",       "username": "freddieoliv
@FreddieOliveira
FreddieOliveira / rot.sh
Last active April 11, 2022 21:24
Simple bash script to produce all Ceaser cypher variations (from rot1 to rot25)
#!/bin/sh
# original ideia from here: https://chris-lamb.co.uk/posts/decrypting-caesar-cipher-using-shell
# check number of arguments
if (( $# != 1 )); then
echo "Usage: $0 TEXT"
exit -1
fi
IN=$1