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
""" | |
authen_msad | |
A port of Perl's Apache::AuthenMSAD | |
Takes advantage of Microsoft Active Directory allowing a user to be verified | |
with 'user@domain' instead of searching for the distinguished name. | |
To merge as seamlessly as possible with existing systems (i.e. SharePoint, | |
etc.) munge the incoming "domain\user" into "user@domain". |
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 application(environ, start_request): | |
common_name = environ.get('SSL_CLIENT_S_DN_CN', '') | |
if common_name != '': | |
last_first = common_name.split('=')[-1].split('.') | |
#username = '%s.%s' % (last_first[1],last_first[0]) # first.last | |
username = '%s%s' % (last_first[1][0],last_first[0]) # <first_initial>last | |
username = username.lower().replace(' ','-') | |
environ['REMOTE_USER'] = username |
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 sys | |
import os | |
# Run this script on a linux "home" folder | |
def find_authkeys(): | |
''' | |
Walk home folders looking for .ssh/authorized_keys files. | |
If you find them, run authkeys_to_pub |
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
2011-10-13 21:47:44.567 [2006] MainThread: [root] Uncaught top-level exception | |
Traceback (most recent call last): | |
File "/usr/bin/mount.s3ql", line 9, in <module> | |
load_entry_point('s3ql==1.4', 'console_scripts', 'mount.s3ql')() | |
File "/usr/lib/pymodules/python2.6/s3ql/cli/mount.py", line 84, in main | |
bucket_factory = get_bucket_factory(options) | |
File "/usr/lib/pymodules/python2.6/s3ql/backends/common.py", line 1144, in get_bucket_factory | |
bucket = bucket_class(bucket_name, backend_login, backend_pw) | |
File "/usr/lib/pymodules/python2.6/s3ql/backends/s3.py", line 57, in __init__ | |
self._init() |
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 | |
all2dos() | |
{ | |
find * -exec dos2unix {} \; | |
} | |
export -f all2dos | |
git filter-branch -f --tree-filter 'all2dos' HEAD ^master |
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
bash-3.2$ make | |
Making all in faq | |
make[1]: Nothing to be done for `all'. | |
Making all in icons | |
make[1]: Nothing to be done for `all'. | |
Making all in interpreter | |
./config-images.sh ../.. | |
../../doc/interpreter/images.mk is unchanged | |
../../run-octave -f -q -H ./mk_doc_cache.m doc-cache ../../scripts/DOCSTRINGS ../../src/DOCSTRINGS || { rm -f doc-cache; exit 1; } | |
dyld: Symbol not found: _amd_calloc |
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
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking whether make sets $(MAKE)... yes | |
checking how to create a ustar tar archive... gnutar | |
checking build system type... x86_64-apple-darwin10.8.0 |
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
win10/4.2.1/x86_64/libgfortranbegin.a -lgfortran -lm -framework Accelerate -pthread | |
rm -f DLD-FUNCTIONS/daspk.oct | |
la=daspk.la && \ | |
of=daspk.oct && \ | |
cd DLD-FUNCTIONS && \ | |
ln -s .libs/`/usr/local/bin/gsed -n -e "s/dlname='\([^']*\)'/\1/p" < $la` $of && \ | |
touch .daspk.oct-stamp | |
rm -f DLD-FUNCTIONS/dasrt.oct | |
la=dasrt.la && \ | |
of=dasrt.oct && \ |
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
la=tsearch.la && \ | |
of=tsearch.oct && \ | |
cd DLD-FUNCTIONS && \ | |
ln -s .libs/`/usr/local/bin/gsed -n -e "s/dlname='\([^']*\)'/\1/p" < $la` $of && \ | |
touch .tsearch.oct-stamp | |
la=typecast.la && \ | |
of=typecast.oct && \ | |
cd DLD-FUNCTIONS && \ | |
ln -s .libs/`/usr/local/bin/gsed -n -e "s/dlname='\([^']*\)'/\1/p" < $la` $of && \ | |
touch .typecast.oct-stamp |