Skip to content

Instantly share code, notes, and snippets.

View fortuna's full-sized avatar
🔥
Prevent, Mitigate and Expose Censorship

Vinicius Fortuna fortuna

🔥
Prevent, Mitigate and Expose Censorship
View GitHub Profile
@fortuna
fortuna / m5stack-atom-echo.yaml
Last active December 2, 2024 01:19
Using a custom media player with M5Stack Atom Echo as Voice Assistant on Home Assistant
substitutions:
name: m5stack-atom-echo
friendly_name: M5Stack Atom echo
packages:
m5stack.atom-echo-wake-word-voice-assistant: github://esphome/wake-word-voice-assistants/m5stack-atom-echo/m5stack-atom-echo.yaml@main
esphome:
name: ${name}
name_add_mac_suffix: true
friendly_name: ${friendly_name}
#include <CapacitiveSensor.h>
#include <Adafruit_NeoPixel.h>
#include <math.h>
#define LED_PIN 2 // which pin is your LED data line plugged into?
#define LED_COUNT 16 // how many LEDs are in the strip or ring you're driving?
class FifoBuffer {
private:
static const int MAX_SIZE = 1000; // Maximum size of the buffer
@fortuna
fortuna / merge_results.tsv
Last active December 28, 2024 12:29
Analysis of blocking in Russia. All entries in one table.
strategy server_net server_port isp url_scheme exit_code img error
$key Digital Ocean 443 Bee Line Cable http 0
$key Digital Ocean 443 Bee Line Cable https 0
$key Digital Ocean 443 MTS PJSC http 28 curl: (28) Operation timed out after 10006 milliseconds with 0 bytes received
$key Digital Ocean 443 MTS PJSC https 28 curl: (28) Connection timed out after 10005 milliseconds
$key Digital Ocean 443 PJSC MegaFon http 0
$key Digital Ocean 443 PJSC MegaFon https 56 curl: (56) Failure when receiving data from the peer
$key Digital Ocean 443 Tele2 Russia http 0
$key Digital Ocean 443 Tele2 Russia https 0
$key Digital Ocean 5555 Bee Line Cable http 0
@fortuna
fortuna / $key.tsv
Last active May 20, 2024 02:35
Results of investigating blocking of Outline Shadowsocks in Russia. The best way to navigate is to use the filter to see the data for a specific client ISP, server network, error, port, URL, etc
socks_port client_isp url server_net server_port exit_code ok output
33333 MTS PJSC http://ipinfo.io/org Digital Ocean 443 28 curl: (28) Operation timed out after 10004 milliseconds with 0 bytes received
33333 MTS PJSC https://ipinfo.io/org Digital Ocean 443 56 curl: (56) Failure when receiving data from the peer
33334 PJSC MegaFon http://ipinfo.io/org Digital Ocean 443 0 AS14061 DigitalOcean, LLC
33334 PJSC MegaFon https://ipinfo.io/org Digital Ocean 443 0 AS14061 DigitalOcean, LLC
33335 Tele2 Russia http://ipinfo.io/org Digital Ocean 443 0 AS14061 DigitalOcean, LLC
33335 Tele2 Russia https://ipinfo.io/org Digital Ocean 443 56 curl: (56) Failure when receiving data from the peer
33336 Bee Line Cable http://ipinfo.io/org Digital Ocean 443 0 AS14061 DigitalOcean, LLC
33336 Bee Line Cable https://ipinfo.io/org Digital Ocean 443 56 curl: (56) Failure when receiving data from the peer
33333 MTS PJSC http://ipinfo.io/org Digital Ocean 5555 0 AS14061 DigitalOcean, LLC
1
00:00:28,190 --> 00:00:51,310
[Musik]
[Music]
2
00:00:54,550 --> 00:01:38,760
[Musik]
[Music]
@fortuna
fortuna / example.sh
Last active May 8, 2023 09:35
ClientHello splitting in Bash
# Author: Vinicius Fortuna
# Example practical usage at https://github.com/pypi/support/issues/2751#issuecomment-1535248888
mkfifo in.fifo
nc -l localhost 8443 < in.fifo | { dd bs=100 count=1; sleep 0.1; cat; } | nc files.pythonhosted.org 443 > in.fifo &
time curl --connect-to ::localhost:8443 'https://files.pythonhosted.org/packages/84/a9/2bf119f3f9cff1f376f924e39cfae18dec92a1514784046d185731301281/scipy-1.10.1.tar.gz' > /dev/null
<!DOCTYPE html>
<html>
<body>
<p>
I'm <a rel="me" href="https://github.com/fortuna">fortuna</a> on Github and
<a rel="me" href="https://mastodon.social/@vinifortuna">@[email protected]</a> on Mastodon.
</p>
</body>
</html>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
I'm @fortuna on Keybase and @[email protected] on Mastodon. Signed proof: https://gist.github.com/fortuna/7456cf29428e73f7af153e61ea88538e#file-mastodon-proof
Verify the signed message at https://keybase.io/verify.
-----BEGIN PGP SIGNATURE-----
Version: Keybase OpenPGP v2.1.13
Comment: https://keybase.io/crypto
wsBcBAABCgAGBQJjmMhOAAoJEJCUHN7iahDDl1gH/R2bgCROQB/GJhR73iyKqRrL
@fortuna
fortuna / echo.go
Last active October 23, 2020 15:51
Dial-back Echo Server
package main
import (
"io"
"log"
"net"
"os"
"sync"
"github.com/google/gopacket"
@fortuna
fortuna / Sites blocked on AS29049 (Delta Telecom Ltd).csv
Last active October 15, 2020 19:27
Azerbaijan SNI-based Blocking, September 2020
We couldn’t find that file to show.