Skip to content

Instantly share code, notes, and snippets.

View brccabral's full-sized avatar
🐔
Vamos, Galo! Ganhar o Brasileiro!

Bruno Cabral brccabral

🐔
Vamos, Galo! Ganhar o Brasileiro!
View GitHub Profile
@brccabral
brccabral / README.md
Last active October 6, 2026 01:31
XFCE on Android Termux
@brccabral
brccabral / .01_README.md
Last active September 22, 2026 16:52
Ubuntu Customizations

Ubuntu extensions and Softwares

On Ubuntu, initially your user may not be in sudo group

# enter as root
su -
# add your username into sudo group
usermod -aG sudo username
exit
# logout / log back in as username
@brccabral
brccabral / .01_README.md
Last active September 18, 2026 17:11
Windows Customizations
@brccabral
brccabral / .01_README.md
Last active September 17, 2026 04:32
Nginx with GoAccess

Nginx Proxy Manager with GoAccess directly

NPM already has a nginx running. Configure the landing page for GoAccess/index.html and create the proxy in NPM that points to the landing page, with the custom /ws paths.

We need two GoAccess', one to parse default-host_access.log and the other for all proxy-host-X_access.log because the log-format are different.
Default-Host uses combined but Proxies use proxy.

  • data/nginx/default_host/site.conf
access_log /data/logs/default-host_access.log combined;
@brccabral
brccabral / 01_README.md
Last active September 1, 2026 21:40
VSCode VSCodium snippets and settings

VSCode VSCodium snippets and settings

Place the snippets at ~/.config/Visual Studio Code/User/snippets or ~/.config/VSCodium/User/snippets
Use "scope" to tell VSCode/VSCodium to use it in a specific language.

VSCode/VSCodium don't come with Python snippets. I am creating them as I need.

Create symlinks for extensions folder if they occupy too much space in the $HOME drive.

@brccabral
brccabral / 01_README.md
Last active August 27, 2026 22:19
VNC on Browser (noVNC, Apache Guacamole, WayVNC)
@brccabral
brccabral / 01_README.md
Last active August 25, 2026 22:13
Self-Signed Certificate with Self-Signed CA

Self-Signed Certificate with Self-Signed CA

Create file san.cnf

[ v3_req ]
subjectAltName = @alt_names

[ alt_names ]
DNS.1 = *.myserver.local
DNS.2 = myserver.local
@brccabral
brccabral / 01_README.md
Last active August 24, 2026 09:57
Pihole
@brccabral
brccabral / 01_README.md
Last active August 24, 2026 08:28
Nextcloud with FaceRecognition

Nextcloud with FaceRecognition

Nextcloud

First we need to install Nextcloud. I followed this video https://www.youtube.com/watch?v=SX1JHWViI7E for Arch Linux. For Ubuntu, follow instructions below. Although in the video he installs version 18 and at this moment there is version 24, I was able to install the 18 version with php 7.4 and the video instructions worked fine. To upgrade to 24 I had some issues, I didn't save all the steps to write them here, but it is basically about files permission. Just use "chown/chmod" in the failed files and try http:http or http:root.

Log is at "/usr/share/webapps/nextcloud/data/nextcloud.log"

@brccabral
brccabral / .01_README.md
Last active August 24, 2026 06:47
Infisical