Skip to content

Instantly share code, notes, and snippets.

@DisasteR
DisasteR / bm-runbackup.py
Created April 7, 2018 17:12
Bluemind Run Backup Script for backuppc DumpPreUserCmd
#!/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)
@DisasteR
DisasteR / atom-update.sh
Last active April 15, 2021 11:35
Atom Debian amd64 auto upgrade script
#!/bin/bash
write_log() {
echo "${1}"
logger -t atom-update "${1}"
}
progressfilt ()
{
local flag=false c count cr=$'\r' nl=$'\n'
@DisasteR
DisasteR / rambox-update.sh
Last active April 15, 2021 11:34
Rambox Debian x64 auto upgrade script
#!/bin/bash
write_log() {
echo "${1}"
logger -t rambox-update "${1}"
}
progressfilt ()
{
local flag=false c count cr=$'\r' nl=$'\n'
//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());
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