Skip to content

Instantly share code, notes, and snippets.

Avatar

Gary Pinkham gpinkham

  • Pinkham Software
  • Boston
  • Twitter @pinkham
View GitHub Profile
@rpaul-stripe
rpaul-stripe / app.js
Last active Jul 11, 2020
Stripe Checkout Node.js Express Example
View app.js
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 Aug 10, 2018
An Nginx proxy error connecting to AWS api-gateway
View Nginx_error.log
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 Sep 24, 2022
A simple script to backup an organization's GitHub repositories, wikis and issues.
View backup-github.sh
#!/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).