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
}
View mongodb_3.2.x_security.md

#MongoDB 3.2.x Security

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

ProcessRoleDefault Port
@hullen
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
hullen / install_mysql.sh
Created Nov 11, 2015 — forked from rrosiek/install_mysql.sh
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.
View install_mysql.sh
#! /usr/bin/env bash
# Variables
APPENV=local
DBHOST=localhost
DBNAME=dbname
DBUSER=dbuser
DBPASSWD=test123
echo -e "\n--- Mkay, installing now... ---\n"
@hullen
hullen / README.md
Created Oct 18, 2015 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.
View README.md

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
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 = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
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
<!-- http://benalman.com/projects/jquery-urlinternal-plugin/ -->
<script src='<?php bloginfo('template_directory'); ?>/js/jquery.ba-urlinternal.min.js'></script>
<!-- http://www.asual.com/jquery/address/ -->
<script src='<?php bloginfo('template_directory'); ?>/js/jquery.address-1.3.min.js'></script>
<script>
// Original JavaScript by Chris Coyier
// Updated October 2010 by Stewart Heckenberg & Chris Coyier
You can’t perform that action at this time.