Skip to content

Instantly share code, notes, and snippets.

View joshuakfarrar's full-sized avatar
💻
Purely Functional

Joshua K. Farrar joshuakfarrar

💻
Purely Functional
View GitHub Profile
#!/bin/bash
# This script will run a series of ab benchmarks and print them out to a files directory in a drupal site with the -w
# flag for easy web browser reading.
# Example usage:
# ./thisScript.sh -u 'ourpassword:todev' -d http://somedomain.com -o dir/towrite/to -f 'index/ something.php /content/node/xxxx/'
while getopts u:d:o:f: option
do
case "${option}"; in
u) USER=${OPTARG};;
#!/bin/bash
# FIXME:
# WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.8.0
NOKOGIRIR_VERSION=${1:-1.6.1}
LIBXML_VERSION=${2:-2.9.1}
LIBXSLT_VERSION=${3:-1.1.28}
gem uninstall nokogiri libxml-ruby
@joshuakfarrar
joshuakfarrar / .eslintrc
Created February 24, 2016 16:49 — forked from cletusw/.eslintrc
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).
{
// http://eslint.org/docs/rules/
"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