Skip to content

Instantly share code, notes, and snippets.

View bhaku's full-sized avatar

Krzysztof Bąk bhaku

View GitHub Profile
@bhaku
bhaku / gitlab-list.groovy
Created June 22, 2015 18:17
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.
#!/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");
@bhaku
bhaku / deleteJenkinsJobs.groovy
Created December 29, 2016 10:16 — forked from nextrevision/deleteJenkinsJobs.groovy
Groovy script to delete all jenkins jobs that match a regex pattern
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 / iterm2-solarized.md
Created December 18, 2017 15:33 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@bhaku
bhaku / monzo-alertmanager-config.yaml
Created April 8, 2021 11:16 — forked from milesbxf/monzo-alertmanager-config.yaml
Monzo's Alertmanager Slack templates
###################################################
##
## 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)
##

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: