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
| <VirtualHost *:80 *:81> | |
| ServerName preview.addons.mozilla.org | |
| SetEnv HTTPS on | |
| DocumentRoot /data/www/addons.mozilla.org-preview/site/app/webroot | |
| <Directory /data/www/addons.mozilla.org-preview> | |
| AllowOverride All | |
| </Directory> | |
| <Directory /data/www/addons.mozilla.org-remora/site/app/webroot/ebay/ebay-extension> |
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 os | |
| import glob | |
| import re | |
| import shutil | |
| import stat | |
| from datetime import datetime | |
| from time import strptime |
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 -w | |
| use Net::LDAP; | |
| use strict; | |
| my $mesg; | |
| my $ldap = Net::LDAP->new( 'pm-ns' ); | |
| my @os=('com', 'net', 'org'); | |
| foreach my $o (@os) { |
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 | |
| function create_lock { | |
| LOCK_NAME=$1 | |
| if [[ -e "$LOCK_NAME" ]] | |
| then | |
| OLDPID=`cat $LOCK_NAME` | |
| if ps p $OLDPID > /dev/null | |
| then | |
| return 1 |
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
| VHOST=foo.com | |
| LOGDIR=/data/stats/logs/im-log01/foo.com | |
| for i in $(ls access_2009-11-1{0,1,2,3,4,5,6,7}*gz) | |
| do | |
| zgrep -E "^[0-9]+.[0-9]+.[0-9]+.[0-9]+ $VHOST" $i > $LOGDIR/${i%%.gz} | |
| done |
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 sys | |
| import csv | |
| import funnelcake_lib | |
| data_dict = funnelcake_lib.parse_mirror_log(('200', '206'), ('linux-i686', 'win32', 'mac'), ('en-us', )) | |
| def run_report(data_key, extra_headers, filename): | |
| global data_dict |
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
| Name: mod_wsgi | |
| Version: 3.1 | |
| Release: 2%{?dist} | |
| Summary: A WSGI interface for Python web applications in Apache | |
| Group: System Environment/Libraries | |
| License: ASL 2.0 | |
| URL: http://modwsgi.org | |
| Source0: http://modwsgi.googlecode.com/files/%{name}-%{version}.tar.gz | |
| Source1: wsgi.conf |
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
| if( http.getcookie( "locale-only" ) != "" ){ | |
| http.cache.setkey(http.getcookie( "locale-only" )); | |
| } |
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
| -module(combin). | |
| -export([factorial/1, combination/2, prob15/1]). | |
| factorial(N) -> factorial(N, 1). | |
| factorial(1, Acc) -> Acc * 1; | |
| factorial(N, Acc) -> factorial(N - 1, N * Acc). | |
| combination(N,K) -> factorial(N) div (factorial(K) * factorial(N - K)). |
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
| prob15_bf(0,_) -> 1; | |
| prob15_bf(_,0) -> 1; | |
| prob15_bf(X,Y) -> prob15_bf(X-1,Y) + prob15_bf(X, Y-1). |
OlderNewer