Skip to content

Instantly share code, notes, and snippets.

Making things.

Cristina Solana CristinaSolana

Making things.
View GitHub Profile
nrollr /
Last active Feb 18, 2021
Enable SSL in Apache for 'localhost' (OSX, El Capitan)

Enable SSL in Apache (OSX)

The following will guide you through the process of enabling SSL on a Apache webserver

  • The instructions have been verified with OSX El Capitan (10.11.2) running Apache 2.4.16
  • The instructions assume you already have a basic Apache configuration enabled on OSX, if this is not the case feel free to consult Gist: "Enable Apache HTTP server (OSX)"

Apache SSL Configuration

Create a directory within /etc/apache2/ using sudo mkdir /etc/apache2/ssl
Next, generate two host keys:

berzniz / jshipster_and_and.js
Last active Jul 25, 2020
Some small javascript hacks for hipsters
View jshipster_and_and.js
// Boring
if (isThisAwesome) {
alert('yes'); // it's not
// Awesome
isThisAwesome && alert('yes');
// Also cool for guarding your code
var aCoolFunction = undefined;
jorgepinon / alert.js
Last active Dec 15, 2015
A tiny jquery plugin that adds a close link to an alert div
View alert.js
//pass the options variable to the function
alert: function(options) {
//Set the default values
var defaults = {
pull: 'right',
View gist:2597326

Moving from jQuery


// jQuery
$(document).ready(function() {
  // code
View compass_config.rb
if environment == :production
on_stylesheet_saved do |file|
# pretty logging output when making a gzipp'ed file
gz_file ="#{file}.gz").relative_path_from(, gz_file)
# This generates a file of the same name but ending in .gz
`gzip -f #{file}`
CristinaSolana / gist:1885435
Created Feb 22, 2012
Keeping a fork up to date
View gist:1885435

1. Clone your fork:

git clone

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://
git fetch upstream
wesbos / gist:1739883
Created Feb 4, 2012
PhantomJS Media Query Screenshot
View gist:1739883
var page = new WebPage(),
address, output, size;
address = "";
width = 1024; height = 600;
output = "./screenshots/screenshot-"+width+"X"+height+".png";
page.viewportSize = { width: width, height: height };
if (phantom.args.length === 3 && phantom.args[1].substr(-4) === ".pdf") {
nathansmith / html_reset.css
Created Jan 28, 2010
Reset for HTML4 / HTML5
View html_reset.css
/* `XHTML, HTML4, HTML5 Reset