Skip to content

Instantly share code, notes, and snippets.

# 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:
#
@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
@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!)
@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;
# /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!)
@dsieborger
dsieborger / download-zd-config.sh
Created April 9, 2015 18:21
Download binary config file from Ruckus ZoneDirector
#!/bin/sh
# Download the binary config file from a Ruckus ZoneDirector.
#
# Tested with 9.8.2 on a ZD5000. May well need to be adjusted for other
# versions.
USERNAME=xxx
PASSWORD=xxx
ZDURL=https://zonedirector.example
COOKIES=cookies.txt # will be overwritten if it exists
#!/bin/bash
#
# This script is used to setup netbox on a server running CentOS.
# Details at http://www.opentechshed.com/deploying-netbox-digital-ocean
#
### User Modifiable Variables ###
LOGFILE="/tmp/netbox-install.log"
PGCONF="/var/lib/pgsql/10/data/pg_hba.conf"
DBPASS=`date +%s | sha256sum | base64 | head -c 32`
NBADMIN='admin'
@hannesbe
hannesbe / update-netbox.sh
Last active March 10, 2018 01:23
Update Netbox
#!/bin/bash
#
# Update script for Nextbox on CentOS 7
# Releases on https://github.com/digitalocean/netbox/releases
#
# Example usage:
# NETBOX_RELEASE=2.2.6 ./update-netbox.sh
cd /opt
<?php
namespace app\extensions\data\behavior;
use nzedb\Users;
use lithium\aop\Filters;
class Vip extends \li3_behaviors\data\model\Behavior
{