Skip to content

Instantly share code, notes, and snippets.

[multi]
machinery = xenserver,physical
### hostapd configuration file
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
interface=wlan0
driver=nl80211
#noscan=1
bridge=br0
### IEEE 802.11
ssid=xxxxx
// ==UserScript==
// @name Splunk Cloud - Advanced Edit
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Splunk Cloud - Advanced Edit
// @author Steve McMaster <mcmaster[at]hurricanelabs[.]com>
// @match http*://*/en-US/manager/*/data/*
// @match http*://*/en-US/manager/*/saved/*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.18.0/URI.js
#!/usr/bin/env python
import json
import os
import socket
import sys
import urllib2
@mcm
mcm / serve.py
Last active January 3, 2016 03:49 — forked from dustingetz/serve.py
serve static assets for frontend development, with http headers to disable caching
import argparse
from http.server import SimpleHTTPRequestHandler, test
class MyHTTPRequestHandler(SimpleHTTPRequestHandler):
def end_headers(self):
self.send_my_headers()
super().end_headers()
def send_my_headers(self):
import logging
import json
import requests
OPSGENIE_API_KEY = ""
ZENDESK_USERNAME = ""
ZENDESK_API_KEY = ""
--- a/common/compat.c
+++ b/common/compat.c
@@ -816,7 +816,7 @@ getauxval (unsigned long type)
extern int __libc_enable_secure;
secure = __libc_enable_secure;
-#elif defined(HAVE_ISSETUGID)
+#elif defined(HAVE_ISSETUGID) && !defined(__APPLE__)
secure = issetugid ();
@mcm
mcm / default.yml
Last active August 29, 2015 14:23
ipvoid:
name: IPVoid
otypes:
- ip
webscraper:
setup:
url: http://www.ipvoid.com/
method: post
data:
ip: '{target}'
@mcm
mcm / test.py
Last active August 29, 2015 14:23
import collections
import re
import requests
import sys
import yaml
from urllib.parse import parse_qs
Result = collections.namedtuple("Result", ("value", "pretty_name"))
xe template-param-set uuid=$(xe template-list name-label="Ubuntu Trusty Tahr 14.04" --minimal) HVM-boot-policy=""
xe template-param-set uuid=$(xe template-list name-label="Ubuntu Trusty Tahr 14.04" --minimal) HVM-boot-params:order=""
xe template-param-set uuid=$(xe template-list name-label="Ubuntu Trusty Tahr 14.04" --minimal) PV-args="-- quiet console=hvc0"
xe template-param-set uuid=$(xe template-list name-label="Ubuntu Trusty Tahr 14.04" --minimal) PV-bootloader="eliloader"
xe template-param-set uuid=$(xe template-list name-label="Ubuntu Trusty Tahr 14.04" --minimal) other-config:install-distro="debianlike"
xe template-param-set uuid=$(xe template-list name-label="Ubuntu Trusty Tahr 14.04" --minimal) other-config:install-repository=http://us.archive.ubuntu.com/ubuntu
xe template-param-set uuid=$(xe template-list name-label="Ubuntu Trusty Tahr 14.04" --minimal) other-config:debian-release=trusty
xe template-param-set uuid=$(xe template-list name-label="Ubuntu Trusty Tahr 14.04" --minimal) other-config:insta