Skip to content

Instantly share code, notes, and snippets.

/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4Cf/AxBdADqcyosJgONiHFxK6O1Mca+SqOpjcE1qRgqt
3fPSmt+SMEaB84vHn53MuU/nbVA+KMqdwlnEQitZyBCREAet74vwEolMGqDnXqp+Wqks/FM8zrpO
NjskxLP9BIU0l+9EFssO94nWsD5wFq5UBlPhd5TH3P07fjxizeEsuF4Nz+dm1BQ5GVZN/IIYCdoJ
VVAQrlB0v1KWyL+NdowGm6cgdT4zG/xtAaed0pTs0lQW+hD+6GP64pujCGWd4L50cqNrZ9OjFOEn
S9CLkyPeN9iFGE4ymMIdk8HRXUzhyDFR+wzdOyiMz0C+e2H/DU9KSNt1TE3/Ctirng91vCB+Kfx/
quq9lrkoL7YI+w6050r8B7KgtyuA/wkpaYewSjMz4o5Uf1HIGhkmgFjLvLUvvTFZnHD1k/r2UO6w
y7GDeuil0xCfudlE5AshH0dPcIbllOXUFTpDItasjInSZwgXNXLb/ZuLidSKKY3aB/L3dNGiXvuM
RTS+4ZzSvHfHBt0pfKKLf8u2t1Uz2GKYRdirrS3nfH3mgUSyxOKIVfK8fOtsxm2o6IvOZfL6UTSa
pEg2orKI590jomsdt+bANRb9YfiAa9dtyOV/mZKgdes1Jlhn0YIG56CWs9LfIKWXNSNdy2bQkSwW
EXBSIyskKB1T2pvwVgk4tmzRZQdGiwjf886jTGPplqu9UwAnGax6QR/v/hxvEWELE6K0ZVMy1jSo
#!/bin/bash
DOCKER=docker
if [ "$(id --user)" != "0" ]; then
DOCKER="sudo $DOCKER"
fi
MIRROR=http://mirrors.tuna.tsinghua.edu.cn/debian
#!/bin/bash
if [ -z "$IF_VXLAN_VNI" ]; then
exit 0;
fi
function prep_args {
add_args=()
if [ -n "$IF_VXLAN_PORT" ]; then
add_args+=("dstport" "$IF_VXLAN_PORT")
@shankerwangmiao
shankerwangmiao / Rsync proxy for nginx
Last active December 6, 2023 13:54
Rsync proxy for nginx
Rsync proxy for nginx
@shankerwangmiao
shankerwangmiao / gcj02towgs84.jq
Created April 24, 2021 11:17
GCJ-02 to WGS-84
def __out_of_china:
.lng > 73.66 and .lng < 135.05 and .lat > 3.86 and .lat < 53.55 | not;
def __PI: 3.1415926535897932384626;
def __transformlng:
300.0 + .lng + 2.0 * .lat + 0.1 * .lng * .lng + 0.1 * .lng * .lat + 0.1 * (.lng | fabs | sqrt) +
(20.0 * (6.0 * .lng * __PI | sin) + 20.0 * (2.0 * .lng * __PI | sin)) * 2.0 / 3.0 +
(20.0 * (.lng * __PI | sin) + 40.0 * (.lng / 3.0 * __PI | sin)) * 2.0 / 3.0 +
(150.0 * (.lng / 12.0 * __PI | sin) + 300.0 * (.lng / 30.0 * __PI | sin)) * 2.0 / 3.0;
@shankerwangmiao
shankerwangmiao / Demo udeb
Last active February 3, 2021 15:13
Demo udeb
We couldn’t find that file to show.
/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4O//F9NdADoZSs4dkJsneBz/bNOb8/VIi6mfPJyl4E3R
ZPRcjYWVP8ZadAyWoshi62XKsliYPJ3ZGvuyQYNLzaIm/jpS0gzPRcE5gLB+4tZ4uGlPDpE7k9GZ
pq4A8utK90UGiwuv9fBUm9V7i3VqqeviR3k0gMBMFA9ZaFuE8fgVPumm0RVLqzGsMjjVQKeixvOm
PtLetv0A15UkErykYvsVFqJJr0kqcHNgis9Kbs50SRQKwd02jtw6IUeczWWLH8LeY4xJKaI06VwR
HeQSj01Uq7MfDCXB5TG1fcbmQ8wH0mt0TMpj7hSyB/ftQ3ffs0qJsBlD3H8UD2REt5hz+xDlOmKU
dBbrNzWLgibljkgu6kWIXUDVXfXkLQSIFdY0WkA76QfC//SpIwRV44tdxaLR2FcDIuR9hhN4qn+u
J/of6GZC8VtsSvqAe3QbqMrmDQn7c0kD4xQrm6VAg0KaWsOxE57s0TemWRsm+egHoZdkEIu8BkQV
+ceH8rKKJhHSO0oO3Z7psBdd8lJOPpMulPkC/iwq6xEM96YIPBAmYpJ2nI+ppIyxUX2GCuuEUklH
8wBFkbQkMpK42VGEemXFOIBVC7CXr6HFf+4JdVEqxETB4DCExvMTi4W0ULDIvvLh0gHq6DOPweOs
fB4TpzMlthqCBZ/OXyJviy37nUUgIGSZ+KQNN78e2pMFRDfKY1xk+e+zl14mqklRtTBg0o9EsOPR
Feb 27 06:44:10 101.6.8.227 4,27584,634001058486,-;WARNING: CPU: 0 PID: 0 at kernel/rcu/tree.c:2792 rcu_process_callbacks+0x4c5/0x500
Feb 27 06:44:10 101.6.8.227 4,27585,634001109697,-;Modules linked in:
Feb 27 06:44:10 101.6.8.227 4,27586,634001127944,c; tcp_diag
Feb 27 06:44:10 101.6.8.227 4,27587,634001140255,c; inet_diag
Feb 27 06:44:10 101.6.8.227 4,27588,634001153602,c; netconsole
Feb 27 06:44:10 101.6.8.227 4,27589,634001169636,c; reiserfs(O)
Feb 27 06:44:10 101.6.8.227 4,27590,634001185881,c; loop
Feb 27 06:44:10 101.6.8.227 4,27591,634001196759,c; ip_vs
Feb 27 06:44:10 101.6.8.227 4,27592,634001210249,c; veth
Feb 27 06:44:10 101.6.8.227 4,27593,634001221265,c; nf_conntrack_netlink
This file has been truncated, but you can view the full file.
H4sIACnkc1wAA9T2A5RuTdcliKadJ23btm3b9knbtm3b9knbtm3bmX3e76+urq6v/+5bNUbdezvG
M0bsPddaM2astZ7YYWjhYExrZGtjCvC/btD/HazM9P+aGVgZ/svM8q/572BmYmIDYGBiZmJmY2Fi
YftrZ2BgoqcHwKf/X6jpvw5nRycDB3x8AMO/ifi/8/t/sv+/dBDhK5tbOOL//RngW1vYWFgbWOH/
0w4WZs4OBk4Wtjb4phZWJtT4ruYWRub4BlZWtq6O+E7mJvj/5APf2MDE+q+Lky3+P1l0giLCN3R2
wne1sLLCt7F1wjcycHY0wTewcXcyt7Axwzex+vv219fcwM7OxIYWiuivv7yVicFf1MHE1MThH9s/
1Ma2Rs7WJjZO/7G+hc1/XY/mrwXfzsDI0sDMBN/WAV9QQlEYX8XRxIHM8S+VmLOF8V/YBt/cycmO
k47unwhaGxMnV1sHS1ojDzp8078h1rYOJn8p/z5a/wf939//vt9/NP6L0sDG+C+fgbHxP4iDrbPT
P7Odg62TrZGtlSMt1F+jkLmBzV8RTv9Kns1f4e62zv9F0D8BfzcjIUyLL+FE9k9i/yqwMqZx/Uee
s42FvfNfBcZ/92dhamH0LxF/+WxN/4PhP4Kp8Z0dnf8m2/2vPJN/bP8B/yWTkHdh/keZg4mjo8lf
Kf9lMQtjfAYOdloWBloGenpaBq5/JCr/zZqwiYuFkcl/1f5Pnf8pjMHfhP8t9H+/tX8E/82+iaMN
#!/bin/bash
negative(){
tr '0123456789ABCDEFabcdef' 'FEDCBA9876543210543210'
}
key_derive(){
local mpk="$1"
local asn="$2"
echo "$(echo "$asn" | tdes_enc "$mpk")$(echo "$asn" | negative | tdes_enc "$mpk")"