Skip to content

Instantly share code, notes, and snippets.

@sean-smith
sean-smith / API_Workshop.md
Last active August 29, 2015 14:16
API Workshop

API Workshop

An api, otherwise know as Application Programming Interface, is an easy way to share content between two parties. It is language agnostic which means that people can use any language they want and get the same results.

Some examples of this are:

  • Facebook Login -- many applications that are not operated by facebook can have a single login for their application
  • Google Maps
#Setup Vim Gist Plugin
Ok, we're going to setup vim-gist via https://github.com/tpope/vim-pathogen. To install Pathogen:
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
Then add the following lines to your vimrc:
execute pathogen#infect()

#Setup Vim Gist Plugin

Ok, we're going to setup vim-gist via https://github.com/tpope/vim-pathogen. To install Pathogen:

mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

Then add the following lines to your vimrc:

execute pathogen#infect()

#Setup Vim Gist Plugin

Ok, we're going to setup vim-gist via https://github.com/tpope/vim-pathogen. To install Pathogen:

mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

Then add the following lines to your vimrc:

execute pathogen#infect()
"""
Sean Smith
cs 558
"""
"""
Problem 1
<html>
<head>
<title> HW2 Sean Smith </title>
<style>
<!--
body{
font-family: 'Trebuchet MS', Verdana;
}
p{
font-family: 'Trebuchet MS', Times;
@sean-smith
sean-smith / project_description.md
Created April 5, 2017 14:16
Project Proposal for CS506 Spring 2017
@sean-smith
sean-smith / hpcg.md
Last active May 8, 2019 23:12
AWS ParallelCluster + AWS Batch

AWS ParallelCluster + AWS Batch

Today I'm going to demonstrate running High Performance Conjucate Grandients (HPCG) in a containerized workload. This takes advantage of AWS ParallelCluster, AWS Batch, and OpenMPI.

First install aws-parallelcluster:

$ pip install aws-parallelcluster

Seperate Submit Node

Setup keys on the Submit Host

$ ssh centos@3.209.41.48
$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC747i1LltXnYkTTdXw4/qjuSxZS+zgg/kYgTrwdyejgTQPyjKfN0/2HudIdt83C2ZeTKqW1DU16HShKwPFCY8KUHtSgLaw7q4QV1grPMCAX7lZhIja0+pEsrt/30ME5ps51EqSmN4sAk1Jl9FaOi8YVZkuV++8gBwTKe2PKLFQ709HVP4yzJdx2epiJsENszqdTMkcjX4dr11X4C+lZsOxt7kRlH8GZ2CHAG3UGsgFf5sArClhqXMFwGiSCDIpIpL70EsY5u2Dpaj9Tb9lge4RSHzdjn6Ro1++4hBdHSj5FhrdC5cmemts3MMmS752hfU8oHWGdg3ZeMRJEq4ICIJb centos@ip-10-6-0-241.ec2.internal 
import argparse
import boto3
class ClusterDestroyer:
"""Destroy all ParallelCluster clusters in a given region."""
def __init__(self, region, dryrun):
self.__created_clusters = []
self.region = region