Skip to content

Instantly share code, notes, and snippets.

View syncrou's full-sized avatar

Drew Bomhof syncrou

  • Red Hat
  • Holland MI
View GitHub Profile
@syncrou
syncrou / gist:369680c7891c0615a57e0b2b79b67166
Last active August 3, 2016 19:30 — forked from minhajuddin/gist:1523881
gitopen - Open all files from a git diff or show command
#!/bin/bash
# This script will list all files from a git diff.
# My bash skills are a bit primitive so this can probably be done more intelligently
# Usage:
# gitopen -- opens all added files that have changed since HEAD
# gitopen diff HEAD -- these are the default parameters
# gitopen diff master -- opens files that have changed from master
@syncrou
syncrou / gist:df1dae2bba20cfa0a25d9826515753f8
Created December 5, 2017 21:17 — forked from trcarden/gist:3295935
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key