Skip to content

Instantly share code, notes, and snippets.

View landock's full-sized avatar

Mike Easley landock

View GitHub Profile
@landock
landock / pre-commit-eslint
Last active November 3, 2020 20:08 — forked from linhmtran168/pre-commit-eslint
Pre-commit hook to check for Javascript using ESLint
#!/bin/sh
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
PASS=true
@landock
landock / Makefile
Created March 18, 2019 22:17 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@landock
landock / awesome-php.md
Created October 31, 2012 20:03 — forked from ziadoz/awesome-php.md
Awesome PHP Libraries
<?php
/**
* PDO SINGLETON CLASS
*
* @author Tony Landis
* @link http://www.tonylandis.com
* @license Use how you like it, just please don't remove or alter this PHPDoc
*/
class sdb
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.