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
| from django.contrib.auth.admin import UserAdmin, GroupAdmin | |
| from django.contrib.auth.models import Permission, Group | |
| from django.utils.translation import ugettext, ugettext_lazy as _ | |
| from django.forms import ModelForm | |
| from django.db.models import Q | |
| # editando el users admin. |
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
| from django.contrib.auth.backends import RemoteUserBackend, ModelBackend | |
| from django.contrib.auth.models import User | |
| from mosketeros.settings import LDAP_SERVER,LDAP_BIND,LDAP_SEARCH | |
| import ldap | |
| class DjangoAuth(ModelBackend): | |
| create_unknown_user = False | |
| supports_anonymous_user = False | |
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 | |
| ############################################ | |
| # touchspeed_createtable.py v0.2 2009/10/9 # | |
| ############################################ | |
| # Lookup table generator for Thomson SpeedTouch router WEP/WPA keys, for use with TouchSpeedCalc. | |
| # | |
| # For every router serial number, it stores only the last 3 bytes of the hexified-sha1-hash (the SSID-part). | |
| # You can search the resulting dat file for these 3 bytes, make sure that ( position % 3 = 0 ). | |
| # | |
| # (position / 3) can be calculated back to the serial number using TouchSpeedCalc, |
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
| (working version) Mon Feb 22 08:14:31 2010 (no log message) | |
| PackageMetadata.py: changed | |
| Index: PackageMetadata.py | |
| ==================================================================== | |
| contents(size sha1) | |
| inode(mtime owner group) | |
| --- PackageMetadata.py /foresight.rpath.org@fl:2-devel/2.0.0-2 | |
| +++ PackageMetadata.py @NEW@ | |
| @@ -31,3 +31,150 @@ |
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 by Brad Sims <[email protected]> 25/06/2004 | |
| ### I got tired of .screenrc's on the internet being so | |
| ### poorly commented... So being a good GNUbie I took matters | |
| ### into my own hands; and wrote this dotfile. | |
| # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # |
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/env python | |
| # throxy.py - HTTP proxy to simulate dial-up access | |
| # Copyright (c) 2007 Johann C. Rocholl <[email protected]> | |
| # | |
| # 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, |
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/env python | |
| # Try to determine how much RAM is currently being used per program. | |
| # Note per _program_, not per process. So for example this script | |
| # will report RAM used by all httpd process together. In detail it reports: | |
| # sum(private RAM for program processes) + sum(Shared RAM for program processes) | |
| # The shared RAM is problematic to calculate, and this script automatically | |
| # selects the most accurate method available for your kernel. | |
| # Author: [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
| #!/usr/bin/env python | |
| # -*- mode:Python; tab-width: 4 -*- | |
| from __future__ import generators | |
| """Simulate an SMTP server for debugging purposes. | |
| This program is free software; you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published | |
| by the Free Software Foundation; either version 2 of the License, | |
| or (at your option) any later version. |
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
| config!version = 000099031 | |
| server!bind!1!port = 80 | |
| server!chunked_encoding = 1 | |
| server!iocache = 1 | |
| server!keepalive = 1 | |
| server!keepalive_max_requests = 500 | |
| server!panic_action = /usr/bin/cherokee-panic | |
| server!pid_file = /var/run/cherokee.pid | |
| server!server_tokens = full | |
| server!thread_number = 3 |
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
| In [1]: file = """ | |
| ...: package_name = openssl | |
| ...: | |
| ...: summary = A general purpose cryptography library with TLS implementation # one line | |
| ...: | |
| ...: description = \"\"\"The OpenSSL toolkit provides support for secure communications between | |
| ...: machines. OpenSSL includes a certificate management tool and shared | |
| ...: libraries which provide various cryptographic algorithms and | |
| ...: protocols.\"\"\" # multiline | |
| ...: |