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 python3 | |
import argparse | |
import logging | |
import math | |
import random | |
import string | |
import typing | |
DEFAULT_DICT_FILE = "/usr/share/dict/words" |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Carp; | |
use Getopt::Long; | |
use Math::Random::Secure qw(rand irand); |
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
[Thu Sep 19 11:40:32 2013] startup.pl: Carp: /usr/lib/perl5/5.8.8/Carp.pm at /usr/local/tusk/current/conf/startup.pl line 11, <DATA> line 225. | |
[Thu Sep 19 11:40:32 2013] startup.pl: Carp::Heavy: /usr/local/tusk/current/local/lib/perl5/Carp/Heavy.pm at /usr/local/tusk/current/conf/startup.pl line 12, <DATA> line 225. | |
[Thu Sep 19 11:40:32 2013] startup.pl: INC: ../lib:../local/lib/perl5:/usr/local/tusk/current/lib:/usr/local/tusk/current/local/lib/perl5/x86_64-linux-thread-multi:/usr/local/tusk/current/local/lib/perl5:/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.8:/usr/lib/perl5/site_perl:/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.8:/usr/lib/perl5/vendor_perl:/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi:/usr/lib/perl5/5.8.8:.:/etc/httpd at /usr/local/tusk/current/conf/startup.pl line 13, <DATA> line 225. |
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/perl | |
# Copyright 2013 Tufts University | |
# | |
# Licensed under the Educational Community License, Version 1.0 (the | |
# "License"); you may not use this file except in compliance with the | |
# License. You may obtain a copy of the License at | |
# | |
# http://www.opensource.org/licenses/ecl1.php | |
# |
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 | |
# Currently works for Mac OS X 10.8: Mountain Lion | |
set -e | |
venvbin="`which virtualenv`" | |
if [ "$venvbin" = "" ] ; then | |
echo "Aborting (cannot find virtualenv)" >&2 | |
exit 1; |
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
; generated by /sbin/dhclient-script | |
search hsd1.wa.comcast.net. | |
nameserver 10.0.1.1 |
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
# depends on homebrew | |
# As of 2013-04-14 | |
brew pull https://github.com/mxcl/homebrew/pull/18511 | |
brew install terminal-notifier |
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
#120923 19:50:08 server id 1 end_log_pos 544442402 Query thread_id=864430 exec_time=0 error_code=0 | |
SET TIMESTAMP=1348444208/*!*/; | |
INSERT INTO content (display) VALUES ('0') | |
/*!*/; | |
# at 544442402 |
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 | |
# Replace erroneous <xsl:comment> license tags with xml <!--> comments | |
bak="$HOME/tmp/xslbak" | |
mkdir -p "$bak" | |
find /usr/local/tusk/tusk-4_0_0 -name '*.xsl' -print0 | while IFS='' read -r -d '' fold ; do | |
lic=`awk '/<xsl:comment>/,/<\\/xsl:comment>/' "$fold" | grep 'licenses/ecl1\.php'` | |
if [ "" != "$lic" ] ; then | |
fdir="${fold%/*}" |
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 mytestxml | |
"<graphml> | |
<graph edgedefault='directed'> | |
<node id='n1' /> | |
<node id='n2' /> | |
<node id='n3' /> | |
<node id='n4' /> | |
<edge id='e1' source='n1' target='n3' /> | |
<edge id='e2' source='n2' target='n3' /> | |
</graph> |