Skip to content

Instantly share code, notes, and snippets.

View alecharp's full-sized avatar

Adrien Lecharpentier alecharp

View GitHub Profile
version: "3.6"
services:
traefik:
image: traefik:1.7.7-alpine
command: --api --docker
ports:
- "80:80"
- "8080:8080"
volumes:
version: "3.4"
services:
traefik:
image: traefik:1.7-alpine
labels:
- "traefik.docker.network='jimmy-net'"
- 'traefik.docker.port=80'
command: --api --docker
ports:
#!/bin/shell
set -euo pipefail
HERE="$(pwd)"
RELEASE=${1:-"lts"}
usage() {
cat <<EOF
Usage: $1 [lts | weekly]
EOF
@alecharp
alecharp / keep-jenkins-plugins-uptodate.groovy
Last active October 11, 2024 13:24
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()
@alecharp
alecharp / get-videos.sh
Created February 18, 2015 11:44
Getting videos using alecharp/get-videos docker container
#!/bin/sh
## author: Adrien Lecharpentier <[email protected]>
status=$(boot2docker status)
if [ "${status}" != "running" ]; then
boot2docker start
fi
docker run -ti -v "$(pwd)":/downloads alecharp/get-videos:latest $@