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 | |
if [ "$1" == "-h" -o "$1" == "--help" ]; then | |
echo "Usage: rcsedit (filename|-h|--help)" | |
echo | |
echo "Checks a file out of RCS, opens it in your \$EDITOR, and checks it back in if the editor exits successfully." | fmt -$COLUMNS | |
exit 0 | |
fi |
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
relsqui@raven:~$ for i in `seq 10`; do ./generate_listing.py; done | |
2220|2725|2|northeast|good schools|nice view|vaults| | |
1120|2958|1|southeast|quiet neighborhood|non-smoking|two-car garage| | |
1445|1579|1|Clackamas|cats ok|close to parks|quiet neighborhood| | |
1070|1330|2|St. Helens|gated property|close to shopping|close to parks| | |
1300|2595|4|Lake Oswego|quiet neighborhood|close to shopping|pool| | |
1810|2119|4|Hillsboro|cats ok|close to campus|laundry on-site| | |
1080|857|4|north Portland|duplex|fireplace|close to campus| | |
1960|3952|1|Vancouver|cats ok|quiet neighborhood|pool| | |
1720|1499|0|southwest|laundry on-site|close to shopping|fireplace| |
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/sh | |
MAX_PROTECTED_UID=1024 | |
ps auxn | tail -n +2 | while read uid pid process; do | |
if [ "$uid" -gt "$MAX_PROTECTED_UID" ]; then | |
kill $pid | |
if ps $pid > /dev/null; then | |
kill -9 $pid | |
fi |
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
<IfModule mod_ssl.c> | |
<VirtualHost _default_:443> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www | |
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | |
# error, crit, alert, emerg. | |
# It is also possible to configure the loglevel for particular | |
# modules, e.g. |
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
2 5 0 | |
0 2 | |
2 1 | |
2 2 |
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
C:\home\relsqui\queermajors> ./pickmajor.py | |
polyamorous music | |
C:\home\relsqui\queermajors> ./pickmajor.py | |
androgynous spanish | |
C:\home\relsqui\queermajors> ./pickmajor.py | |
genderfluid pre-health | |
C:\home\relsqui\queermajors> ./pickmajor.py | |
intersex music composition | |
C:\home\relsqui\queermajors> ./pickmajor.py | |
gay chemistry |
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 | |
from urllib2 import urlopen | |
from json import loads | |
from xml.dom.minidom import parseString | |
from datetime import datetime, timedelta | |
from math import floor | |
TRIMET_API_KEY = "" # redacted for privacy |
NewerOlder