Skip to content

Instantly share code, notes, and snippets.

View tshafeev's full-sized avatar
🚀
🚀🚀🚀

Timur Shafeev tshafeev

🚀
🚀🚀🚀
View GitHub Profile
#from https://honnamkuan.medium.com/show-all-credential-values-in-jenkins-86ecb19609d5
def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(
com.cloudbees.plugins.credentials.common.StandardCredentials.class,
Jenkins.instance,
null,
null
);
for (int i; i < creds.size(); i++) {
println "\n========== Credential ${i+1} Start =========="
@tshafeev
tshafeev / prometheus.yml
Created April 11, 2019 13:27 — forked from sacreman/prometheus.yml
Prometheus configuration to scrape Kubernetes outside the cluster
# Prometheus configuration to scrape Kubernetes outside the cluster
# Change master_ip and api_password to match your master server address and admin password
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
# metrics for the prometheus server
- job_name: 'prometheus'
@tshafeev
tshafeev / gist:b49b722f52a0c4ff3c4fa02608f2fc85
Created February 16, 2018 16:01 — forked from dzimchuk/gist:1e45174d3a63705b9171
PowerShell script to copy Azure Table from one account to another
param (
[string]
$sourceConnectionString = $(throw "-sourceConnectionString is required."),
[string]
$sourceTableName = $(throw "-sourceConnectionString is required."),
[string]
$targetConnectionString = $(throw "-targetConnectionString is required."),
[string]
$targetTableName = $(throw "-targetTableName is required.")
)
### Keybase proof
I hereby claim:
* I am anvarich on github.
* I am shafeev (https://keybase.io/shafeev) on keybase.
* I have a public key ASALmFn-8fpdL21pR9OYPNbmym0R1HIasEtgz_SXqrBmkAo
To claim this, I am signing this object: