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 / .01_README.md
Last active August 24, 2026 05:12
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
Created August 19, 2026 22:56
Pygame-CE compile from source and build wheel

Pygame-CE compile from source and build wheel

Build wheel with custom libraries

export LD_LIBRARY_PATH=/opt/SDL2/lib
git clone https://github.com/pygame-community/pygame-ce.git
cd pygame-ce
python -m venv .venv
source .venv/bin/activate
@brccabral
brccabral / .01_README.md
Last active August 9, 2026 23:59
MIDI sounds with FluidSynth and PulseAudio

MIDI sounds with FluidSynth and PulseAudio

Install FluidSynth to work as a virtual device capable of playing MIDI sounds. Install a default SoundFont (instrument).

sudo apt install fluidsynth fluid-soundfont-gm

Install "PulseAudio Volume Control" to Mute/Unmute and control volume gain.

sudo apt install pavucontrol
@brccabral
brccabral / .01_README.md
Created August 2, 2026 23:14
JetBrains customizations

JetBrains customizations

Plugins

  • One Dark Theme
  • CodeGlance Pro
  • Better Comments
  • Colored Brakets (Rainbow does not support C# or C++)
  • HighlightBracketPair
  • VSCode Keymap
  • JetBrains AI Assistant
@brccabral
brccabral / .01_README.md
Last active August 19, 2026 23:52
Bitwarden Self-Host

Bitwarden Self-Host

x86_64

  • Download bitwarden.sh wget https://github.com/bitwarden/self-host/raw/refs/heads/main/bitwarden.sh
  • chmod +x bitwarden.sh
  • ./bitwarden.sh install
    • follow instructions (create token in bitwarden.com)
  • config bwdata/config.yml
  • config bwdata/docker/docker-compose.yml (ports)
@brccabral
brccabral / .01_README.md
Last active August 24, 2026 06:47
Infisical
@brccabral
brccabral / .01_README.md
Last active August 24, 2026 06:42
Home Assistant
@brccabral
brccabral / 01_README.md
Last active August 27, 2026 22:19
VNC on Browser (noVNC, Apache Guacamole, WayVNC)
@brccabral
brccabral / app.py
Created March 25, 2026 02:04
Flask webserver with .gz support
from flask import Flask, send_from_directory, request
app = Flask(__name__)
@app.route('/<path:path>')
def serve_file(path):
if path.endswith(".gz"):
response = send_from_directory('.', path)
response.headers['Content-Encoding'] = 'gzip'
return response
@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