Skip to content

Instantly share code, notes, and snippets.

View skibum55's full-sized avatar
🏂

Sean Keery skibum55

🏂
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skibum55
skibum55 / sequence-diagram.mermaid
Created June 7, 2018 16:45
sequence diagram as code - Cloud Foundry application push
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skibum55
skibum55 / PCF_standup.mermaid
Last active February 22, 2018 18:19
Standing up PCF Sequence Diagram
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skibum55
skibum55 / addon.mermaid
Created February 21, 2018 18:20
Sample MermaidJS sequence diagram - BOSH Addon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skibum55
skibum55 / in_script.bs
Created January 31, 2018 22:32
Poke at your Cloud Foundry application instance to see status of connections
#!/bin/bash
export TIMESTAMP=$(date +"%Y%m%d-%H%M%S")
export HERE=`pwd`
echo "Creating ${TIMESTAMP}"
mkdir $TIMESTAMP
cf target -s space-name
@skibum55
skibum55 / datadog_test.sh
Created May 25, 2017 18:43
datadog metric POST test
#!/bin/sh
# Make sure you replace the API and/or APP key below
# with the ones for your account
# from http://docs.datadoghq.com/api/?lang=console
currenttime=$(date +%s)
curl -X POST -H "Content-type: application/json" \
-d "{ \"series\" :
[{\"metric\":\"test.metric\",
\"points\":[[$currenttime, 20]],
@skibum55
skibum55 / install_devstack_aws.sh
Created January 13, 2017 20:03
Install Devstack on AWS Ubuntu 14.04
#!/bin/bash
#
# Script for DevStack installation on a Ubuntu LTS (14.04) system.
#
# 2016, alex(at)wintermute.ai
# 2017, sean keery
#
OPTDIR="/opt/stack"
STACKUSER="stack"
@skibum55
skibum55 / EC2-Tag-Assets-Lambda.py
Last active January 8, 2017 18:56 — forked from mlapida/EC2-Tag-Assets-Lambda.py
A lambda function that will copy EC2 tags to all related Volumes and Network Interfaces on instance creation.
from __future__ import print_function
import json
import boto3
import logging
import pprint
#setup simple logging for INFO
logger = logging.getLogger()
logger.setLevel(logging.ERROR)
import urllib2
from bs4 import BeautifulSoup
url = "https://cs109alabs.github.io/lab_files/"
page = urllib2.urlopen(url).read()
soup = BeautifulSoup(page)
with open('output.txt', 'w') as f:
for tr in soup.find_all('tr')[1:]:
tds = tr.find_all('td')