Skip to content

Instantly share code, notes, and snippets.

View xelwarto's full-sized avatar

Ted Elwartowski xelwarto

View GitHub Profile
@xelwarto
xelwarto / auto-rsync
Created March 25, 2017 02:31
Automatic rsync script for use in vagrants
#!/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 February 1, 2021 08:24
Expanding (resize) Centos 7 (or Red Hat EL 7) root partition in Custom Google Compute Image
# 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 11:49
Jenkins CI haproxy configuration example
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