My Recent Pastes (20 and counting)

All Pasties (over 20 and counting)

Pages: 1

Below are summaries of the 15 most recent pasties by Kevin Evans.

August 22, 2007
5:42AM EDT
by Kevin Evans

1
2
3
4
5
#!/bin/bash

PROJDIR="/opt/www/django/projects/stock"
PIDFILE="/opt/www/django/tmp/stock.pid"
SOCKET="/opt/www/django/tmp/stock.sock"

July 20, 2007
9:53AM EDT
by Kevin Evans

1
2
3
4
#!/bin/bash
cd /Library/Application\ Support/TextMate/
export LC_CTYPE=en_US.UTF-8 
svn up

June 15, 2007
8:55AM EDT
by Kevin Evans

1
2
3
4
5
# This Python file uses the following encoding: utf-8
from django.db import models
from beans4.kweutils.picturetools import *
from django.conf import settings
import os

June 15, 2007
8:52AM EDT
by Kevin Evans

1
2
3
4
5
        try:
                                info = IPTCInfo(path)
                                caption = info.data['caption/abstract']
                        except:
                                caption = ' '

June 15, 2007
8:28AM EDT
by Kevin Evans

1
2
3
4
5
                                c = SolrConnection(host='localhost:8983', persistent=False)

                                c.add(id=p.id,filename_t=p.filename,caption_t= p.caption, event_t=p.event.picsUrl)

                                c.commit()

June 13, 2007
5:19AM EDT
by Kevin Evans

1
2
3
4
5
#!/usr/local/bin/python
import sys
import os

sys.path.append('/Users/kwe/Sites/django/django_projects')

June 13, 2007
4:51AM EDT
by Kevin Evans

1
2
3
4
5
def search_solr(request):
        from solr import SolrConnection
        from django.http import HttpResponse
        from django.template import RequestContext, loader

May 21, 2007
10:06AM EDT
by Kevin Evans

1
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"

January 07, 2007
5:51PM EDT
by Kevin Evans

1
2
export PATH=$PATH:/users/home/you/django_src/django/bin
export PYTHONPATH=$PYTHONPATH:/users/home/you:/users/home/you/site-settings:/home/you/django_src:/home/you/django-projects/mysite

January 07, 2007
5:46PM EDT
by Kevin Evans

1
2
3
4
5
#!/bin/sh

PROJDIR="/users/home/you/django-projects/mysite"
PIDFILE="/users/home/you/var/run/mysite.pid"
SOCKET="/users/home/you/var/django.socket"

January 07, 2007
5:43PM EDT
by Kevin Evans

1
2
3
4
5
$HTTP["host"] =~ "yourdomain\.co\.uk" {
  server.document-root = "/users/home/you/www.yourdomain.co.uk/"
  server.errorlog = "/users/home/you/var/log/lighttpd.error.log" 
  accesslog.filename = "/users/home/you/var/log/lighttpd.access.log" 
  fastcgi.server = (

January 07, 2007
5:42PM EDT
by Kevin Evans

1
2
3
4
5
$HTTP["host"] =~ "yourdomain\.co\.uk" {
  server.document-root = "/users/home/you/www.mpet45.co.uk/"
  server.errorlog = "/users/home/you/var/log/lighttpd.error.log" 
  accesslog.filename = "/users/home/you/var/log/lighttpd.access.log" 
  fastcgi.server = (

November 14, 2006
1:29PM EDT
by Kevin Evans

1
2
3
4
5
        g = Gallery.objects.filter(tags__slug=tag)
        hits = len(g)
        page = 0;
        
        if hits == 0:

October 31, 2006
5:42PM EDT
by Kevin Evans

1
2
3
4
5
                {% for gallery in latest_galleries %}
                {% if gallery.photo_set.all  %}
                <dl class="feature">
                        {% for p in gallery.photo_set.all %}
                                {% if forloop.first %}

August 15, 2006
5:43AM EDT
by Kevin Evans

1
2
3
4
5
        def save(self):
                import textile
                import markdown
                if self.format_type == 'T':
                        if self.body:

Next page