Skip to content

Instantly share code, notes, and snippets.


Sheryl Hohman SherylHohman

View GitHub Profile
SherylHohman /
Created Jul 26, 2019 — forked from hisplan/
Add rsync to git bash for windows
Kmaschta /
Created Jan 9, 2019
How to generate a self-signed that is valid for your browser (by creating your custom certificate authority)

If you're using self-signed certificate for your web server on development, you might know the browser warning saying that your certificate isn't valid. If like me you had manually added an exception for this certificate error each time it showed up, this gist is for you.

Properly Configure OpenSSL with your DNS aliases

You'll have to create a self-signed certificate with a custom SubjectAltName.

  1. Find your openssl config. find /usr/lib -name openssl.cnf
hisplan /
Created Feb 21, 2018
Add rsync to git bash for windows
bekarice / sv-background-test.php
Created Jun 21, 2017
Provides a plugin to test whether a server will allow background job processing or not for WooComm import / export plugins.
View sv-background-test.php
* Plugin Name: Background Processing Test for Import / Export
* Plugin URI:
* Description: Tests whether or not the server can connect to itself to process jobs asynchronously.
* Author: SkyVerge
* Author URI:
* Version: 1.0.0
* Text Domain: sv-background
View gist:40990f72f51938e527906884f82a3e27
WP_HOME - where home is
Site Address (URL)
WP_SITEURL - where wordpress is (when having wp in a subdirectory home without the subdir path, like at
View My Sublime 3 settings
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"draw_white_space": "all",
"font_face": "Fira Mono",
"font_size": 20,
"tab_size": 2,
"theme": "Brogrammer.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
View installs
npm install --save react react-dom && npm install --save-dev html-webpack-plugin webpack webpack-dev-server babel-{core,loader} babel-preset-{react,es2015,stage-0} style-loader css-loader
gaearon / slim-redux.js
Last active Sep 12, 2022
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
View slim-redux.js
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
guocheng / .eslintrc
Last active Jan 3, 2018
A eslint config file for linting react/jsx and ES6 syntax. This file is based on ( and ( Note that I use single quote in the rules, to change it, lookup 'quotes' and change it to `"quotes": [1, "double"].
View .eslintrc
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
"ecmaFeatures": {
"jsx": true,
"modules": true,
cletusw / .eslintrc
Last active Aug 4, 2022
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
View .eslintrc
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names