sequenceDiagram
participant User
participant ApiServer
participant Etcd
participant ControllerManager
participant ReplicaSetController
participant Scheduler
participant Kubelet
participant Docker
This file contains hidden or 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
| """ | |
| 单词默写表格生成小工具 | |
| 读取包含了单词以及中文释义两列的 Excel 文件(也可以是 csv 文件) | |
| 然后按照 A4 纸大小排列可这翻折的单词默写表格形式 | |
| 每页 48 个单词,每个单词都需要默写中文释义以及中文对应的单词 | |
| """ | |
| import pandas as pd | |
| import openpyxl | |
| from openpyxl.styles import Alignment, Border, Side | |
| from openpyxl.worksheet.page import PageMargins |
This file contains hidden or 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
| name: mkdoc-release | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 |
This file contains hidden or 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
| @echo off | |
| pushd "%~dp0" | |
| dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt | |
| dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt |
This file contains hidden or 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
| 222.211.64.122 se.itunes.apple.com | |
| 222.211.64.122 su.itunes.apple.com | |
| 222.211.64.122 upp.itunes.apple.com | |
| 222.211.64.122 play.itunes.apple.com | |
| 222.211.64.122 client-api.itunes.apple.com | |
| # API-2-ChinaCache [ChinaNet] (Avg RTT: 15.339ms) | |
| 125.65.247.14 itunes.apple.com | |
| 125.65.247.14 init.itunes.apple.com | |
| # API-HK-Akamai-1 [HongKong0] (Avg RTT: 52.706ms) | |
| 184.87.97.50 search.itunes.apple.com |
This file contains hidden or 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
| # Shadowrocket: 2020-12-13 10:10:56 | |
| [General] | |
| bypass-system = true | |
| skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, e.crashlytics.com, captive.apple.com | |
| bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32 | |
| #dns-server = 119.29.29.29,114.114.114.114,223.5.5.5,8.8.8.8 | |
| ipv6 = false | |
| [Rule] | |
| DOMAIN-SUFFIX,rfi.fr,PROXY |
This file contains hidden or 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
| JKS=mykeystore | |
| JKS_PASS=changeit | |
| JKS_ALIAS=tomcat | |
| OUTPASS=$(cat /dev/urandom |env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 8 |head -n1) | |
| PK12_KEY=mykeystore.pk12 | |
| PEM=server.pem | |
| KEY=server.key | |
| keytool -importkeystore -srckeystore $JKS -destkeystore $PK12_KEY -srcstoretype JKS -deststoretype PKCS12 -srcstorepass $JKS_PASS -deststorepass $OUTPASS -srcalias $JKS_ALIAS -destalias $JKS_ALIAS -srckeypass $JKS_PASS -destkeypass $OUTPASS -noprompt |
This file contains hidden or 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
| from bs4 import BeautifulSoup as bs | |
| import pandas as pd | |
| import numpy as np | |
| import requests | |
| from urllib.parse import quote | |
| """ | |
| 从北京新发地(xinfadi.com.cn) 获取每个类目中有典型代表的商品(SKU)的2018年历史价格,然后验证是否出于上涨趋势 | |
| """ | |
| # 索引与品类的映射关系 |
This file contains hidden or 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 python3 | |
| import time | |
| from uuid import getnode as get_mac | |
| from sqlalchemy import create_engine | |
| import flask | |
| """ | |
| 基于twitter的雪花算法生成不重复,且具有自增的流水号 | |
| 该算法参考 https://github.com/twitter/snowflake | |
| """ |
NewerOlder