Skip to content

Instantly share code, notes, and snippets.

View SimonHoenscheid's full-sized avatar
🏠
Working from home

Simon Hönscheid SimonHoenscheid

🏠
Working from home
View GitHub Profile

Puppet with Jenkins

Setup Jenkins

With Puppet:

puppet module install rtyler-jenkins

puppet apply -v -e "include jenkins"

@SimonHoenscheid
SimonHoenscheid / .vimrc
Created September 3, 2013 16:44
.vimrc
syn on
set ts=2
set et
set shiftwidth=2
set list lcs=tab:\|\
call pathogen#infect()
filetype plugin indent on
@SimonHoenscheid
SimonHoenscheid / tools
Created September 29, 2013 21:28
Usefull Admin Tools
swaks - SMTP telnet made easy
httpie - http header testing
EDITOR=vim
if [ -d /opt/puppetlabs/bin ]; then
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/puppetlabs/bin
fi
alias ll='ls -lah --color=auto'
alias grep='grep --color=auto'
alias rm='rm -r'
if [ -d /etc/bash_completion ]; then
. /etc/bash_completion
fi
nginx::vhost::vhosts:
'foo.example.com':
ensure: 'present'
'example.net':
ensure: 'present'
$vhosts = hiera('nginx::vhost::vhosts')
$vhosts_list = keys($vhosts)
# hiera
uptream:
'abc_core':
'ips':
- '1.2.3.4'
- '1.2.3.5'
'port': 8080
'abc_cp_core':
'ips':
- '1.2.3.4'
@SimonHoenscheid
SimonHoenscheid / hiera.yaml
Created August 1, 2016 13:44 — forked from lazyfrosch/hiera.yaml
Docker via Puppet
---
docker::run_instance::instance:
gitlab-redis:
image: redis
volumes:
- '/data/services/gitlab/redis/data:/data'
gitlab:
image: sameersbn/gitlab:8.10.1
volumes:
- '/data/services/gitlab/data:/home/git/data'
#!/bin/bash
PEM_FILE=$1
PASSWORD=$2
KEYSTORE=$3
# number of certs in the PEM file
CERTS=$(grep 'END CERTIFICATE' $PEM_FILE| wc -l)
# For every cert in the PEM file, extract it and import into the JKS keystore
# awk command: step 1, if line is in the desired cert, print the line
# step 2, increment counter when last line of cert is found
#!/usr/bin/perl
#===============================================================================
#
# FILE: checklogin.pl
#
# USAGE:
#
# DESCRIPTION:
#
https://twin.github.io/httprb-is-great/