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 os | |
import sys | |
import requests | |
import argparse | |
import json | |
import time | |
pulp_user = '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
# File: Vagrantfile | |
# Vagrant.configure(2) do |config| | |
# config.vm.box = "ubuntu/trusty64" | |
# end | |
# | |
# Process: | |
# $ wget https://gist.githubusercontent.com/nextrevision/f81cc9493af565613e6a/raw/e48f4229743f1f29e82fb17d7129c8dead3c51f0/replay_and_test.py | |
# $ vagrant up | |
# $ vagrant ssh | |
# $ sudo apt-get update |
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 | |
# | |
# Requires: | |
# - scapy | |
# - tcpreplay | |
import sys | |
from scapy.all import * | |
if len(sys.argv) != 6: |
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 | |
[ -z $1 ] && { echo "usage: $0 [iface] [interval: default 1]"; exit 1; } | |
IFACE=$1 | |
INTERVAL=${2:-1} | |
loop=1 | |
PPS_RX=/sys/class/net/${IFACE}/statistics/rx_packets | |
PPS_TX=/sys/class/net/${IFACE}/statistics/tx_packets |
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 | |
# Description: | |
# Extracts all contents of an ISO to the given output directory | |
# Requires: | |
# Packages: genisoimage | |
ISO=$1 | |
OUTDIR=${2:-"./out"} | |
usage() { |
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 | |
ACTION=$1 | |
PULP_IMAGES=( | |
pulp/mongodb | |
pulp/qpid | |
pulp/base | |
pulp/worker | |
pulp/apache |
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
# Requires automysqlbackup and stdlib module to be a child | |
# directory of the CWD | |
require "puppet" | |
require "json" | |
def run | |
manifest_path = './manifests/site.pp' | |
module_paths = ['../','./'] | |
config_dir = nil | |
hiera_config = nil |
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 | |
# requirements: | |
# brew install gawk gsed | |
# settings file ~/.registry_settings | |
# REGISTRY="registry.acme.com" | |
# URL="https://${REGISTRY}:5000/v1" | |
# USERNAME="admin" | |
# PASSWORD="password" |
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
FROM ubuntu:trusty | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get install -y apache2 wget | |
RUN wget -O /usr/local/bin/sempl \ | |
https://raw.githubusercontent.com/nextrevision/sempl/0.2.1/sempl | |
RUN chmod 755 /usr/local/bin/sempl | |
ADD index.html.tmpl /app/index.html.tmpl |
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 -e | |
if [ -z "$1" ]; then | |
echo "usage: unsource.sh vars.env" | |
elif [ ! -f "$1" ]; then | |
echo "No such file: ${1}" | |
else | |
__start_env=$(mktemp -t unsource.XXXXXX) | |
__end_env=$(mktemp -t unsource.XXXXXX) |
OlderNewer