This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Scott Rubin | |
email = [email protected] | |
signingkey = 3AED85D3D52E7843 | |
[core] | |
attributesfile = ~/.gitattributes | |
pager = less -r | |
[init] | |
defaultBranch = main | |
[color] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
umask 022 | |
PATH="$HOME/bin:$HOME/.poetry/bin:$HOME/.local/bin:$PATH" | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cut -d ' ' -f7 /var/log/apache2/access.log > urls.txt | |
$ siege -c<concurreny rate> -b -f urls.txt |
OlderNewer