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
#!/usr/bin/env python | |
import sys | |
import datetime | |
import requests | |
import defusedxml.ElementTree as ETree | |
def get_url(url): | |
try: |
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 | |
# BEGIN INIT INFO | |
# Provides: lumberjack | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
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
; J9280A Configuration Editor; Created on release #Y.11.44 | |
hostname "my hostname" | |
snmp-server contact "my contact" | |
snmp-server location "my location" | |
no web-management | |
web-management ssl | |
no telnet-server | |
ip default-gateway 1.2.3.4 | |
snmp-server community "my community for snmp v2" Operator |
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 | |
set -e | |
mkdir /var/lib/elasticsearch | |
if [[ -b /dev/xvdb ]] ; then | |
pvcreate /dev/xvdb | |
lvmdiskscan | |
vgcreate vg_esdata /dev/xvdb | |
lvcreate --extents 100%FREE --name lv_esdata vg_esdata | |
vgscan | |
lvscan |
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
def ldap_auth(username=None, password=None): | |
#Cannot use SASL DIGEST-MD5 bind until Server 2008 R2 SP1 or above | |
#http://msdn.microsoft.com/en-ca/library/cc223500.aspx | |
#import ldap.sasl | |
#auth_tokens = ldap.sasl.digest_md5(str(username), str(password)) | |
#l.sasl_interactive_bind_s("", auth_tokens) | |
#strict checking of cert is disabled in debug mode | |
if site_config.APP_DEBUG_MODE: | |
#ldap.set_option(ldap.OPT_DEBUG_LEVEL, 65535) |
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
*PPD-Adobe: "4.3" | |
*% Adobe Systems PostScript(R) Printer Description File | |
*% Copyright 1987-1996 Adobe Systems Incorporated. | |
*% All Rights Reserved. | |
*% Permission is granted for redistribution of this file as | |
*% long as this copyright notice is intact and the contents | |
*% of the file is not altered in any way from its original form. | |
*% End of Copyright statement | |
*FileVersion: "1.0" | |
*FormatVersion: "4.3" |
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 | |
# Forked from https://gist.github.com/gaahrdner/4088204 | |
# This script takes the following arguments: | |
# * -r the repository URL for your puppet modules | |
# * -p the destination directory to check out all the branches into | |
# * -d delete directories from destination that don't exist in repo | |
function die { | |
log $* |
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
def puppet_agentrun(vm_ip): | |
url = 'https://{}:{}/{}/run/no_key'.format( | |
vm_ip, AGENTAPI_PORT, AGENTAPI_ENV, | |
) | |
# First puppet run might take a long time to return, so we use futures to | |
# display progress indicator | |
fs = FuturesSession() | |
headers = {'Accept': 'pson', 'Content-Type': 'text/pson'} | |
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 | |
### BEGIN INIT INFO | |
# Provides: carbon-cache | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: carbon-cache init script | |
# Description: An init script for Graphite's carbon-cache daemon. | |
### END INIT INFO |
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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ | |
menuitem[label="Add to Dictionary"] { | |
display: none !important; | |
} |