With Puppet:
puppet module install rtyler-jenkins
puppet apply -v -e "include jenkins"
syn on | |
set ts=2 | |
set et | |
set shiftwidth=2 | |
set list lcs=tab:\|\ | |
call pathogen#infect() | |
filetype plugin indent on |
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' |
--- | |
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/ |