Skip to content

Instantly share code, notes, and snippets.

View gpinkham's full-sized avatar

Gary Pinkham gpinkham

View GitHub Profile
@rpaul-stripe
rpaul-stripe / app.js
Last active July 11, 2020 01:40
Stripe Checkout Node.js Express Example
const keyPublishable = process.env.PUBLISHABLE_KEY;
const keySecret = process.env.SECRET_KEY;
const app = require("express")();
const stripe = require("stripe")(keySecret);
app.set("view engine", "pug");
app.use(require("body-parser").urlencoded({extended: false}));
app.get("/", (req, res) =>
@ajayk
ajayk / Nginx_error.log
Last active August 10, 2018 12:35
An Nginx proxy error connecting to AWS api-gateway
2016/01/08 23:57:02 [error] 68363#0: *38 SSL_do_handshake() failed (SSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure) while SSL handshaking to upstream, client: 127.0.0.1, server: localhost, request: "GET /api/providers HTTP/1.1", upstream: "https://xx.xx.xx.xx:443/stage", host: "localhost"
2016/01/08 23:57:02 [warn] 68363#0: *38 upstream server temporarily disabled while SSL handshaking to upstream, client: 127.0.0.1, server: localhost, request: "GET /api/providers HTTP/1.1", upstream: "https://xx.xx.xx.xx:443/stage", host: "localhost"
@rodw
rodw / backup-github.sh
Last active March 30, 2024 15:04
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
#-------------------------------------------------------------------------------
# NOTES:
#-------------------------------------------------------------------------------
# * Under the heading "CONFIG" below you'll find a number of configuration
# parameters that must be personalized for your GitHub account and org.
# Replace the `<CHANGE-ME>` strings with the value described in the comments
# (or overwrite those values at run-time by providing environment variables).