- ityouknow / spring-boot-examples : about learning Spring Boot via examples. Spring Boot 教程、技术栈示例代码,快速简单上手教程。
- marcan / takeover.sh : Wipe and reinstall a running Linux system via SSH, without rebooting. You know you want to.
- Microsoft / calculator : Windows Calculator: A simple yet powerful calculator that ships with Windows
- gotify / server : A simple server for sending and receiving messages in real-time per web socket. (Includes a sleek web-ui)
- codercom / code-server : Run VS Code on a remote server.
- hamukazu / lets-get-arrested : This project is intended to protest against the police in Japan
- NationalSecurityAgency / ghidra : Ghidra is a software
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
| /* styletag_3.css by styleurl */ | |
| body { | |
| margin: 10px 0px; | |
| } | |
| #app, div.input-area { | |
| height: 650px; | |
| } |
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 | |
| # ------------------------------------------------------------------------------ | |
| # 您好!本脚本纯shell编写,用于收集系统日志以及相关服务日志等, | |
| # | |
| # 目前兼容TKE的Ubuntu、Centos,脚本开源,您可以直接用vim打开脚本查阅里面的代码。 | |
| # | |
| # 确认脚本无误后,放到容器节点运行。成功后,请把/tmp/tkelog/tkelog.tar.gz打包文件发我们进行问题排查,感谢您的支持! | |
| # ------------------------------------------------------------------------------ | |
| export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin/bash | |
| version='2020.1' |
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
| package main | |
| import ( | |
| "flag" | |
| "path/filepath" | |
| _ "k8s.io/client-go/plugin/pkg/client/auth" | |
| "k8s.io/client-go/kubernetes" | |
| "k8s.io/client-go/rest" |
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
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "path/filepath" | |
| _ "k8s.io/client-go/plugin/pkg/client/auth" | |
| v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| "k8s.io/client-go/informers" | |
| "k8s.io/client-go/kubernetes" |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "path/filepath" | |
| "time" | |
| "k8s.io/klog/v2" | |
| _ "k8s.io/client-go/plugin/pkg/client/auth" |
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 | |
| # check TLS/SSL certificate expiration date | |
| # openssl x509 -text -noout -in inputfile | |
| # https://www.sslshopper.com/certificate-decoder.html | |
| echo -e "\n## SSL Certificates List: \n\n| File Name | Valid From | Valid To | Comment |\n| --- | --- | --- | --- |" >> README.md | |
| for file in $(find .); do | |
| if test -f $file; then | |
| if grep -q "\-BEGIN CERTIFICATE\-" $file; then |
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
| apiVersion: apiextensions.k8s.io/v1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| annotations: | |
| kubectl.kubernetes.io/last-applied-configuration: | | |
| {"apiVersion":"apiextensions.k8s.io/v1","kind":"CustomResourceDefinition","metadata":{"annotations":{},"name":"serviceboards.airwallex.com"},"spec":{"group":"airwallex.com","names":{"kind":"ServiceBoard","plural":"serviceboards","shortNames":["svcb"],"singular":"serviceboard"},"scope":"Namespaced","versions":[{"additionalPrinterColumns":[{"jsonPath":".spec.serviceInfomation.pods.status.ready","name":"Ready","type":"string"},{"jsonPath":".spec.serviceInfomation.pods.imageTags","name":"ImageTags","type":"string"},{"jsonPath":".spec.serviceInfomation.ingress.hosts","name":"IngressHosts","type":"string"},{"jsonPath":".spec.serviceInfomation.updatedAt","name":"UpdatedAt","type":"date"}],"name":"v1alpha1","schema":{"openAPIV3Schema":{"properties":{"spec":{"properties":{"serviceInfomation":{"properties":{"clusterName":{"type":"string"},"ingress":{"properties":{"hos |
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
| // Watch Pod update events | |
| podInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ | |
| UpdateFunc: func(old interface{}, new interface{}) { | |
| oldPod, newPod := old.(*v1.Pod), new.(*v1.Pod) | |
| oldPodRestartCount := getPodRestartCount(oldPod) | |
| newPodRestartCount := getPodRestartCount(newPod) | |
| // Compare the RestartCount | |
| if newPodRestartCount > oldPodRestartCount { | |
| key, err := cache.MetaNamespaceKeyFunc(new) | |
| if err == nil { |
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
| package main | |
| // https://cloud.tencent.com/developer/ask/sof/115441746 | |
| import ( | |
| "bytes" | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" |