Skip to content

Instantly share code, notes, and snippets.

View feltnerm's full-sized avatar

Mark Feltner feltnerm

View GitHub Profile
@feltnerm
feltnerm / motivator
Created April 19, 2011 05:49
simple motivational quotes on your console.
#!/usr/bin/env python
# Every hour:
# 1. Open quotes or goals based on the one opened least frequently
# a. Return random line from file
# b. display file
import time
import random
def get_line(lines):
@feltnerm
feltnerm / dotfileback
Created April 19, 2011 05:48
Backup dotfiles to github
#!/usr/bin/env python
"""
backup_dotfiles.py
Copies dotfiles over (.zshrc, .screenrc, etc.) to a backup dir
and syncs them with github.
"""
import argparse
@feltnerm
feltnerm / m2u2dir
Created April 19, 2011 05:37
Useful for Djs to not screw with their real mp3s -- versions for python 2.7 and 2.6
#!/usr/bin/env python
"""
m3u2dir.py
Copies the files found in a .m3u file
to either the current working dir or a dir
specified on the command line.
IDEAS:
automatically find .m3u in current working dir
@shripadk
shripadk / gist:652819
Created October 29, 2010 03:10
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'