Skip to content

Instantly share code, notes, and snippets.

View DerekNonGeneric's full-sized avatar

Derek Lewis DerekNonGeneric

View GitHub Profile
@DerekNonGeneric
DerekNonGeneric / cgi-apache-mac.md
Created March 20, 2016 04:48
Run CGI scripts within the user-level document root of an Apache webserver on Mac OS X 10.11 El Capitan

Run CGI scripts within the user-level document root of an Apache webserver on Mac OS X 10.11 El Capitan

  1. Download and install Sublime Text if you haven't already

  2. Launch Terminal, (Applications/Utilities), and follow the commands below

  3. Create a symlink to subl in /usr/local/bin/

    ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
var COMPILED=!0,goog=goog||{};goog.global=this;goog.isDef=function(a){return void 0!==a};goog.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&goog.isDef(b)?c[d]=b:c=c[d]?c[d]:c[d]={}};
goog.define=function(a,b){var c=b;COMPILED||(goog.global.CLOSURE_UNCOMPILED_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES,a)?c=goog.global.CLOSURE_UNCOMPILED_DEFINES[a]:goog.global.CLOSURE_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES,a)&&(c=goog.global.CLOSURE_DEFINES[a]));goog.exportPath_(a,c)};goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;
goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(a){if(!COMPILED&&goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');goog.constructNamespace_(a)};goog.constructNamespace_=function(a,b){if(!CO
set -gx PATH /usr/local/bin $PATH
set -g NPM_PACKAGES "$HOME/.npm-packages" #add -x if you need to export this
set -gx PATH $NPM_PACKAGES/bin $PATH
set -e MANPATH
set -gx MANPATH (manpath) "/usr/local/lib/node_modules/npm/man" "$NPM_PACKAGES/share/man" $MANPATH
@DerekNonGeneric
DerekNonGeneric / download-site.md
Created May 24, 2016 23:06 — forked from pmeinhardt/download-site.md
download an entire page (including css, js, images) for offline-reading, archiving… using wget

If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:

$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent  www.website.org/tutorials/html/

This command downloads the website www.website.org/tutorials/html/.

The options are:

  • --recursive: download the entire website
  • --domains website.org: don't follow links outside website.org

Differences

This file aims to document the differences between the original Mastodon release and the Infxn mod.

Between v1.3.2 and v1.3.2-infxn

Naming in several files

  • The name, description, repository, and logo fields in various app JSON files
  • The HTTP Server header (from Mastodon to Mastodon v1.3.2 Infxn) in /config/environments/production.rb
@DerekNonGeneric
DerekNonGeneric / package.json
Created June 28, 2017 12:08 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@DerekNonGeneric
DerekNonGeneric / custom-loader.mjs
Last active April 5, 2020 08:44
Dummy loader from Node.js ESM documentation modified to support Windows
/**
* Custom Module Loader for Node v12.4.0+
* @example node --experimental-modules --loader ./custom-loader.mjs x.js
* @license 0BSD
* @module custom-loader.mjs
* @see https://nodejs.org/api/esm.html#esm_experimental_loader_hooks
*/
import Module from 'module';
import path from 'path';
@DerekNonGeneric
DerekNonGeneric / esmFormat_userland.mjs
Last active June 10, 2021 22:07
Userland JS implementation of Node's ESM resolver spec
/**
* @fileoverview Userland JS implementation of Node's ESM resolver spec.
*
* "[...] Exposing or having userland implementations of the spec would be very
* useful indeed. If Node core were to expose something here it should likely be
* a JS esmFormat implementation. [...]" - @guybedford
*
* "[...] The source of truth to follow for determining the module format of
* a file is the specification for the resolver {@link} under the function
* ESM_FORMAT. [...]" — @guybedford
[
{ "name": "♿️ Category: Accessibility", "color": "#c5def5" },
{ "name": "🗞️ Category: Blog", "color": "#c5def5" },
{ "name": "🧫 Category: Boilerplate Generator", "color": "#c5def5" },
{ "name": "📝 Category: Content", "color": "#c5def5" },
{ "name": "💄 Category: CSS/Styling", "color": "#c5def5" },
{ "name": "📖 Category: Documentation", "color": "#c5def5" },
{ "name": "🧪 Category: Examples", "color": "#c5def5" },
{ "name": "⚙️ Category: Functionality", "color": "#c5def5" },
{ "name": "🏗️ Category: Infrastructure/Tooling/Builds/CI", "color": "#c5def5" },

People-Centric Language Scenario

RESEARCHER ACCEPTING A GRANT FOR AN ACCESSIBILITY PROJECT

The expectation is that a researcher will:

  • author a document to communicate findings
  • communicate one's findings without unfair discrimination
  • provide an evaluation for each impairment