Skip to content

Instantly share code, notes, and snippets.

View brunohubner's full-sized avatar

Bruno Hubner brunohubner

View GitHub Profile
// # https://gist.github.com/brunohubner/4d07d5a5d765f651bab060806dec3122
// # https://steamcommunity.com/profiles/76561198290458808
// # Crosshair
// # CSGO-eeBKv-tL7HX-W83RO-HAoVC-rT6uC
// # Steam launch options:
// # -high -freq 240 -w 1536 -h 1080 -noborder -allow_third_party_software -threads 9 -novid -nojoy -no-browser -nohltv -console -softparticlesdefaultoff
// # ===========================================================================
function mostrarCupons(classes = 'item-code-link js-itemCode') {
const elList = document.getElementsByClassName(classes);
const arrayList = Array.from(elList ?? []).map((item) => item?.innerHTML);
const result = arrayList.reduce((acc, current) => acc += `${current}\n`, '');
console.log(result);
}
mostrarCupons();
function removerBloqueioSelecaoTextoWeb() {
try {
document.querySelectorAll('*').forEach(el => {
el.style.userSelect = 'text';
el.style.webkitUserSelect = 'text';
el.style.msUserSelect = 'text';
});
} catch (e) {
//
}
{
"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
@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"),