Skip to content

Instantly share code, notes, and snippets.

@thilojaeggi
thilojaeggi / tv7.m3u
Last active May 22, 2024 20:29
init7 tv7 HLS Streams
#EXTM3U
#EXTINF:0 tvg-name="SRF1 HD" tvg-language="chde" tvg-country="ch" tvg-id="1010" tvg-logo="https://tv7api2.tv.init7.net/media/logos/SRF1HD_300x300px.png" group-title="",SRF1 HD
https://tv7api2.tv.init7.net/api/live/?channel=5620aa6c-3349-44bc-91eb-dfb08e70634f
#EXTINF:0 tvg-name="SRFzwei HD" tvg-language="chde" tvg-country="ch" tvg-id="1012" tvg-logo="https://tv7api2.tv.init7.net/media/logos/srf-zwei-hd-neu.png" group-title="",SRFzwei HD
https://tv7api2.tv.init7.net/api/live/?channel=0d838fbe-c285-4cc9-8f94-c1b1d11ea87c
#EXTINF:0 tvg-name="SRF Info HD" tvg-language="chde" tvg-country="ch" tvg-id="1015" tvg-logo="https://tv7api2.tv.init7.net/media/logos/srf-info-hd-neu.png" group-title="",SRF Info HD
https://tv7api2.tv.init7.net/api/live/?channel=9f30a91d-7f1a-4307-964a-31e19ca28d7e
#EXTINF:0 tvg-name="blue Zoom D" tvg-language="chde" tvg-country="ch" tvg-id="1020" tvg-logo="https://tv7api2.tv.init7.net/media/logos/Zoom_D.jpg" group-title="",blue Zoom D
https://tv7api2.tv.init7.net/api/live/?channel=35e
@ofou
ofou / servers.csv
Created April 11, 2021 06:15
List of servers to test speedtest-cli
We can't make this file beautiful and searchable because it's too large.
Country,City,Provider,Host,ID
Abkhazia,Sukhum,Aquafon GSM,62.182.8.78:8080,9058
Abkhazia,Sukhum,"Systema, LTD",cyxym.net:8080,5089
Abkhaziya,Sukhum,A-Mobile,speedtest.a-mobile.biz:8080,9714
Afghanistan,Herat,Afghan Wireless,hrtspeedtest.afghan-wireless.com:8080,9622
Afghanistan,Kabul,Afghan Telecom,sp1.afghantelecom.af:8080,11019
Afghanistan,Kabul,etisalat Afghanistan,speedtest.etisalat.af:8080,21807
Afghanistan,Kabul,Afghan Wireless,speedtest.afghan-wireless.com:8080,5189
Afghanistan,Kabul,Afghan Wireless Communication Company,kdzspeedtest.afghan-wireless.com:8080,13501
Afghanistan,Kabul,Insta Telecom,speedtest.instatelecom.com:8080,12798
@m-radzikowski
m-radzikowski / script-template.sh
Last active August 18, 2024 12:49
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@acacio
acacio / main.go
Created February 16, 2020 21:00 — forked from walm/main.go
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@ueno
ueno / libfido2-test.md
Last active September 1, 2024 02:36
Testing FIDO2 with libfido2

Install libfido2 package from copr

$ sudo dnf copr enable gtb/libfido2

Create a credential (a keypair on the token)

Create a parameters file

$ echo credential challenge | openssl sha256 -binary | base64 &gt; cred_param
@alexedwards
alexedwards / gist.go
Created August 9, 2019 08:32
ACME Autocert for Go
package main
import (
"crypto/tls"
"flag"
"fmt"
"log"
"net/http"
"time"
@miguelmota
miguelmota / rsa_util.go
Last active August 30, 2024 08:36
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)
@xjdrew
xjdrew / dsa.go
Last active February 20, 2024 08:04
DSA example
package main
import (
"crypto/dsa"
"crypto/rand"
"crypto/sha1"
"crypto/x509"
"encoding/asn1"
"encoding/pem"
"errors"
@xjdrew
xjdrew / client.go
Last active August 1, 2024 21:42
golang tls client and server, require and verify certificate in double direction
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io"
"io/ioutil"
"log"
"os"