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
find . -type f | grep -v '\.svn' | xargs grep "img/add.png" |
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
RewriteEngine on | |
RewriteLog /var/log/apache2/rewrite.log | |
RewriteLogLevel 5 | |
# Check whether the cookie role exists and whether the url does not contain PRV.shtml | |
# if so it executes the rewrite rule | |
RewriteCond %{HTTP_COOKIE} role=(.*) | |
RewriteCond %{REQUEST_URI} !^.*_PRV.* | |
RewriteRule /art/(.*).shtml /art/$1_PRV.shtml [NC,QSA] |
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
''' | |
Created on Nov 23, 2012 | |
@author: uolter | |
''' | |
from functools import wraps | |
from flask import request, current_app |
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/local/bin/python | |
from optparse import OptionParser | |
import os | |
PATH_SEPARATOR = os.sep | |
html_layout = "<!DOCTYPE html>\n" \ | |
"<html>\n" \ |
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 | |
APP_NAME="${1}" | |
if [ "$APP_NAME" = "" ]; then | |
echo "you must provide an application name!! " | |
echo "usage: <this script> <app name>" | |
exit | |
fi |
NewerOlder