Skip to content

Instantly share code, notes, and snippets.

View jrha's full-sized avatar

James Adams jrha

  • Rutherford Appleton Laboratory, Harwell, UK
View GitHub Profile
@cernceph
cernceph / gist:4a03316a31ce7abe49167c392fc827da
Created June 10, 2016 11:43
haproxy multi backend radosgw config
frontend cs3.cern.ch-frontend-ssl
bind ipv4@:443,ipv6@:443 ssl no-sslv3 crt /etc/haproxy/cert.pem verify none
acl ha_stats url_beg /stats
acl pathstyle_buckets hdr(host) -i cs3.cern.ch
capture request header User-Agent len 256
capture request header Host len 128
http-request set-var(req.bucketname) path,word(1,/) if pathstyle_buckets
http-request set-var(req.bucketname) hdr(host),regsub(.cs3.cern.ch,) if ! pathstyle_buckets
http-request set-header X-Debug-Bucket %[var(req.bucketname)]
timeout http-request 5m
@kvaps
kvaps / grub.cfg
Created January 18, 2018 15:38
Grub config for EFI and PXE boot
set timeout=3
menuentry 'Linux diskless' --class os {
insmod efi_gop
insmod efi_uga
# set server from option 66 (tftp-server-name) if not exist, use next_server
if ! net_get_dhcp_option net_default_server ${net_default_interface} 66 string; then
echo ' using next_server option instead.'
@andrewwippler
andrewwippler / centos_kickstart
Created April 2, 2018 15:14
Kickstart file for installing centos 7 on nve ssd and uefi
# Install OS instead of upgrade
install
# Keyboard layouts
keyboard 'us'
# Root password
rootpw --iscrypted $1$UzchDaR4$XXXXXXXXXX.XXXXXXX/
# System language