Skip to content

Instantly share code, notes, and snippets.

⚽️

Ted Elwartowski xelwarto

⚽️
Block or report user

Report or block xelwarto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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
You can’t perform that action at this time.