Skip to content

Instantly share code, notes, and snippets.

View nfreear's full-sized avatar

Nick Freear nfreear

View GitHub Profile
@nfreear
nfreear / git-status-recursive.php
Last active August 1, 2017 10:36 — forked from dbu/git-status-recursive
Recursive git status (PHP + Bash)
#!/usr/bin/env php
<?php
/**
* Recursive Git status.
*
* @author NDF, 01-August-2017 (edits only)
* @link https://gist.github.com/dbu/2843660
* @link https://gist.github.com/nfreear/55b52827c46485218129b6b00b73adb9
*/
define( 'FIND_CMD', 'find . -type d -name \'.git\' | sed -e "s/\.git//"' );
@nfreear
nfreear / gist:3ae85c840c2371d32799a002cca973ae
Created May 25, 2016 22:02 — forked from rnorth/gist:2031652
Cookie-based authentication with nginx
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
@nfreear
nfreear / app.yaml
Created August 13, 2013 10:09 — forked from darktable/app.yaml
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
@nfreear
nfreear / lint-all-files-recursive.php
Created December 5, 2012 16:04 — forked from k3n/lint-all-files-recursive.php
Applies PHP's lint check to all PHP files in a directory.
<?php // https://gist.github.com/1846220
define('LINT', '\xampp\php\php -l');
/**
* Recurses each directory and runs PHP's lint function against each file
* to test for parse errors.
*
* @param string $dir the directory you would like to start from
* @return array the files that did not pass the test
*/
@nfreear
nfreear / wc10.html
Created October 5, 2011 09:11 — forked from nithinbekal/wc10.html
JavaScript Countdown timer / small / with fixes
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>Countdown Timer</title>
<div id="countdown_time"> </div>
<script src="wc10.js" type="text/javascript" charset="utf-8"></script>
</html>