Skip to content

Instantly share code, notes, and snippets.

coffee & learn & code

Hullen Gonzales hullen

coffee & learn & code
Block or report user

Report or block hullen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .eslintrc
"parser": "babel-eslint",
"extends": ["airbnb", "airbnb/hooks", "prettier"],
"plugins": ["react", "react-hooks", "prettier"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
View .prettierrc
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"bracketSpacing": true,
"jsxBracketSameLine": false

#MongoDB 3.2.x Security

##Network Ports The standard ports used by mongo are:

ProcessRoleDefault Port
hullen / gist:cd47fd5b0ab6cfc1e284db337d2c2242
Created Aug 23, 2016 — forked from sl4m/gist:5091803
create self-signed certificate for localhost
View gist:cd47fd5b0ab6cfc1e284db337d2c2242
# 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
hullen /
Created Nov 11, 2015 — forked from rrosiek/
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Outputs nearly everything to /dev/null since "quiet" on most commands is still noisy.
#! /usr/bin/env bash
# Variables
echo -e "\n--- Mkay, installing now... ---\n"
hullen /
Created Oct 18, 2015 — forked from magnetikonline/
Setting Nginx FastCGI response buffer sizes.

Nginx FastCGI response buffer sizes

By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk. This process is also explained at the Nginx ngx_http_fastcgi_module page document page.

Since disk is slow and memory is fast the aim is to get as many FastCGI responses passing through memory only. On the flip side we don't want to set an excessively large buffer as they are created and sized on a per request basis (i.e. it's not shared memory).

The related Nginx options are:

hullen / wordpress-default.css
Created Jul 28, 2015
Default CSS for creating Wordpress themes
View wordpress-default.css
* Default Body Class Styles
.rtl {}
.home {}
.blog {}
.archive {}
.date {}
.search {}
.paged {}
View uri.js
var parser = document.createElement('a');
parser.href = "";
parser.protocol; // => "http:"
parser.hostname; // => ""
parser.port; // => "3000"
parser.pathname; // => "/pathname/"; // => "?search=test"
parser.hash; // => "#hash"; // => ""
View .bash_profile
# ---------------------------------------------------------------------------
# Description: This file holds all my BASH configurations and aliases
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
View gist:9716300
<!-- -->
<script src='<?php bloginfo('template_directory'); ?>/js/'></script>
<!-- -->
<script src='<?php bloginfo('template_directory'); ?>/js/jquery.address-1.3.min.js'></script>
// Original JavaScript by Chris Coyier
// Updated October 2010 by Stewart Heckenberg & Chris Coyier
You can’t perform that action at this time.