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
exit #Not that kind of script, these sections should be run manually | |
# First get lxd working | |
# Install lxc/lxd. On ubuntu 18.04 I'm using snap to install lxd https://docs.snapcraft.io/installing-snapd/6735 | |
sudo apt install snapd | |
sudo snap install lxd # https://mangolassi.it/topic/18073/installing-lxd-on-ubuntu-18-04-the-right-way | |
# Using ZFS for container storage makes it easy to move things around | |
sudo apt-get install zfsutils-linux |
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
cd /data/Backups/gbmint02/ | |
sudo tar -zcvf "etc_$(date +"%F").tar.gz" /etc | |
sudo tar -zcvf "run_$(date +"%F").tar.gz" /run | |
sudo tar -zcvf "root_$(date +"%F").tar.gz" /root | |
sudo tar -zcvf "var_$(date +"%F").tar.gz" /var | |
sudo tar --exclude="$HOME/.cache" --exclude="$HOME/.config.old" --exclude="$HOME/Dropbox" --exclude="$HOME/code/go/pkg" -zcvf "${SUDO_USER}_$(date +"%F").tar.gz" $HOME | |
$ snap list |
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
home.arpa { | |
file config/home.arpa | |
prometheus # enable metrics | |
errors # show errors | |
log # enable query logs | |
} |
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
#Test all A entries for a DNS record to see if you can connect to port 443: | |
dig +short microsoft.com. | xargs -I {} nc -v -w2 {} 443 | |
#Example of output | |
Connection to 191.239.213.197 443 port [tcp/https] succeeded! | |
Connection to 104.43.195.251 443 port [tcp/https] succeeded! | |
Connection to 104.40.211.35 443 port [tcp/https] succeeded! | |
Connection to 23.100.122.175 port 443 (tcp) timed out: Operation now in progress | |
Connection to 23.96.52.53 443 port [tcp/https] succeeded! |
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
#pip install comtypes wmi | |
import sys, os, traceback | |
sys.coinit_flags = 0 # sets pythoncom.COINIT_MULTITHREADED = 0 | |
import comtypes.client # http://starship.python.net/crew/theller/comtypes/ | |
from comtypes.automation import IDispatch, IEnumVARIANT | |
import wmi | |
#Use help(...) and dir(...) on any object/class to see more details | |
#These are already set on the main thread by sys package, but need to call if we use other threads |
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
{ | |
"scollector::collector_tags": [ | |
"named", | |
"mysql" | |
] | |
} |
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
2016/01/12 16:12:26 fatal: main.go:266: Type mismatch for 'conf.Conf.Tags': Expected map but found '[]map[string]interface {}'. |
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
#Bosun unit file at /etc/systemd/system/bosun.service | |
[Unit] | |
Description=Bosun Service | |
After=network.target | |
After=docker.service | |
After=rsyslog.service | |
[Service] | |
Type=simple | |
User=root |
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
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<configuration> | |
<property> | |
<name>hbase.cluster.distributed</name> | |
<value>true</value> | |
</property> | |
<property> | |
<name>hbase.rootdir</name> | |
<value>hdfs://localhost/hbase</value> |
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
#Status after configuring LCM and running Update-DscConfiguration | |
PS C:\windows\system32\Configuration> Get-DscConfigurationStatus | |
Status StartDate Type Mode RebootRequested NumberOfResources | |
------ --------- ---- ---- --------------- ----------------- | |
Success 2015/04/17 19:40:47 Initial Pull False 19 | |
#Status after restarting the server | |
PS C:\windows\system32> Get-DscConfigurationStatus |