Skip to content

Instantly share code, notes, and snippets.

View kshreve's full-sized avatar
🏠
Working from home

Kevin Shreve kshreve

🏠
Working from home
View GitHub Profile
@kshreve
kshreve / gist:b42ea30bdd17a64af19ddd7824681500
Created December 27, 2017 14:12
Pulling code from a PR. Add this to your Git Config
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "upstream"]
url = https://github.com/OrgName/ProjectName.git
fetch = +refs/heads/*:refs/remotes/upstream/*
Change your upstream config to look like this, with the added bottom line
[remote "upstream"]
url = https://github.com/OrgName/ProjectName.git
@jessedearing
jessedearing / gist:2351836
Created April 10, 2012 14:44 — forked from twoism-dev/gist:1183437
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key