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
"""\ | |
Copies doctest.py from the stdlib to the current directory, | |
and modifies it so that | |
a) It will load "*.so" files as modules just like a "*.py" file | |
b) It recognizes functions defined in "*.so" files | |
c) Remove the configuration extension from the "*.so" files (on Python3) | |
With these enhancements, doctest can be run on a C python extension module. | |
""" |
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/env python | |
from __future__ import print_function, division | |
import sys | |
import re | |
from subprocess import Popen, PIPE | |
from collections import defaultdict | |
from operator import itemgetter | |
###################################################### |
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 | |
############################################################################ | |
# DON'T PUT ANY CUSTOMIZATIONS HERE (THEY MAY GET OVERWRITTEN BY THE SYSTEM) | |
############################################################################ | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then # Fedora | |
. /etc/bashrc | |
elif [ -f /etc/bash.bashrc ]; then # Debian |
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 | |
# Global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Change the window title of X terminals (similar to Fedora's) | |
export PS1="[\u@\h \W]\\$ " | |
export PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"' |