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 / ec2_ipython.md
Last active February 15, 2021 23:09
iPython using EC2 and LetsEncrypt

Setup an iPython Notebook on AWS with LetsEncrypt Certificate

The first step is to setup an EC2 Ubuntu 16.04 instance that you can ssh into. I won't go into detail here but you should be able to easily google it.

You can get free AWS credit here https://education.github.com/pack

A better guide w/ pictures is here: https://chrisalbon.com/jupyter/run_project_jupyter_on_amazon_ec2.html (Note this doesn't include LetsEncrypt, so it only has self signed certificates)

Once you've setup an instance and ssh'd in, do the following:

@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