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
# proxy list | |
alias proxy='export all_proxy=socks5://127.0.0.1:1080' | |
alias unproxy='unset all_proxy' |
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
#!/bin/sh | |
set -e | |
# Usage: | |
# curl ... | ENV_VAR=... sh - | |
# or | |
# ENV_VAR=... ./install.sh | |
# | |
# Example: | |
# Installing a server without traefik: |
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
#!/bin/sh | |
# 开启转发 | |
echo 'net.ipv4.ip_forward=1' >/usr/lib/sysctl.d/20-forward.conf | |
sysctl -p | |
# 指定外网 IP | |
# iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -j SNAT --to-source 192.168.0.1 | |
# 内网段 |
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
#!/bin/sh | |
set -e | |
# docker 配置 | |
: ${DOCKER_VERSION:="18.09"} | |
: ${DOCKER_CHANNEL:="stable"} | |
# k8s 配置 | |
: ${TAINT_NODES:="false"} | |
: ${K8S_VERSION:="1.15"} |
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
#!/bin/sh | |
yum -y install wget openssl tar gawk grep sed \ | |
bind-utils net-tools iproute iptables iptables-services \ | |
git htop iftop iotop bash-completion vim |
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
spec: | |
clusterIP: 10.241.15.142 | |
externalTrafficPolicy: Local | |
healthCheckNodePort: 31914 | |
ports: | |
- name: http | |
nodePort: 30080 | |
port: 80 | |
protocol: TCP | |
targetPort: 80 |
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
#!/bin/sh | |
kubectl proxy | |
NS=annoying-namespace-to-delete | |
kubectl get namespace ${NS} -o json > tmp.json | |
curl -k -H “Content-Type: application/json” -X PUT –data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/${NS}/finalize |
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
%% Author: PCHAPIER | |
%% Created: 25 mai 2010 | |
-module(utility). | |
%% | |
%% Include files | |
%% | |
%% | |
%% Exported Functions |
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
#!/bin/sh | |
mv /etc/apk/repositories /etc/apk/repositories.backup | |
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories | |
# apk add --no-cache |
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
高德卫星 AmapSatellite | |
http://wprd04.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&style=6 | |
高德地图 AmapTile | |
http://wprd04.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&style=7 | |
高德路网含标注 AmapRoadMark | |
http://wprd04.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&scl=1&style=8 | |
高德路网不含标注 AmapRoad |