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 / ixgbe_debian.md
Last active March 18, 2021 21:35 — forked from sling00/ixgbe_debian.md
Debian ixgbe module compilation

Debian ixgbe module compilation

Some OVH dedicated server does not supports installing Debian original kernel due to hardware support issue. Also new Supermicro Atom 3000 SOC based products need an updated driver on ubuntu 14.04/16.04/17.04 to recognize the network adapter.

Most common issue is the network adapter card.

Resources

@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