Skip to content

Instantly share code, notes, and snippets.

Avatar

Krzysztof Bąk bhaku

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am bhaku on github.
  • I am kbak (https://keybase.io/kbak) on keybase.
  • I have a public key ASAVE9QEoPtPHysp1ReMIF9_a0fUS3MiiiK7DsE_aGYsZgo

To claim this, I am signing this object:

View monzo-alertmanager-config.yaml
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##
@bhaku
bhaku / iterm2-solarized.md
Created Dec 18, 2017 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@bhaku
bhaku / deleteJenkinsJobs.groovy
Created Dec 29, 2016 — forked from nextrevision/deleteJenkinsJobs.groovy
Groovy script to delete all jenkins jobs that match a regex pattern
View deleteJenkinsJobs.groovy
import jenkins.model.*
def matchedJobs = Jenkins.instance.items.findAll { job ->
job.name =~ /my_regex_here/
}
matchedJobs.each { job ->
println job.name
//job.delete()
}
@bhaku
bhaku / gitlab-list.groovy
Created Jun 22, 2015
Jenkins groovy script to get a list of latest git branches (with release/ prefix) and latest tags for a GitLab managed repository, usable with Jenkins Extensible Choice plugin and gitflow.
View gitlab-list.groovy
#!/usr/bin/env groovy
/**
* CONFIGURATION
*/
def private_token = "secret_token_from_gitlab"
def repository = "group/repository-name"
/* CONFIGURATION END */
def repository_name = repository.replace("/", "%2F");