This file contains hidden or 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
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="xevres"> | |
<service name="network/xevres" type="service" version="1"> | |
<single_instance /> | |
<dependency name="network" grouping="require_all" restart_on="none" type="service"> | |
<service_fmri value="svc:/milestone/network:default"/> | |
</dependency> | |
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> | |
<service_fmri value="svc:/system/filesystem/local"/> |
This file contains hidden or 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
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="znc"> | |
<service name="network/znc" type="service" version="1"> | |
<single_instance /> | |
<dependency name="network" grouping="require_all" restart_on="none" type="service"> | |
<service_fmri value="svc:/milestone/network:default"/> | |
</dependency> | |
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> | |
<service_fmri value="svc:/system/filesystem/local"/> |
This file contains hidden or 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
<VirtualHost *:80> | |
ServerName {{ servername }} | |
# directory | |
DocumentRoot "{{ documentroot }}" | |
<Directory "{{ documentroot }}"> | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
# php-fpm |
This file contains hidden or 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
# root ca | |
openssl genrsa -out rootCA.key 2048 | |
openssl req -x509 -new -nodes -key rootCA.key -days 365 -out rootCA.crt -subj "/C=DE/L=Raindbow City/O=Aperture Science/OU=Please use valid ssl certificate/CN=ROOT CA MASTER GOD" | |
# host cert | |
host=my-hostname | |
openssl genrsa -out host.key 2048 | |
openssl req -new -key host.key -out host.csr -subj "/C=DE/L=Raindbow City/O=Aperture Science/OU=Please use valid ssl certificate/CN=${host}" | |
# sign my host cert with ca |
This file contains hidden or 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
pkgin install isc-dhcpd | |
##### | |
cat > /opt/local/etc/dhcp/dhcpd.conf < | |
default-lease-time 600; | |
max-lease-time 7200; | |
log-facility local7; | |
subnet6 fdad:e34f:f1d0::/64 { |
This file contains hidden or 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 | |
## Simple bash script to update all mibe images (folders) to the new base mibe | |
## image. | |
## Thomas Merkel <[email protected]> | |
## | |
## PARAM | |
## | |
UUID=${1} | |
MI=${2} |
This file contains hidden or 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
#!/usr/bin/env python | |
import redis | |
import os.path | |
import shutil | |
import glob | |
""" ***** CONFIG START ***** """ | |
REDIS_SOCKET = '/tmp/redis.sock' |
This file contains hidden or 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
from django import forms | |
from django.utils.translation import ugettext_lazy as _ | |
from django.db import connections, transaction | |
def dbname(username): | |
return 'db_' + username | |
class DatabaseCreateForm(forms.Form): | |
name = forms.RegexField(max_length=16, regex=r'^[a-z0-9_]+$', label = _("Name")) | |
password = forms.CharField(widget=forms.widgets.PasswordInput, label = _("Password")) |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAxYOHDbILLsSLO7/Den3sUHKnFZjYV2hYD7sNtHE358649ya8Go2Ee5Ab2lhbShcKSy/fVZWxgrqaCBqRtT6QdFbMPhmgZtFqrSqIMcD4+ivB7ajdPnFA8pn6KKpm3JNfBIZRcG8jxA9l+8bVNOq3He9HVE1Yc0GTNUJg6ALObJyQ8kFmOmLKfcxQUC4t93vUuamx/GejkqmcnrDBiAt4sFaSM2tTx2MUOgxw9KtZH3VIlm8uiQ6DqL3P/YspQzlSCK9lRd3k9XPKHhMYxeyPMMMfiyfUi66N77zunKJntTXZSm3d0PdsUYst5+DcjM+2rt1Bp4mufAMH3KnrOZ0kbFLnpwyKCaUrairXB7Zoslm1rMgZLYSWjkK3X//2nohjNTWpFK5GfMYnZCCPbKp8rc344qdercFWW/VEwuZ8ud4F23b0jp4IJ00EB+HnXf9tbAh6Qs0ii91WahK3dq+1XlyAXzIzi1gTSGtc98o2rgXMGhirh4MJoVkxpsrZLB4oqAkGobkcyqBDWGrOjLsTCx7NIlk8grk7uegrODJyls0jjG3yrwPyNR0zkwPNjmGLUz6sm3Ltj86jFWINX7hUiMbxKCBtWdrmbKMsZhzKo351VHAaNhFvw7ektdzlYHMwqtCaxxpmXnoWExHR72WC35NqyuhTR8QfxqmfsKf1A2c= [email protected] |
This file contains hidden or 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
#!/usr/bin/bash | |
if [ -n "$EX4DEBUG" ]; then | |
echo "now debugging $0 $@" | |
set -x | |
fi | |
# set this to some other value if you don't want the panic log to be | |
# watched by this script, for example when you're using your own log |