Skip to content

Instantly share code, notes, and snippets.

@MariusHerget
MariusHerget / analyze_snowflake_logs.py
Last active April 25, 2024 09:18 — forked from Allstreamer/snow.py
An advanced script to summarize a Snowflake(Tor Project) Log file with the corresponding docker compose file
# This Script uses the following dependancies
# pip install nums-from-string
# pip install datetime
#
# To Run this script type:
# python analyze_snowflake_logs.py <Log File Name>
#
# The default <Log File Name> is ./docker_snowflake.log
#
# Example:
@Atrate
Atrate / snowstats.sh
Last active April 2, 2024 19:02
Quick script to get the statistics of traffic on Tor Project's Snowflake proxy instance running locally on docker
#!/bin/bash --posix
docker logs snowflake-proxy 2>&1 | grep --color=auto 'Traffic Relayed' | awk '
{
# Extract the download and upload values
down[1] = $14
down[2] = $15
gsub(/[^a-zA-Z]/, "", down[2])
up[1] = $17
up[2] = $18
{
inputs = {
nixos-hardware.url = github:IvanMalison/nixos-hardware;
nixpkgs = {
url = github:NixOS/nixpkgs/nixos-unstable;
};
};
outputs = { self, nixpkgs, nixos-hardware }:
let configuration = { config, pkgs, ... }:
{
{ config, pkgs, lib, ... }:
let
user = "nixos";
password = "nixos";
SSID = "MyBox";
SSIDpassword = "...";
interface = "wlan0";
hostname = "MyPi";
in {
@MrXermon
MrXermon / ooklaserver.service
Created January 10, 2021 07:06
Ookla Server systemd file
[Unit]
Description=ooklaserver
After=network.target
[Service]
User=ooklaserver
Group=ooklaserver
WorkingDirectory=/opt/ooklaserver
ExecStart=/opt/ooklaserver/OoklaServer --daemon --pidfile=/opt/ooklaserver/OoklaServer.pid
PIDFile=/opt/ooklaserver/OoklaServer.pid
_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide
@jalogisch
jalogisch / Netflix - Unitymedia | Customer Hell!
Last active May 15, 2016 09:45
I have since last Monday(2016-02-22) - first day i notice - problems getting Netflix Content into my home. - Lost in a Customer Hell between Netflix and Unitymedia
2016-02-22
During the Day (2016-01-22) i notice that Netflix is not working on my TV. I tried other Devices but always getting an Error pointing me to http://netflix.com/proxy.
I called netflix (Germany) and over 30 min the agent followed his script what need to be done (reboot the modem, change devices and use mobile data) to show me that netflix does not have a problem and i should call my ISP.
Short after that, i called my ISP. The Agent told me that this morning they got notified by the tech department that unitymedia tech is working with netflix tech on this issue.
If i use another connection - a VPN to my Server, mobile data - connection is possible. Netflix relax and say "look your ISP has an issue"
Detailed Information are written down as note to my Account.
@krin-san
krin-san / happy_birthday.mikrotik
Created October 30, 2015 22:27
Happy Birthday song played using a speaker
:beep frequency=264 length=250ms;
:delay 500ms;
:beep frequency=264 length=250ms;
:delay 250ms;
:beep frequency=297 length=1000ms;
:delay 250ms;
:beep frequency=264 length=1000ms;
:delay 250ms;
:beep frequency=352 length=1000ms;
:delay 250ms;
@patrickhammond
patrickhammond / android_instructions.md
Last active March 29, 2024 20:14
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@minikomi
minikomi / persona.go
Last active December 11, 2015 06:59
mozilla persona test
package main
import (
"encoding/json"
"fmt"
"github.com/gorilla/sessions"
"io/ioutil"
"log"
"net/http"
"net/url"