Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
robinsmidsrod / _INSTALL.md
Last active March 21, 2024 23:00
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

@jpawlowski
jpawlowski / msys_hetzner-etc_network_interfaces
Created August 12, 2012 12:06
Debian network configuration for Proxmox VE server running on a Hetzner host
# /etc/network/interfaces
#
auto lo
iface lo inet loopback
# device: eth0
iface eth0 inet manual
# IPv4 bridge
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!)
@troglodyne
troglodyne / dark_orb.css
Last active October 12, 2023 17:27
WHM Dark mode CSS for use in Stylus plugin
/*
You may need to replace the line below with something like:
@-moz-document domain("whm.my.domain.name") if using the whm proxy subdomain
*/
@-moz-document regexp("^http[s]?://[a-zA-Z0-9._-]+:208[67]/.*") {
#topFrameWrapper > div {
background-color: #1d1d1d;
color: white;
}
#pageContainer {
@dorkmatt
dorkmatt / netbox_optics_audit.py
Last active June 28, 2022 11:32
Netbox Juniper/Arista optics audit
#!/usr/bin/env python
#
# Fetch list of Juniper/Arista devices via Netbox, query optics info via Netconf, write to CSV file
#
# Written at 34c4 in Leipzig, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@pol
pol / set_iTerm_background.sh
Created January 11, 2011 01:42
Set the background color of iTerm based on RAILS_ENV
#!/usr/local/bin/bash
set_term_bgcolor(){
local R=$1
local G=$2
local B=$3
/usr/bin/osascript <<EOF
tell application "iTerm"
tell the current terminal
tell the current session
@Thermionix
Thermionix / auth-basic.conf
Last active November 4, 2021 00:56
nginx reverse proxy for sickbeard, couchpotato etc.
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/htpasswd;
<?php
namespace app\extensions\data\behavior;
use nzedb\Users;
use lithium\aop\Filters;
class Vip extends \li3_behaviors\data\model\Behavior
{
@zetas
zetas / default.json
Created June 13, 2018 06:00
iTerm2 Byobu Keybind Profile.
{
"Ansi 5 Color" : {
"Green Component" : 0.4117647111415863,
"Blue Component" : 0.78823530673980713,
"Red Component" : 0.55686277151107788
},
"Working Directory" : "\/Users\/david",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0.729411780834198,
import shutil
import sys
import glob
import os
# Reorganizing chia plot on disk to free disk
# example python diskweap.py /media/plot1
# will check moving all finish plot from disk6 to 1, 5 to 1, 4 to 1, 3 to 1, 2 to 1 then step to disk 2 => 6 to 2...
mount_path = sys.argv[1]
# This is the entire preseed config file used on an example Lucid system. See the preseed
# documentation for more information on the options here. This will use US English by default.
#
# https://help.ubuntu.com/10.04/installation-guide/amd64/preseed-contents.html
#
# This preseed will automatically install Ubuntu 10.04 with default options. Understand what
# it is doing before you use it.
#
# Boot Options line:
#