Skip to content

Instantly share code, notes, and snippets.

@ckowarzik
ckowarzik / snowstats.sh
Last active September 16, 2024 14:08 — forked from Atrate/snowstats.sh
Quick script to get the statistics of traffic on Tor Project's Snowflake proxy instance running locally on docker
#!/bin/bash
# docker logs example:
# 2023/12/30 19:37:09 In the last 1h0m0s, there were 62 connections. Traffic Relayed ↑ 1321997 KB, ↓ 165777 KB.
docker logs snowflake-proxy 2>&1 \
| grep "Traffic Relayed" \
| sed 's|^\(20[0-9]\{2\}/[0-9]\{2\}/[0-9]\{2\}\) .* there were \([0-9]\+\) connections. Traffic Relayed . \([0-9]\+\) \([KMG]\?B\), . \([0-9]\+\) \([KMG]\?B\).$|\1 \2 \3 \4 \5 \6|' \
| awk '
BEGIN {
@HCl-not-HCi
HCl-not-HCi / SUN-MI-RELAY-Dokumentation.md
Last active January 5, 2025 18:41
SUN-MI-RELAY-DOKUMENTATION

SUN-MI-RELAY-Dokumentation

Firmware-Versionen

Das Update der WR-Firmware installiert automatisch einige Zeit nach dem Einstecken des Relais (z.B. 1-2 Stunden [3]). Danach ist ein Neustart erforderlich, der nach verschiedenen Erfahrungen nachts passiert oder durch manuelle Neustarts. Gibt es auch automatische Neustarts?

Logger Module Version No.

  • Ohne Relais: MW3_16U_5406_1.57, MW3_16U_5406_2.06
  • Mit Relais:
@centic9
centic9 / userDefineLang_Dockerfile.xml
Last active June 18, 2025 09:37
notepad++ syntax highlighting for Dockerfiles, store at something like C:\Users\[user]\AppData\Roaming\Notepad++\userDefineLangs\userDefineLang_Dockerfile.xml
<NotepadPlus>
<UserLang name="Dockerfile" ext="Dockerfile" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="1" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>