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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
export TIMESTAMP=$(date +"%Y%m%d-%H%M%S") | |
export HERE=`pwd` | |
echo "Creating ${TIMESTAMP}" | |
mkdir $TIMESTAMP | |
cf target -s space-name |
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 | |
# 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]], |
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 | |
# | |
# Script for DevStack installation on a Ubuntu LTS (14.04) system. | |
# | |
# 2016, alex(at)wintermute.ai | |
# 2017, sean keery | |
# | |
OPTDIR="/opt/stack" | |
STACKUSER="stack" |
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 __future__ import print_function | |
import json | |
import boto3 | |
import logging | |
import pprint | |
#setup simple logging for INFO | |
logger = logging.getLogger() | |
logger.setLevel(logging.ERROR) |
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
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') |
NewerOlder