:183,200:retab!
:%s/\s\+$//
################################################################### | |
# | |
# freepbx.spec - used to generate freepbx rpm | |
# For more info: http://www.rpm.org/max-rpm/ch-rpm-basics.html | |
# | |
# This spec file uses default directories: | |
# /usr/src/redhat/SOURCES - orig source, patches, icons, etc. | |
# /usr/src/redhat/SPECS - spec files | |
# /usr/src/redhat/BUILD - sources unpacked & built here | |
# /usr/src/redhat/RPMS - binary package files |
class HttpError(Exception): | |
pass | |
class UnauthorizedError(HttpError): | |
code = 401 | |
def __str__(self): | |
return "You shall not pass!" |
diff --git a/install_amp.orig b/install_amp | |
index 492e19e..5d48e30 100755 | |
--- a/install_amp.orig | |
+++ b/install_amp | |
@@ -994,9 +994,9 @@ if($installamp_clean || $uninstallamp) { | |
// TODO: if we bootstrap, do this first before even trying. Also, is their a problem boostraping as user root??? | |
// | |
outn("Checking user.."); | |
-//$current_user=(isset($_ENV["USER"]) ? $_ENV["USER"] : exec('whoami',$output)); | |
-$euid = (posix_getpwuid(posix_geteuid())); |
rpm2cpio $1 | cpio -i --make-directories |
#!/usr/bin/env python | |
import functools | |
import warnings | |
warnings.simplefilter("once", category=(PendingDeprecationWarning, DeprecationWarning)) | |
def deprecate(msg, klass=PendingDeprecationWarning): | |
def decorator(func): | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): |
// sec | |
Math.round(new Date().getTime()/1000); |
application/vnd.oasis.opendocument.text | |
application/x-vnd.oasis.opendocument.text | |
application/vnd.oasis.opendocument.spreadsheet | |
application/x-vnd.oasis.opendocument.spreadsheet | |
application/vnd.oasis.opendocument.presentation | |
application/x-vnd.oasis.opendocument.presentation | |
application/msword | |
application/vnd.ms-excel | |
application/vnd.ms-excel.addin.macroEnabled.12 | |
application/vnd.ms-excel.sheet.binary.macroEnabled.12 |
import ConfigParser | |
from collections import OrderedDict | |
class NoSectionConfig(object): | |
section = "dummy" | |
def __init__(self, fp): | |
self.fp = fp | |
self.section_head = "[{0}]\n".format(self.section) | |
def readline(self): |