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 September 11, 2022 19:06
Python circular import

Python circular import

@brccabral
brccabral / 01_README.md
Last active September 11, 2022 19:06
VSCode C++ setup

VSCode C++ setup

Copy files below into .vscode\ inside your project folder

@brccabral
brccabral / 01_README.md
Last active September 11, 2022 19:06
Color mixer

Color mixer

@brccabral
brccabral / 01_README.md
Last active September 24, 2023 04:00
DisplayLink Dell installation
@brccabral
brccabral / 01_README.md
Last active January 26, 2023 08:06
Ubuntu Nvidia

SFML

Download

  1. Go to SFML GitHub page https://github.com/SFML/SFML
  2. Change the branch to the version you want to build, or keep in master to build most recent
  3. Download the zip file for that branch
  4. Extract any where, I like ~/SFML-versionX

Compile and Install

  1. Open cmake-gui (install with apt install cmake-qt-gui, run with cmake-gui)
  2. Field "Where is the source code": ~/SFML-versionX
@brccabral
brccabral / 01_README.md
Last active September 24, 2022 02:18
Waydroid

Waydroid commands

@brccabral
brccabral / 01_SFML.md
Last active October 13, 2022 01:27
SFML Visual Studio Configurations

SFML Visual Studio Configurations

Menu Project >
    "Project" Properties >
        Configuration - Debug >
        Platform - Win32 or x64 >
            Configuration Properties >
                C/C++ >
                    General >
@brccabral
brccabral / .01_README.md
Last active October 6, 2025 20:51
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 / README.md
Last active September 11, 2022 19:02
Ubuntu 20.04 Wayland

Ubuntu 20.04 Wayland

  1. sudo apt install gnome-session-wayland
  2. Edit /etc/gdm3/custom.conf and comment WaylandEnable=false
  3. Edit /usr/lib/udev/rules.d/61-gdm.rules and comment all lines
  4. Edit /etc/default/grub and add "acpi_osi=Linux" into GRUB_CMDLINE_LINUX="acpi_osi=Linux"
  5. Reboot
  6. In login page, select Ubuntu on Wayland in the cogwheel
  7. sudo apt install qtwayland5