This file contains 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
SELECT p.value AS __color__, | |
id AS ticket, summary, component, version, t.type AS type, | |
owner, status, | |
time AS created, | |
changetime AS _changetime, description AS _description, | |
reporter AS _reporter | |
FROM ticket t, enum p | |
WHERE status <> 'closed' | |
AND unix_timestamp(date_sub(now(), interval 10 day)) < changetime | |
AND p.name = t.priority AND p.type = 'priority' |
This file contains 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 os | |
import xmlrpclib | |
proxy = xmlrpclib.ServerProxy("https://lists.mydomain.org/mailman/RPC2") | |
def nicepass(alpha=6,numeric=2): | |
""" | |
returns a human-readble password (say rol86din instead of | |
a difficult to remember K8Yn9muL ) | |
""" |
This file contains 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/sh | |
#retrain_bogofilter.sh | |
#Version 2.0 | |
#[email protected] - free for all | |
#kaerast at qvox - modifications, free for all | |
#Prerequisites: | |
# - formail | |
# - bogofilter |
This file contains 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 | |
$couch_dsn = "http://localhost:5984/"; | |
$couch_db = "inout"; | |
// libraries come from http://github.com/dready92/PHP-on-Couch | |
require_once "../lib/couch.php"; | |
require_once "../lib/couchClient.php"; | |
require_once "../lib/couchDocument.php"; | |
$client = new couchClient($couch_dsn,$couch_db); |
This file contains 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 | |
$couch_dsn = "http://localhost:5984/"; | |
$couch_db = "inout"; | |
require_once "../lib/couch.php"; | |
require_once "../lib/couchClient.php"; | |
require_once "../lib/couchDocument.php"; | |
$client = new couchClient($couch_dsn,$couch_db); | |
This file contains 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
javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.facebook.com/search/?ref=ffs&q=',l=d.location,e=encodeURIComponent,p=e(s)+'&o=2048&init=ffs',u=f+p;{a%20=function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0); |
This file contains 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
<html> | |
<body> | |
<ul> | |
<?php | |
$myhash = $_GET['hash']; | |
$hash = array(); | |
switch ( strlen($myhash)) { | |
case(0): | |
$hash[] = "No hash passed"; | |
break; |
This file contains 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/ruby1.9.1 | |
require "rubygems" | |
require "test/unit" | |
require "watir" | |
$site = ARGV[0] | |
puts $site | |
if ($site[-1,1] != "/") | |
puts "url must end in a slash" | |
exit | |
end |
This file contains 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
require 'rubygems' | |
require 'watir' | |
require 'spec' | |
Watir::Browser.default = 'firefox' | |
describe "test Drupal frontend" do | |
before(:each) do | |
@browser ||= Watir::Browser.new | |
@domain ||= 'example.org' |
This file contains 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
require 'rubygems' | |
require 'webrat' | |
require 'spec/test/unit' | |
include Webrat::Methods | |
include Webrat::Matchers | |
Webrat.configure do |config| | |
config.mode = :mechanize | |
end |
OlderNewer