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
| # See https://developer.github.com/v3/pulls/#list-pull-requests | |
| $endpoint = "https://api.github.com/repos/[Owner]/[Repo]/pulls?state=[state]" | |
| function Get-BasicAuthCreds { | |
| param([string]$Username,[string]$Password) | |
| $AuthString = "{0}:{1}" -f $Username,$Password | |
| $AuthBytes = [System.Text.Encoding]::Ascii.GetBytes($AuthString) | |
| return [Convert]::ToBase64String($AuthBytes) | |
| } |
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
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace MajorSilence | |
| { | |
| public class SimpleCache | |
| { |
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
| # kubectl get secrets | |
| # kubectl get endpoints | |
| # kubectl config view | |
| export token=$(kubectl describe secret default-token[THE RANDOM CODE] | grep ^token | cut -f7 -d ' ') | |
| curl https://[IP or host name]:6443/apis --header "Authorization: Bearer $token" -k |
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
| export client=$(grep client-cert $HOME/.kube/config | cut -d" " -f 6) | |
| export key=$(grep client-key-data $HOME/.kube/config | cut -d " " -f 6) | |
| export auth=$(grep certificate-authority-data $HOME/.kube/config | cut -d " " -f 6) | |
| cho $client | base64 -d - > ./client.pem | |
| echo $key | base64 -d - > ./client-key.pem |
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
| pipeline { | |
| agent none | |
| environment { | |
| DOTNET_CLI_HOME = "/tmp/DOTNET_CLI_HOME" | |
| } | |
| stages { | |
| stage('build and test') { | |
| agent { | |
| docker { | |
| image 'mcr.microsoft.com/dotnet/sdk:6.0' |
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
| pipeline { | |
| agent none | |
| stages { | |
| stage('build and test') { | |
| agent { | |
| docker { | |
| image 'rust:1.58.1' | |
| } | |
| } | |
| steps { |
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
| pipeline { | |
| agent none | |
| stages { | |
| stage('build and test') { | |
| agent { | |
| docker { | |
| image 'golang:1.16' | |
| } | |
| } | |
| steps { |
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
| pipeline { | |
| agent none | |
| stages { | |
| stage('build and test') { | |
| agent { | |
| docker { | |
| image 'python:3.9.10' | |
| } | |
| } | |
| steps { |
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
| pipeline { | |
| agent none | |
| stages { | |
| stage('build and test') { | |
| agent { | |
| docker { | |
| image 'ruby:3.1.0' | |
| } | |
| } | |
| steps { |
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
| pipeline { | |
| agent none | |
| stages { | |
| stage('build and test') { | |
| agent { | |
| docker { | |
| image 'openjdk:19-jdk-buster' | |
| } | |
| } | |
| steps { |
OlderNewer