Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
tell application "Safari" to set currentURL to URL of current tab of window 1 | |
tell application "Google Chrome" | |
activate | |
if (exists window 1) and (URL of active tab of window 1 is "chrome://newtab/") then | |
tell window 1 to set URL of active tab to currentURL | |
else | |
open location currentURL | |
end if | |
end tell |
--[[ | |
Copyright 2008, 2010, Oracle and/or its affiliates. All rights reserved. | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; version 2 of the License. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
Notes:
FreeBSD's tinycdb port is missing pkg-config data and targest to compile shared objects. For the time being I found it easier to compile and install tinycdb using the following flags:
make all shared piclib
make install install-sharedlib install-piclib
Grab the libcdb.pc file and place it in /usr/local/libdata/pkgconfig/libcdb.pc
egrep -v '^#|^$' <file> |
/* | |
This widget shows Recent Posts on your Tumblr blog. | |
Its dependency is jQuery. | |
Usage: | |
1) Add html: | |
<div id="recent-posts"></div> | |
2) Add code into the <head>: |
# In BASH shell | |
for i in {1..254}; do | |
ping -c 1 -W 1 10.1.1.$i | |
done | |
# In TCSH | |
foreach number ( `jot 254` ) | |
do ping -c 1 -W 1 10.1.1.$i |
INSERT into orig_route_cos_dest (orig_route_id, priority, class_dest, final) | |
SELECT gs.i, '1', 'bg:14', 't' f | |
FROM generate_series(417, 437) gs(i); |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/perl | |
# removes duplicates from the input file (first parameter on command line) and saves clean/dupe files to separate files | |
$file = $ARGV[0]; | |
open (FILE, $file); | |
open (CLEAN, ">clean.txt"); | |
open (DUPES, ">dupes.txt"); | |
#undef $/; |