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/bash | |
## was having issues with sendmail blowing out the cpu | |
## renice all processes run by the smmsp user | |
## default priority is 0 | |
renice +5 -u smmsp |
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
def moveField(name, direction=None, pos=None, after=None, before=None): | |
"""Move a field | |
name: | |
name of the field | |
direction: | |
Move a field inside its schemata to the left (-1) or to the right (+1) | |
pos: | |
Moves a field to a position in the whole schema. pos is either a number | |
or 'top' or 'bottom' |
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
<demographics> | |
<id>demo.2010-01-14.6557744442</id> | |
<title>Demographics</title> | |
<subject> | |
</subject> | |
<description> | |
</description> | |
<contributors> | |
</contributors> | |
<creators> |
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
security.declareProtected(manage_users, 'getGroupedUsers') | |
def getGroupedUsers(self, groups=None): | |
""" Return all those users that are in a group """ | |
all_dns = {} | |
users = [] | |
member_attrs = list(Set(GROUP_MEMBER_MAP.values())) | |
if groups is None: | |
groups = self.getGroups() |
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/python | |
import os | |
import atexit | |
import signal | |
import sys | |
from xxx.services.utilities import write_pid, exit_function, handle_sigterm | |
from twisted.web import xmlrpc, server, resource | |
from twisted.internet import defer |
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/python | |
import os | |
import atexit | |
import signal | |
import sys | |
from xxx.services.utilities import write_pid, exit_function, handle_sigterm | |
from twisted.web import xmlrpc, server, resource | |
from twisted.internet import defer |
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
RewriteEngine on | |
RewriteMap lowercase int:tolower | |
RewriteRule ^ - [E=SERVER_NAME:${lowercase:%{SERVER_NAME}}] | |
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] | |
RewriteRule ^(.*) https://%1$1 [R=301,L] | |
ProxyPassInterpolateEnv On | |
ProxyRequests Off |
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
... | |
$custom_fragment_proxy_pass = ' | |
RewriteEngine on | |
RewriteMap lowercase int:tolower | |
RewriteRule ^ - [E=SERVER_NAME:${lowercase:%{SERVER_NAME}}] | |
ProxyPassInterpolateEnv On | |
BrowserMatch "MSIE [2-6]" \ | |
nokeepalive ssl-unclean-shutdown \ | |
downgrade-1.0 force-response-1.0 | |
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown' |
NewerOlder