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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# You need to install python-bm-client or netbluemind using pip to run this script | |
import requests | |
import sys | |
import time | |
import datetime | |
try: | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) |
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 | |
write_log() { | |
echo "${1}" | |
logger -t atom-update "${1}" | |
} | |
progressfilt () | |
{ | |
local flag=false c count cr=$'\r' nl=$'\n' |
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 | |
write_log() { | |
echo "${1}" | |
logger -t rambox-update "${1}" | |
} | |
progressfilt () | |
{ | |
local flag=false c count cr=$'\r' nl=$'\n' |
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
//First create the httpClient in Dropwizard's run method as documented | |
final HttpClient httpClient = new HttpClientBuilder().using(configuration.getHttpClient()).build(); | |
try { | |
//Create KeyStore obejcts for both the keystore and truststore | |
KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType()); | |
KeyStore truststore = KeyStore.getInstance(KeyStore.getDefaultType()); | |
//Then load the actual keystore/truststore file(s), they are the same file in my case | |
keystore.load(new FileInputStream(configuration.getKeyStore()), configuration.getKeyStorePassword().toCharArray()); |
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
dhcp-match=set:ipxe,175 | |
dhcp-match=set:x86,option:client-arch,0 | |
dhcp-match=set:efi,option:client-arch,7 | |
dhcp-boot=tag:efi,tag:!ipxe,ipxe.efi | |
dhcp-boot=tag:x86,tag:!ipxe,undionly.kpxe | |
dhcp-boot=http://10.5.4.2/ipxe/bootstrap.ipxe |