This file contains 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
# /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!) |
This file contains 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/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 |
This file contains 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 | |
# | |
# 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 |
This file contains 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
###NetBox Install### | |
#update repos | |
sudo apt-get update | |
#install postgresql | |
sudo apt-get install -y postgresql libpq-dev | |
#go into sql with user postgres | |
sudo -u postgres psql |
This file contains 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 | |
# | |
# 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' |
This file contains 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
# 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: | |
# |
This file contains 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
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 file contains 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
{ | |
"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, |
This file contains 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
<?php | |
namespace app\extensions\data\behavior; | |
use nzedb\Users; | |
use lithium\aop\Filters; | |
class Vip extends \li3_behaviors\data\model\Behavior | |
{ |
This file contains 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
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/htpasswd; |
OlderNewer