mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
move ./bin to vimagick/rpi-bin
This commit is contained in:
parent
a1662a7f2e
commit
008dec4b5b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# free shadowsocks
|
||||
#
|
||||
|
||||
{
|
||||
echo 'server,server_port,password,method,local_address,local_port,timeout'
|
||||
curl -s 'http://www.ishadowsocks.com/' |
|
||||
sed -n '/<section id="free"/,/section>/{/font/d;p}' |
|
||||
grep -oP '(?<=<h4>).*(?=</h4>)' |
|
||||
cut -d : -f 2 |
|
||||
sed -e 'N;N;N;s/\n/,/g' \
|
||||
-e 's/$/,0.0.0.0/' \
|
||||
-e 's/$/,1080/' \
|
||||
-e 's/$/,300/'
|
||||
} |
|
||||
csvjson |
|
||||
jq -c 'map(
|
||||
.fast_open = true |
|
||||
with_entries(
|
||||
.key as $key |
|
||||
if ((["server_port", "local_port", "timeout"] | index($key)) == null)
|
||||
then
|
||||
.
|
||||
else
|
||||
(.value |= tonumber)
|
||||
end
|
||||
)
|
||||
)[]' |
|
||||
while read line
|
||||
do
|
||||
server=$(echo "$line" | jq -r .server)
|
||||
etcdctl -C 192.168.1.228:2379 set "/services/shadowsocks/$server" "$line"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user