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/perl | |
# Author: Bart Trojanowski <[email protected]> | |
# Website: http://www.jukie.net/~bart/blog/urxvt-url-yank | |
# License: GPLv2 | |
use strict; | |
use warnings; | |
my $url_matcher = qr{( | |
(?:https?://|ftp://|news://|mailto:|spotify:|file://|www\.)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~#]+ |
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
#! perl -w | |
# http://triplefusion.net/system/macosx-clipboard | |
# ---------------------------------------------------------------------- | |
# File: macosx-clipboard | |
# ---------------------------------------------------------------------- | |
# | |
# All portions of code are copyright by their respective author/s. | |
# Copyright (c) 2006 Samuel Ljungkvist <[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
;; -*- emacs-lisp -*- | |
(when (load "flymake" t) | |
(defun flymake-pyflakes-init () | |
(let* ((temp-file (flymake-init-create-temp-buffer-copy | |
'flymake-create-temp-inplace)) | |
(local-file (file-relative-name | |
temp-file | |
(file-name-directory buffer-file-name)))) | |
(list "/Users/jyrki/.emacs-lib/pychecker.sh" (list local-file)))) | |
(add-to-list 'flymake-allowed-file-name-masks |
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/python | |
import json | |
import urllib | |
import sys | |
def fetch_pages(): | |
i = 1 | |
while True: | |
result = urllib.urlopen('http://search.twitter.com/search.json?%s' % ( |
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
import trombi | |
from tornado.ioloop import IOLoop | |
ioloop = IOLoop.instance() | |
f = open('onemb.zero') | |
db = trombi.from_uri('http://localhost:5984/test') | |
def doc_created(doc): |
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
import random | |
from datetime import datetime | |
import struct | |
import binascii | |
class SequentialID(object): | |
def __init__(self): | |
self.rng = random.Random() | |
self.reinit() |
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/python | |
from r12950.app1.models import A | |
print 'foobar' |
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
start on runlevel 2 | |
start on runlevel 3 | |
start on runlevel 4 | |
start on runlevel 5 | |
stop on shutdown | |
exec /usr/bin/sudo -u www-data \ | |
PHP_FCGI_CHILDREN=5 \ | |
PHP_FCGI_MAX_REQUESTS=125 \ | |
/usr/bin/php-cgi -q -b 127.0.0.1:9000 |
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
# Copyright (c) 2009 Inoi oy | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without | |
# restriction, including without limitation the rights to use, | |
# copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the | |
# Software is furnished to do so, subject to the following | |
# conditions: |