Skip to content

Instantly share code, notes, and snippets.

View natflow's full-sized avatar

Nat natflow

  • Portland, OR
View GitHub Profile
@natflow
natflow / keybase.md
Created August 20, 2021 01:50
Keybase proof

Keybase proof

I hereby claim:

  • I am natflow on github.
  • I am natflow (https://keybase.io/natflow) on keybase.
  • I have a public key ASCaMdU7ehrpeQ5ydQU2XrH2v6xhmbblCmYi7hmOk_7ATwo

To claim this, I am signing this object:

@natflow
natflow / proof.json
Created August 20, 2021 01:48
keybase proof
{
"body": {
"key": {
"eldest_kid": "01209a31d53b7a1ae9790e727505365eb1f6bfac6199b6e50a6622ee198e93fec04f0a",
"host": "keybase.io",
"kid": "01209a31d53b7a1ae9790e727505365eb1f6bfac6199b6e50a6622ee198e93fec04f0a",
"uid": "3654f6f228650ab7e6da267392d4a419",
"username": "natflow"
},
"merkle_root": {
@natflow
natflow / init.php
Created April 30, 2013 17:33
Cygnus php shell init script. Run in directory containing core and phplib.
<?php
# phpsh init.php
set_include_path(get_include_path() . ':./core:./phplib');
require_once('mvc/bootstrap.php');
@natflow
natflow / deferredInterval.js
Created July 20, 2012 17:41
deferred interval
function deferredInterval (interval) {
return $.Deferred(function () {
var intervalID = setInterval(this.notify, interval);
this.always(clearInterval.bind(window, intervalID));
});
// don't return a promise, so callers can resolve/reject to clear it
}
@natflow
natflow / deferredTimeout.js
Created July 20, 2012 17:16
deferred timeout
function deferredTimout (timeout) {
return $.Deferred(function () {
setTimeout(this.resolve, timeout);
})
.promise();
}
@natflow
natflow / .htaccess
Created January 18, 2012 23:43
failing .htaccess
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .