Skip to content

Instantly share code, notes, and snippets.

Avatar

Ted Elwartowski xelwarto

View GitHub Profile
@xelwarto
xelwarto / auto-rsync
Created Mar 25, 2017
Automatic rsync script for use in vagrants
View auto-rsync
#!/usr/bin/env bash
SRC=""
DEST=""
TMP_FILE="/tmp/auto_rsync_"
PAUSE="10"
while getopts ":s:d:p:" OPTS; do
case $OPTS in
s)
@xelwarto
xelwarto / gce_rootfs_resize.sh
Last active Sep 15, 2018
Expanding (resize) Centos 7 (or Red Hat EL 7) root partition in Custom Google Compute Image
View gce_rootfs_resize.sh
# Requires cloud-utils-growpart to be installed
# Resize ROOT FS
part=`df --output=source / |grep "/dev/"`
if [ ! -z "$part" ] ; then
len=${#part}
p=`echo $part|cut -c$len`
d=`echo $part|cut -c1-$(($len-1))`
growpart "$d" "$p"
@xelwarto
xelwarto / jenkins_haproxy_config.cfg
Created May 25, 2015
Jenkins CI haproxy configuration example
View jenkins_haproxy_config.cfg
global
chroot /var/lib/haproxy
crt-base /etc/pki/tls/certs
daemon
group haproxy
log 127.0.0.1 local0
maxconn 2000
pidfile /var/run/haproxy.pid
stats socket /var/lib/haproxy/stats
tune.ssl.default-dh-param 2048