Skip to content

Instantly share code, notes, and snippets.

View voidfiles's full-sized avatar

Alex Kessinger voidfiles

View GitHub Profile
testing this out
@voidfiles
voidfiles / dispatch.py
Created August 18, 2009 08:10
one page python mp3 server
#! /home/alexkess/opt/bin/python
# One file mp3 server.
# Need newish version of sqlite3
# python2.5 or python2.6
# INSTALL
# get id3reader from here and install on path http://nedbatchelder.com/code/modules/id3reader.html
# easy_install pod
NO_NEWF = False
try:
from newf import Application, Response, ResponseRedirect
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>PostRank Feeds</title>
<dateCreated>Sun, 23 Aug 2009 21:32:12 GMT</dateCreated>
<ownerName>voidfiles</ownerName>
</head>
<body>
<outline type="rss" title="Dropular" text="Dropular" xmlUrl="http://feeds.postrank.com/a0b7979807bccb91a1e4dffbe8fdd49f?level=good" origXml="http://dropular.net/feed/rss/" private="false" htmlUrl="http://dropular.net/"/>
<outline type="rss" title="Startup News" text="Startup News" xmlUrl="http://feeds.postrank.com/3d813cafb88dae0c470e6dddb41c0577?level=good" origXml="http://news.ycombinator.com/rss" private="false" htmlUrl="http://news.ycombinator.com/"/>

Short Stories By Alex Kessinger

I read this post by merlin man, about short stories and it inspired me to write a short story. I thought this might be something I do again in the future. So here is a git hub gist I will use to store short stories.

Inspect Before Opening - 2009-08-24

Our first child took about 9 months to gestate, almost a whole year. During that time, an inordinate amount of time was spent talking about our baby. We still do this, but at the time I was new to the overwhelming obsession. When we finally decided to get the baby out, it took almost 16 hours, well maybe 16 hours but after 4 hours of doing nothing but watching your wife get a baby out you forget about time and just focus on helping her, at the end this thing plopped out, and they wanted me to hold her. I couldn't, just for second I had to wait for just a moment. It still don't know exactly what it was. I was overwhelming emotion

@voidfiles
voidfiles / resume.md
Last active June 1, 2018 18:20
Alex Kessinger

Alexander J. Kessinger

Personal Statement

I see my job as efficiently delivering value to my customers. Most of the time that means working with my team mates to understand our goals and our process. Then iteratively executing a plan and checking in with my team and customers to ensure that we are moving closer to our goals.

function Subscriber(){
this.events = {};
}
Subscriber.prototype.create = function(event){
if(this.events[event]){
return;
}
this.events[event] = [];
"""
I use this as a pull cache/pseudo-CDN for a production environment. I use this as a fallback static file server, if the file doesn't exist already on the server. If my server doesn't have a file, like an image, I then pull the file from the fallback server, or origin server. This can be my box, or more likely if I am pulling from a 3rd party site, I can cache the file on my servers, instead of having to constantly hit the other site.
I put this in my apache .htaccess file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi/$1 [QSA,L]
This serves the file if it exists else, it falls back on my django fcgi.
I use this because my website http://staytuned.in is hosted on http://www.dreamhost.com
# Style Rules
JS Javascript
javascript Javascript
Ipad iPad
ipad iPad
Iphone iPhone
iphone iPhone
require 'formula'
<<-COMMENTS
This is the Homebrew formula for Python.
Versions
--------
This formula is currently tracking version 2.6.x.
(function(){
var cvp = $.cookie("picplz_viewpref"),
nvp = (cvp===null) ?
"mobile" :
(cvp==="web") ?
"mobile" :
"web";
$.cookie("picplz_viewpref",nvp, {"path": "/"});
})()