Skip to content

Instantly share code, notes, and snippets.

View Apreche's full-sized avatar
🚲

Scott Rubin Apreche

🚲
View GitHub Profile
[user]
name = Scott Rubin
email = apreche@frontrowcrew.com
signingkey = 3AED85D3D52E7843
[core]
attributesfile = ~/.gitattributes
pager = less -r
[init]
defaultBranch = main
[color]
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Apreche
Apreche / mkgithub.sh
Created November 17, 2010 17:25
Create a github repository from the current directory
#!/bin/bash
# This will turn the current directory into a repo on Github
# Set the username and password as environment variables like so, in bashrc:
# export GITHUB_USER="User Name Goes Here"
# export GITHUB_TOKEN="API Token Goes Here"
CWD=`basename $PWD`
@Apreche
Apreche / BasicView.py
Created November 11, 2010 03:21
A decorator to make the typical view in Django less verbose
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.template import RequestContext
class BasicView(object):
"""
Almost every view I write in django follows this structure:
def view(request):
...
from django.conf import settings
from django.contrib.sites.models import Site
from celery.task import Task
from celery.registry import tasks
from bitlyapi import BitLy
from twitter import Api
class Tweet(Task):
<?php
/*
Extension Name: Html Formatter
Extension Url: http://lussumo.com/docs/
Description: Allows html to be used in strings, but breaks out all "script" related activities.
Version: 2.4
Author: SirNotAppearingOnThisForum
Author Url: N/A
*/
#!/usr/bin/env/python
"""
gdocs2s3.py
Automatically downloads all of your Google Docs and backs them up to Amazon S3
"""
"""
Copyright (c) 2010 Scott Rubin apreche@frontrowcrew.com
#!/usr/bin/env bash
# git_venv_bash_prompt.sh
#
# This builds a bash prompt that is aware of git and virtualenv
#
# to make this work put this file somewhere on your machine
# then put the following line in your .bashrc
# source /path/to/git_venv_bash_prompt.sh
# bash colors