Skip to content

Instantly share code, notes, and snippets.

View francoisledroff's full-sized avatar

Francois francoisledroff

View GitHub Profile

Flowchart

graph LR

A(Start)
A --> B[Look for an item]
B --> C{Did you find it?}
C -->|Yes| D(Stop looking)
C -->|No| E{Do you need it?}
#!/bin/bash
# Licence: GPLv3, MIT, BSD, Apache or whatever you prefer; FREE to use, modify, copy, no obligations
# Description: Bash Script to Start the process with NOHUP and & - in background, pretend to be a Daemon
# Author: Andrew Bikadorov
# Script v1.5
# For debugging purposes uncomment next line
#set -x

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@francoisledroff
francoisledroff / francois.email.groovy.template
Created April 29, 2013 16:03
A groovy template to send fancy html formatted emails through the jenkins email extension plugins. the associated email extension plugin is https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin One way to debug it is to use a groovy script through the jenkins script menu (http://localhost:8080/jenkins/script) cf. https://gist.github.com/f…
<!DOCTYPE html>
<head>
<title>Build report</title>
<style type="text/css">
body
{
margin: 0px;
padding: 15px;
}
@francoisledroff
francoisledroff / debug-jenkins-email-ext-plugins.groovy
Created April 29, 2013 15:57
a groovy script to test your email extension templates cf. https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin to do that just * replace the projectName and p.recipientList values in the script below * run this script through http://localhost:8080/jenkins/script ** copy and paste it ** click "run"
import hudson.model.StreamBuildListener
import hudson.plugins.emailext.ExtendedEmailPublisher
import java.io.ByteArrayOutputStream
def projectName = "your-project-name-here"
Jenkins.instance.copy(Jenkins.instance.getItem(projectName), "$projectName-Testing");
def project = Jenkins.instance.getItem(projectName)
try {
def testing = Jenkins.instance.getItem("$projectName-Testing")