Skip to content

Instantly share code, notes, and snippets.

View mikepj's full-sized avatar

Mike Piatek-Jimenez mikepj

View GitHub Profile
@mikepj
mikepj / update_ssl.txt
Created April 9, 2014 16:42
Generating a new self-signed CSR and SSL certificates on Ubuntu
# These are the commands I ran to regenerate a self-signed CSR and SSL certificate on a Ubuntu
# server after the heartbleed SSL vulnerability was discovered. This should be done after you
# have upgraded OpenSSL. I ran the following as root.
cd /etc/ssl/private
# Generate a password protected key for the CSR.
openssl genrsa -des3 -out server-20140409.key 1024
# Next use the password protected key to create a non-password protected key, so you
@mikepj
mikepj / NSIndexSet+GSIndexSetAdditions.h
Last active December 10, 2015 16:18
A category to NSIndexSet. Only method will compare the receiver with another NSIndexSet and return a new NSIndexSet with the indices that intersect.
//
// NSIndexSet+GSIndexSetAdditions.h
//
// Created by Mike Piatek-Jimenez on 1/4/13.
// Copyright (c) 2013 Mike Piatek-Jimenez. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSIndexSet (GSIndexSetAdditions)