-
确保helm已经安装到集群
helm init --upgrade --force-upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.12.2
-
clone helm-charts
git clone --depth=1 https://github.com/helm/charts.git
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
# container-postgres.service | |
# autogenerated by Podman 3.4.2 | |
# Tue Feb 1 20:19:43 UTC 2022 | |
[Unit] | |
Description=Podman container-postgres.service | |
Documentation=man:podman-generate-systemd(1) | |
Wants=network-online.target | |
After=network-online.target | |
RequiresMountsFor=%t/containers |
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
#!/bin/bash | |
exec /usr/local/bin/lima 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
有N对匹配的螺母(nut)和螺栓(bolt),被拆分开后被分成了螺母和螺栓各一堆,并且打乱。并且有如下的假设个规则: | |
每对螺母和螺栓的尺寸都不一样,并且不能直接量尺寸 | |
螺母和螺母之间不能比大小 | |
螺栓和螺栓之间不能比大小 | |
螺母和螺栓可以做比较并且得出:匹配,螺母太小,螺母太大三种结果 | |
设计一个算法最快时间匹配螺母和螺栓。 | |
提供的class |
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
# 模糊抓取订阅链接 | |
- type: webfuzzsub | |
options: | |
url: https://raw.githubusercontent.com/du5/free/master/sub.list | |
# 订阅链接 | |
- type: subscribe | |
options: | |
url: https://raw.githubusercontent.com/ssrsub/ssr/master/v2ray |
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
import socket | |
from urllib.parse import urlparse | |
# make sure PySocks(https://github.com/Anorov/PySocks) is installed, commit version >= 1f56ca | |
import socks | |
import ssl | |
# make sure ws4py is installed, version >= 0.4.2 | |
from ws4py.exc import HandshakeError | |
from ws4py.client import WebSocketBaseClient |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "No description", | |
"version": "0.1.0", | |
"title": "rewhiz", | |
"contact": {}, | |
"license": { | |
"name": "Private" | |
} |
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 codenvy/alpine_jdk8 | |
USER root | |
# do all in one step | |
RUN apk upgrade --update && apk add --update iptables && \ | |
rm -rf /tmp/* /var/cache/apk/* | |
ENV DOCKER_HOST=unix:///var/run/docker.sock |
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
Process: PureVPN [5839] | |
Path: /Applications/PureVPN.app/Contents/MacOS/PureVPN | |
Identifier: com.purevpn.macapp.App | |
Version: 5.2.0 (1) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: PureVPN [5839] | |
User ID: 501 | |
Date/Time: 2016-09-21 17:50:36.573 +0800 |
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
Sep 21 17:33:47 me-rmbp PureVPN[5319]: - - - - - - - - - - - - - - - - - - - - - - -[GTSimpleListViewController tableViewSelectionDidChange:] [[[NSUserDefaults standardUserDefaults] objectForKey:kVPNIksActivated] boolValue] | |
Sep 21 17:33:51 me-rmbp PureVPN[5319]: -[AppDelegate connectVPN_Cliced] Appdelegate | |
Sep 21 17:33:51 me-rmbp PureVPN[5319]: helperToolInstalled Success | |
Sep 21 17:33:51 me-rmbp PureVPN[5319]: vpnConfigaration - - - - - > -[HelperCommunicator vpnConfigaration:] | |
Sep 21 17:33:51 me-rmbp PureVPN[5319]: connectAndExecuteCommandBlock | |
Sep 21 17:33:51 me-rmbp PureVPN[5319]: Connecting to Helper Tool... | |
Sep 21 17:33:51 me-rmbp PureVPN[5319]: running command... | |
Sep 21 17:33:51 me-rmbp com.purevpn.macapp.HelperTool[5321]: Gained superhuman rights. | |
Sep 21 17:33:51 me-rmbp com.purevpn.macapp.HelperTool[5321]: Delete Service A65FF52A-FAB9-461D-92C8-81F3010A28AE | |
Sep 21 17:33:51 me-rmbp com.purevpn.macapp.HelperTool[5321]: iPhone |
NewerOlder