Skip to content

Instantly share code, notes, and snippets.

View batmat's full-sized avatar
😞
I may be very very slow to respond.

Baptiste Mathus batmat

😞
I may be very very slow to respond.
View GitHub Profile
@alecharp
alecharp / keep-jenkins-plugins-uptodate.groovy
Last active December 22, 2022 06:01
Simple groovy script to upgrade active plugins when new versions are available
jenkins.model.Jenkins.getInstance().getUpdateCenter().getSites().each { site ->
site.updateDirectlyNow(hudson.model.DownloadService.signatureCheck)
}
hudson.model.DownloadService.Downloadable.all().each { downloadable ->
downloadable.updateNow();
}
def plugins = jenkins.model.Jenkins.instance.pluginManager.activePlugins.findAll {
it -> it.hasUpdate()
@mike-neck
mike-neck / AutoClosableExpression.java
Created June 30, 2013 04:37
AutoCloseableで遊んでた
public class AutoClosableExpression {
public static void main(String... args) {
try (LambdaClosable closable = () -> {
System.out.println("\(^o^)/オワタ");
}) {
closable.doSomething("(´・ω・`)");
} catch (Exception e) {
e.printStackTrace();
}
#!/bin/sh
#
# An example hook script that is called after a successful
# commit is made.
#
# To enable this hook, rename this file to "post-commit".
git bundle create ~/Dropbox/patches/last5Days --since=5.days master
[INFO] Scanning for projects...
[INFO] __ __
[INFO] | \/ |__ _Apache__ ___
[INFO] | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
[INFO] |_| |_\__,_|\_/\___|_||_| v. 3.0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] retro-example
@tdd
tdd / config-bash-pour-un-prompt-git-de-tueur.bash
Last active April 17, 2024 10:04
Config Bash pour un prompt Git de tueur
# STEP 1: ENSURE COMPLETION AND PROMPT FUNCTION ARE LOADED
# ========================================================
# OPTION 1: If on OSX using Homebrew:
#
# source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh
# source $(brew --prefix)/etc/bash_completion.d/git-completion.bash
# OPTION 2: If on OSX using built-in Git (also works on ZSH):
#