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 / CustomTypefaceSpan.kt
Last active May 12, 2020 19:26 — forked from florina-muntenescu/CustomTypefaceSpan.kt
Style internationalized text using Annotations
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@brccabral
brccabral / 01_README.md
Created November 28, 2021 20:12
Code::Blocks settings

Code::Blocks settings

File default.conf contains my default settings and syntax highlights (color theme, based on dracula).
Not all languages have their highlights complete.

Place file default.conf in ~/.config/codeblocks

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 June 17, 2022 18:31
Powershell Oh-My-Posh

Powershell Oh-My-Posh

Script to setup Oh-My-Posh in Powershell

# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
# Update:
git fetch upstream
@brccabral
brccabral / 01_README.md
Last active September 9, 2022 03:47
C++ Multithreading
@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
@brccabral
brccabral / .01_README.md
Last active September 11, 2022 19:05
Visual Studio settings

Visual Studio settings

@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