Skip to content

Instantly share code, notes, and snippets.

View brunohubner's full-sized avatar

Bruno Hubner brunohubner

View GitHub Profile
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#0b5a00",
"activityBar.background": "#0b5a00",
"activityBar.foreground": "#ffffff",
"activityBar.inactiveForeground": "#ffffff99",
"activityBarBadge.background": "#25320e",
"activityBarBadge.foreground": "#ffffff",
"commandCenter.border": "#ffffff",
"sash.hoverBorder": "#0b5a00",
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
REPOS=(
"repo-name-01"
"repo-name-02"
"repo-name-03"
)
# https://gist.github.com/brunohubner/34bfd45aff6105b0aea3437867e06649
# Ignore all logfiles and tempfiles.
/log/*
/logs/*
!/log/.keep
!/logs/.keep
!/log/.gitkeep
!/logs/.gitkeep
/tmp
@brunohubner
brunohubner / remover-bloqueio-selecao-texto-web.md
Created April 12, 2025 19:43
Remover listeners de eventos de bloqueio

✅ 1. Remover CSS que bloqueia a seleção

No console, você pode forçar a página a permitir seleção de texto:

document.querySelectorAll('*').forEach(el => {
  el.style.userSelect = 'text';
  el.style.webkitUserSelect = 'text';
  el.style.msUserSelect = 'text';
});
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [
{
"command": "find",
"id": "User.find"
},
{
"command": {
const fs = require('fs');
const path = require('path');
const resumoDir = path.join(__dirname, 'resumos');
fs.mkdirSync(resumoDir, { recursive: true });
function write_pending_follow_requests() {
const data = require('./connections/followers_and_following/pending_follow_requests.json');
// Notion Formulas for Time Tracking
// =============================================================================
// Notion Formula to hidden field _minutes:
toNumber(slice(prop("Hours"), 0, 1)) * 60 + toNumber(slice(prop("Hours"), 2, 4))
// Indented version for readability:
toNumber(
slice(
prop("Hours"),
@brunohubner
brunohubner / prac.cfg
Created November 23, 2024 17:07
CS2 practice settings
cls;
sv_cheats 1;
bot_kick;
ammo_grenade_limit_total 5;
mp_startmoney 60000;
mp_maxmoney 60000;
mp_roundtime 60;
@brunohubner
brunohubner / autoexec.cfg
Last active November 26, 2025 17:51
Santhor's CS2 Settings
// # https://steamcommunity.com/profiles/76561198290458808
// # https://gist.github.com/brunohubner/17d883cf609a96e8087e444a675907a7
// # Crosshair
// # CSGO-HrhF8-8mCMv-65n3o-w9K4n-xh74E
// # Steam launch options:
// # -high -freq 240 -noborder -allow_third_party_software -noreflex -threads 9 -novid -nojoy -no-browser -nohltv -console -softparticlesdefaultoff +r_drawparticles 0 -forcenovsync -limitvsconst +cl_forcepreload 1 +mat_disable_fancy_blending 1
// # ===========================================================================
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install build-essential checkinstall libffi-dev python2-dev python2 python-dev-is-python3 -y
sudo apt-get install libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev -y