Skip to content

Instantly share code, notes, and snippets.

View marclambrichs's full-sized avatar
🏛️
Working from home

Marc Lambrichs marclambrichs

🏛️
Working from home
  • Mélange IT
  • Amsterdam, Netherlands
  • 03:15 (UTC +02:00)
View GitHub Profile
@marclambrichs
marclambrichs / plugin_versions.sh
Created August 28, 2019 15:00
Create list of jenkins plugins and versions
find . -maxdepth 1 -name "*.[hj]pi" |\
awk '{s=gensub(/\.\/([^.]+)\.[hj]pi/, "\\1", "g"); print s}' |\
xargs -I @ awk -v p=@ '/Plugin-Version/{s=gensub(/Plugin-Version: (.*)/, "\\1", "g");printf "%s: %s\n",p,s}' "@/META-INF/MANIFEST.MF" |\
sort
// -*- mode:go;mode:go-playground -*-
// snippet of code @ 2018-05-07 14:35:38
// === Go Playground ===
// Execute the snippet with Ctl-Return
// Remove the snippet completely with its dir and all files M-x `go-playground-rm`
package main
import (

Keybase proof

I hereby claim:

  • I am mlambrichs on github.
  • I am mlambrichs (https://keybase.io/mlambrichs) on keybase.
  • I have a public key ASCTXeLH0xUQGkXblffPgnTkd3vM6G0I4DOpL7FIkYH_wAo

To claim this, I am signing this object:

package main
import (
"log"
"net/smtp"
)
func main() {
hostname := "smtp.gmail.com"
from := "me@gmail.com"
@marclambrichs
marclambrichs / Vagrantfile
Created December 5, 2015 07:41
install plugins
################################################################################
# check plugins
################################################################################
required_plugins = %w(vagrant-hostmanager vagrant-hosts vagrant-vbguest)
plugins_to_install = required_plugins.select { |plugin| not Vagrant.has_plugin? plugin }
if not plugins_to_install.empty?
puts "Installing plugins: #{plugins_to_install.join(' ')}"
if system "vagrant plugin install #{plugins_to_install.join(' ')}"
exec "vagrant #{ARGV.join(' ')}"