Skip to content

Instantly share code, notes, and snippets.

View gabrielbarros's full-sized avatar

Gabriel Barros gabrielbarros

  • Rio de Janeiro, Brasil
  • 20:22 (UTC -03:00)
View GitHub Profile
*/30 * * * * curl -u user@email.com:password https://updates.opendns.com/nic/update
@gabrielbarros
gabrielbarros / github-keys.txt
Created March 8, 2019 23:33
Github SSH key and GPG
https://github.com/USER.keys
https://github.com/USER.gpg
@gabrielbarros
gabrielbarros / disable-incognito-mode.md
Last active March 8, 2024 14:09
How to disable incognito mode in your browser

How to disable incognito mode in your browser

Google Chrome on Windows

Disable

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome /v IncognitoModeAvailability /t REG_DWORD /d 0x00000001

Re-enable

reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome /v IncognitoModeAvailability /f
@gabrielbarros
gabrielbarros / qr-code.png
Last active July 7, 2021 01:08
Google Authenticator example - test 2FA
qr-code.png
@gabrielbarros
gabrielbarros / all-emojis.sql
Last active May 19, 2022 22:36
All emojis - full list (Emoji 14.0 / 2021)
-- MariaDB dump 10.19 Distrib 10.5.13-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: emoji
-- ------------------------------------------------------
-- Server version 10.5.13-MariaDB-1:10.5.13+maria~focal-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
@gabrielbarros
gabrielbarros / ANSI.md
Created February 4, 2022 00:25 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
1 AC_BR_BONANZA Too many newlines in a row... spammy template
2 ACCESSDB Message would have been caught by accessdb
3 ACCT_PHISHING_MANY Phishing for account information
4 AC_DIV_BONANZA Too many divs in a row... spammy template
5 AC_FROM_MANY_DOTS Multiple periods in From user name
6 AC_HTML_NONSENSE_TAGS Many consecutive multi-letter HTML tags, likely nonsense/spam
7 AC_POST_EXTRAS Suspicious URL
8 AC_SPAMMY_URI_PATTERNS10 link combos match highly spammy template
9 AC_SPAMMY_URI_PATTERNS11 link combos match highly spammy template
10 AC_SPAMMY_URI_PATTERNS12 link combos match highly spammy template
#!/usr/bin/env bash
url='https://chromium.googlesource.com/chromium/src/net/+/main/http/transport_security_state_static.json?format=TEXT'
wget -O - "$url" | base64 -d | sed '/^ *\/\// d;/^\s*$/d' > hsts.json
@gabrielbarros
gabrielbarros / unicode-invisible-chars.txt
Last active March 6, 2024 17:59
Unicode Invisible characters
U+0009 CHARACTER TABULATION
U+0020 SPACE
U+00A0 NO-BREAK SPACE
U+00AD SOFT HYPHEN
U+034F COMBINING GRAPHEME JOINER
U+061C ARABIC LETTER MARK
U+115F HANGUL CHOSEONG FILLER
U+1160 HANGUL JUNGSEONG FILLER
U+17B4 KHMER VOWEL INHERENT AQ
U+17B5 KHMER VOWEL INHERENT AA
@gabrielbarros
gabrielbarros / unicode-intervals.txt
Last active March 6, 2024 20:54
Unicode code point intervals (UTF-8, UTF-16BE and UTF-32BE)
UNICODE
• Basic plan: 63,488 valid code points
┌───────────────────┬─────────┬─────────┬─────────┬───────────────────┐
│ Interval │ UTF-8 │ UTF-16 │ UTF-32 │ Code points │
├───────────────────┼─────────┼─────────┼─────────┼───────────────────┤
│ U+0000..U+007F │ 1 byte │ 2 bytes │ 4 bytes │ 128 (ASCII) │
├───────────────────┼─────────┼─────────┼─────────┼───────────────────┤
│ U+0080..U+07FF │ 2 bytes │ 2 bytes │ 4 bytes │ 1,920 │
├───────────────────┼─────────┼─────────┼─────────┼───────────────────┤