Skip to content

Instantly share code, notes, and snippets.

Adrien Lecharpentier alecharp

Block or report user

Report or block alecharp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-compose.yml
version: "3.6"
services:
traefik:
image: traefik:1.7.7-alpine
command: --api --docker
ports:
- "80:80"
- "8080:8080"
volumes:
View docker-compose.yml
version: "3.4"
services:
traefik:
image: traefik:1.7-alpine
labels:
- "traefik.docker.network='jimmy-net'"
- 'traefik.docker.port=80'
command: --api --docker
ports:
View start-jenkins.sh
#!/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 Jun 8, 2019
Simple groovy script to upgrade active plugins when new versions are available
View keep-jenkins-plugins-uptodate.groovy
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()
View keybase.md

Keybase proof

I hereby claim:

  • I am alecharp on github.
  • I am alecharp (https://keybase.io/alecharp) on keybase.
  • I have a public key ASDCy4rw-3pO55NDphDXl10W01mafkR52jIdXukAW-rj0Ao

To claim this, I am signing this object:

View gist:4d52d7e9b0cea70c68cc
### Keybase proof
I hereby claim:
* I am alecharp on github.
* I am alecharp (https://keybase.io/alecharp) on keybase.
* I have a public key whose fingerprint is 765C 58C3 CB25 9488 16A5 6376 A53C 7FA4 FF4D 12A1
To claim this, I am signing this object:
@alecharp
alecharp / get-videos.sh
Created Feb 18, 2015
Getting videos using alecharp/get-videos docker container
View get-videos.sh
#!/bin/sh
## author: Adrien Lecharpentier <adrien.lecharpentier@gmail.com>
status=$(boot2docker status)
if [ "${status}" != "running" ]; then
boot2docker start
fi
docker run -ti -v "$(pwd)":/downloads alecharp/get-videos:latest $@
You can’t perform that action at this time.