Skip to content

Instantly share code, notes, and snippets.

hello = "fun times"
@s2t2
s2t2 / CellsSheet.vb
Created November 13, 2017 03:31
some vba code
Option Explicit
Private Sub CommandButton1_Click()
Dim Age
Dim RetirementAge
Dim SavingsBalance
Dim AnnualContribution
Dim AnnualInterestRate
'
@s2t2
s2t2 / samplerest.js
Created December 29, 2017 22:47 — forked from joshbirk/samplerest.js
Sample of using passport w/ mult strategies
var fs = require("fs")
var ssl_options = {
key: fs.readFileSync('privatekey.pem'),
cert: fs.readFileSync('certificate.pem')
};
var port = process.env.PORT || 3000;
var express = require('express');
var ejs = require('ejs');
var passport = require('passport')
title
Generating self-signed certificates

Generating self-signed certificates

First, you'll need to create an openssl.conf file, for example:

[ req ]
@s2t2
s2t2 / index.html
Created February 8, 2018 15:45
search usa gov jquery
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<button type="button" name="button" id="search-button">Search</button>
<ul id="my-list"></ul>
@s2t2
s2t2 / Gemfile
Created March 7, 2018 23:12 — forked from ctalkington/Gemfile
Nginx, Sinatra, and Puma.
source :rubygems
gem "puma"
gem "sinatra"
@s2t2
s2t2 / nginx.conf
Created March 9, 2018 00:28
local nginx config
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@s2t2
s2t2 / README.md
Created March 9, 2018 01:00
reading piv/cac cards
brew install opensc
opensc-tool -n
@s2t2
s2t2 / products_api_client.py
Last active June 3, 2018 17:51
products api client
import json
import requests
base_url = "https://nyu-info-2335-products-api-csv.herokuapp.com"
def list_products():
response = requests.get(f"{base_url}/products")
return parsed_response(response)
def show_product(product_id):