This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"/> | |
<title>APR1 HTPasswd Generator</title> | |
</head> | |
<body> | |
<p>See console</p> | |
</body> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CIPHERS='ALL:eNULL' | |
DELAY=${2:-0.1} | |
SERVER=${1:?usage: $0 <host:port> [delay, default is ${DELAY}s] [ciphers, default is ${CIPHERS}]} | |
MAXLEN=$(openssl ciphers "$CIPHERS" | sed -e 's/:/\n/g' | awk '{ if ( length > L ) { L=length} }END{ print L}') | |
echo Using $(openssl version). | |
declare -A TLSMAP=( [tls1_1]=cipher [tls1_2]=cipher [tls1_3]=ciphersuites ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debootstrap --include=dbus,systemd stable /opt/container/k3s https://mirrors4.tuna.tsinghua.edu.cn/debian/ | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
echo 1 > /proc/sys/vm/overcommit_memory | |
echo 196608 > /proc/sys/net/netfilter/nf_conntrack_max | |
echo 1 > /proc/sys/kernel/panic_on_oops | |
echo 10 > /proc/sys/kernel/panic | |
modprobe br_netfilter | |
modprobe overlay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.net.URLEncoder; | |
import java.nio.charset.StandardCharsets; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandom; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
name=$1 | |
file=$1 | |
file=$(sed "s#/#-#g" <<< "$file") | |
file=$(sed "s#:#-#g" <<< "$file") | |
file="$file.tar.gz" | |
docker pull "your.mirror.site/$name" | |
docker tag "your.mirror.site/$name" "$name" |