Skip to content

Instantly share code, notes, and snippets.

View gabrielbarros's full-sized avatar

Gabriel Barros gabrielbarros

  • Rio de Janeiro, Brasil
  • 00:24 (UTC -03:00)
View GitHub Profile
#!/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
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
@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
@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 / qr-code.png
Last active July 7, 2021 01:08
Google Authenticator example - test 2FA
qr-code.png
@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 / github-keys.txt
Created March 8, 2019 23:33
Github SSH key and GPG
https://github.com/USER.keys
https://github.com/USER.gpg
*/30 * * * * curl -u [email protected]:password https://updates.opendns.com/nic/update