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 port -v install dnsmasq | |
sudo port -v load dnsmasq | |
sudo mkdir /etc/resolver | |
echo -n "nameserver 127.0.0.1" | sudo tee /etc/resolver/dev | |
echo "address=/dev/127.0.0.1" | sudo tee -a /opt/local/etc/dnsmasq.conf | |
echo "address=/test/127.0.0.1" | sudo tee -a /opt/local/etc/dnsmasq.conf | |
sudo kill -9 $(pgrep dnsmasq) | |
sleep 1 |
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 | |
# Install libbind and bind9 ports | |
# - bind9 is installed disabled by default | |
sudo port -v install libbind bind9 | |
curl -Lsso /tmp/dnsperf.tar.gz ftp://ftp.nominum.com/pub/nominum/dnsperf/2.0.0.0/dnsperf-src-2.0.0.0-1.tar.gz | |
cd /tmp | |
tar xzvf dnsperf.tar.gz | |
cd /tmp/dnsperf-src-2.0.0.0-1 |
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
Science Traveller International 1X/1.0 | |
Mozilla/3.0 (compatible) | |
amaya/9.52 libwww/5.4.0 | |
amaya/9.51 libwww/5.4.0 | |
amaya/9.1 libwww/5.4.0 | |
amaya/6.2 libwww/5.3.1 | |
AmigaVoyager/3.4.4 (MorphOS/PPC native) | |
Debian APT-HTTP/1.3 (0.9.7.5ubuntu5.1) | |
Ubuntu APT-HTTP/1.3 (0.7.23.1ubuntu2) | |
Ubuntu APT-HTTP/1.3 |
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 | |
dnf -y install docker | |
groupadd -r docker | |
usermod -a -G docker $(id -un) | |
systemctl enable docker | |
systemctl start docker | |
echo "Please log off and log back in again to apply group changes..." | |
exit 0 |
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 | |
THINPOOL=$1 | |
yum -y install docker-engine | |
if [ ! -L $THINPOOL ]; then | |
echo "Pool $THINPOOL" does not appear to exist | |
exit 1 | |
fi | |
mkdir -p /etc/systemd/system/docker.service.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
86c86 | |
< ; This is php.ini-development INI file. | |
--- | |
> ; This is php.ini-production INI file. | |
452c452 | |
< error_reporting = E_ALL | |
--- | |
> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT | |
469c469 | |
< display_errors = On |
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
<Files webservices.wsgi> | |
# pass everything that isn't a Basic auth request through to Pulp | |
SetEnvIfNoCase ^Authorization$ "Basic.*" USE_APACHE_AUTH=1 | |
Order allow,deny | |
Allow from env=!USE_APACHE_AUTH | |
Satisfy Any | |
AuthType Basic | |
AuthBasicProvider ldap | |
AuthName "Pulp Login" |
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
grep '^menuentry' /boot/grub2/grub.cfg | |
vi /etc/default/grub | |
# update GRUB_DEFAULT=<zero-indexed-menu-entry-from-grep> | |
grub2-mkconfig -o /boot/grub2/grub.cfg |
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 | |
set -eu | |
if [[ ! -z "${DEBUG:-""}" ]]; then set -x; fi | |
ZONE="$1" | |
NEW="$2" | |
DIG="dig +short $ZONE" | |
DIGN="$DIG $NEW" | |
check_rrtype() { |
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
Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" | % { Get-ItemProperty $_.PSPath -Name DisplayName | Select -Property DisplayName } | Sort-Object -Property DisplayName | ConvertTo-Json |