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
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" | |
) |
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
// Provides the interface for plugging in a new external email provider. | |
export class ExternalEmailProvider { | |
public: | |
// Provides the contract for sending an email through the external email | |
// provider. | |
virtual auto sendEmail(Email&& email) -> async::NoneAsync = 0; | |
// Provides the contract for diagnosing the external email provider. | |
virtual auto diagnose( | |
proto::EmailProviderDiagnosisActionType_Enum action, |
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
package main | |
import "fmt" | |
type Versionable interface { | |
Version() string | |
} | |
type Neg10_0_1 struct { | |
Attr10_1_0 string |
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
#!/usr/bin/env bash | |
# # this gist is extracted from another gist on internet which I don't remember right now. | |
# kubectl-delete_all is a utility to delete all objects in the namespace. | |
[[ -n "$DEBUG" ]] && set -x | |
set -eou pipefail | |
exec kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all "$@" |
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
--- | |
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: jenkins.jenkins.io | |
spec: | |
group: jenkins.io | |
names: | |
kind: Jenkins | |
listKind: JenkinsList |