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 May 4, 2024 04:13
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"
)
@miguelmota
miguelmota / rsa_util.go
Last active May 10, 2024 20:54
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 January 22, 2024 05:49
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"
@6174
6174 / golang-tls.md
Created December 12, 2016 06:33 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
    
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key
@walm
walm / main.go
Last active May 15, 2024 06:01
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)