This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Name: centos-8-chronyd-nts.sh | |
# Author: Ladar Levison | |
# Gist: https://gist.github.com/ladar/52e2deb0a46272ca0383839f2ec0a618 | |
# Description: A simple script to compile chronyd 4.0 for RHEL, CentOS, or | |
# Oracle Linux version 8 using a disposable Vagrant box. Then install the | |
# the resulting RPM file, while configuring chronyd to use NTP servers with | |
# NTS support. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eux | |
if [ -z $DOMAIN ]; then | |
tput setaf 1; printf "\n\nDOMAIN parameter needed by the apache-virthost module.\n\n"; tput sgr0 | |
exit 1 | |
fi | |
# Install git. | |
yum --quiet --assumeyes install wget git rsync perl-Git perl-Error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Name: router-graph-setup.sh | |
# Author: Ladar Levison | |
# Gist: https://gist.github.com/ladar/66d7657e9b88afc00d7f17c06f62bdbb | |
# Description: A simple script to setup the pieces need to poll a router | |
# status page, and record the bandwidth/packet statistics. Then generate | |
# graphs for those values. In other words, this will allow you to generate | |
# usage graphs for your AT&T internet connection by polling the router. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE: generic-alpine35-hyperv-1.9.4.box | |
CODE: 200 | |
IP: 52.72.245.79 | |
BYTES: 305311422 | |
RATE: 24994795.000 | |
TOTAL TIME: 12.215003 | |
FILE: generic-alpine35-libvirt-1.9.4.box | |
CODE: 200 | |
IP: 52.72.245.79 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ladar@host vagrant]$ ./simple.sh generic fedora28 vmware | |
++ dirname ./simple.sh | |
+ pushd . | |
++ pwd -P | |
+ BASE=/home/ladar/Data/vagrant | |
+ popd | |
+ cd /home/ladar/Data/vagrant | |
+ export VAGRANT_HOME=/home/ladar/Data/vagrant/vagrant.d/ | |
+ VAGRANT_HOME=/home/ladar/Data/vagrant/vagrant.d/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ladar@host vagrant]$ ./simple.sh generic arch vmware | |
++ dirname ./simple.sh | |
+ pushd . | |
++ pwd -P | |
+ BASE=/home/ladar/Data/vagrant | |
+ popd | |
+ cd /home/ladar/Data/vagrant | |
+ export VAGRANT_HOME=/home/ladar/Data/vagrant/vagrant.d/ | |
+ VAGRANT_HOME=/home/ladar/Data/vagrant/vagrant.d/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sudo is needed to find the vmware-vmx ports. | |
PORT=`sudo netstat -pnl 2>&1 | grep tcp | grep -E "vmware-vmx|qemu|qemu-kvm" | awk -F':' '{print $2}' | awk -F' ' '{print $1}' | grep -E "^59"` | |
for p in $PORT; do | |
#rpm -q virt-viewer &> /dev/null || (printf "\n\nA VNC port was detected, but the Virt Viewer doesn't appear to be available.\n\n" && exit 1) | |
#remote-viewer vnc://127.0.0.1:$p &> /dev/null & | |
rpm -q vinagre &> /dev/null || (printf "\n\nA VNC port was detected, but Vinagre doesn't appear to be available.\n\n" && exit 1) | |
vinagre --vnc-scale vnc://127.0.0.1:$p &> /dev/null & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Name: links.sh | |
# Author: Ladar Levison | |
# | |
# Description: Used to verify packer configurations, and validate URLs before kicking off a build. | |
# The list of packer config files. | |
FILES="packer-docker.json packer-libvirt.json packer-vmware.json packer-virtualbox.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
confirm_reboot() { | |
read -s -p "Should we reboot and see if the configuration changes worked? [y|N] " -n 1 ANSWER | |
if [[ $ANSWER =~ [YyNn]$ ]]; then echo $ANSWER; | |
else echo; fi | |
} | |
while true; do | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 5504a985a4e0 -r f59397568d2b Makefile | |
--- a/Makefile Sat Nov 26 00:47:32 2016 -0600 | |
+++ b/Makefile Sat Nov 26 01:03:59 2016 -0600 | |
@@ -11,11 +11,11 @@ | |
SHLIB_VERSION_HISTORY= | |
SHLIB_MAJOR=1 | |
SHLIB_MINOR=0.0 | |
-SHLIB_EXT= | |
-PLATFORM=dist | |
-OPTIONS= no-ec_nistp_64_gcc_128 no-gmp no-jpake no-krb5 no-libunbound no-md2 no-rc5 no-rfc3779 no-sctp no-shared no-ssl-trace no-ssl2 no-store no-unit-test no-weak-ssl-ciphers no-zlib no-zlib-dynamic static-engine |
NewerOlder