Skip to content

Instantly share code, notes, and snippets.

View tigerclaw-az's full-sized avatar

Erik James tigerclaw-az

View GitHub Profile
@tigerclaw-az
tigerclaw-az / vibrant.html
Created February 15, 2018 13:30
Truly Vibrant Telephony mockup
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vibrant Example</title>
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet" type="text/css">
<style>
html {
font-size: 16px;
@tigerclaw-az
tigerclaw-az / .jscsrc
Created June 11, 2015 21:04
.jscsrc configuration
{
"disallowAnonymousFunctions": null,
"disallowCapitalizedComments": null,
"disallowCommaBeforeLineBreak": null,
"disallowCurlyBraces": [],
"disallowDanglingUnderscores": { "allExcept": ["_gm", "_defaults", "_name", "_settings", "_options"] },
"disallowEmptyBlocks": true,
"disallowFunctionDeclarations": null,
"disallowIdentifierNames": [],
"disallowImplicitTypeConversion": [],
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-09
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, west, URL]
# ^default U.S. west coast.
# [ -speed_KB/sec ]
# ^negation activates the Mbps converter.
#
function getVillainName(birthday){
return "The " +
["Evil","Vile","Cruel","Trashy","Despicable","Embarrassing","Disreputable","Atrocious","Twirling","Orange","Terrifying","Awkward"]
[birthday.getMonth()] + ' ' +
["Mustache","Pickle","Hood Ornament","Raisin","Recycling Bin","Potato","Tomato","House Cat","Teaspoon","Laundry Basket"]
[(birthday.getDate()+'').substr(-1)];
}
@tigerclaw-az
tigerclaw-az / git-pull.sh
Created May 23, 2014 16:29
Update all Git repos found in a given directory
#!/bin/sh
find $1 -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;
@tigerclaw-az
tigerclaw-az / commit-msg.rb
Last active August 29, 2015 13:57
commit-msg hook for Git - Will validate certain criteria within the commit message
#!/usr/bin/env ruby -w
# Called by "git commit" with one argument, the name of the file
# that has the commit message. The hook should exit with non-zero
# status after issuing an appropriate message if it wants to stop the
# commit. The hook is allowed to edit the commit message file.
msg_file = ARGV[0]
puts "Running hook: commit-msg"
@tigerclaw-az
tigerclaw-az / php-printr.php
Created March 21, 2014 15:58
PHP Snippet: php-printr
echo "array:".print_r($array,true)."\n";
@tigerclaw-az
tigerclaw-az / .jshintrc
Last active August 29, 2015 13:56
jshint options file
{
"browser": true,
"curly": true,
"eqeqeq": true,
"es5": false,
"forin": true,
"freeze": true,
"funcscope": false,
"futurehostile": true,
"globalstrict": false,
@tigerclaw-az
tigerclaw-az / .csslintrc
Created February 13, 2014 15:40
CSS Linter file
{
"important": true,
"adjoining-classes": true,
"known-properties": true,
"box-sizing": false,
"box-model": true,
"overqualified-elements": true,
"display-property-grouping": true,
"bulletproof-font-face": true,
"compatible-vendor-prefixes": true,
@tigerclaw-az
tigerclaw-az / pre-commit.bash
Last active January 4, 2016 03:29
Git pre-commit hook that will look for all 'pre-commit-*' hooks and execute them one at a time.
#!/bin/bash
SCRIPTPATH=`git rev-parse --show-toplevel`"/.git/hooks"
HOOKS="${SCRIPTPATH}/pre-commit-*"
shopt -s nullglob
pass=true
for hook in $HOOKS