This file contains hidden or 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
<h2 class="sidebar-title">latest del.icio.us postings</h2> | |
<div id="delicious-posts"></div> | |
<script type="text/javascript" src="http://del.icio.us/feeds/json/iandexter?count=15"></script> | |
<script type="text/javascript"> | |
/** | |
* Delicious linkroll - Modified code from del.icio.us link roller. | |
* Ian Dexter R. Marquez, 2006 - http://delicious.com/iandexter | |
* Revision: Added HTML escaping and URI encoding; sorted recent bookmarks alphabetically | |
*/ | |
document.write('<style type="text/css">#delicious-posts ul{list-style-type:none} #delicious-posts span{font-size:smaller;margin:0;}</style>'); |
This file contains hidden or 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
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>Wolfram|Alpha</ShortName> | |
<Description>Computational Knowledge Engine</Description> | |
<InputEncoding>UTF-8</InputEncoding> | |
<Image width="16" height="16" type="image/x-icon">http://www.wolframalpha.com/favicon_calculate.ico</Image> | |
<Url type="text/html" method="GET" template="http://www.wolframalpha.com/input/"> | |
<Param name="i" value="{searchTerms}"/> | |
</Url> | |
<moz:SearchForm>http://www.wolframalpha.com/</moz:SearchForm> |
This file contains hidden or 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
function loadJSON(url) { | |
var headElt = document.getElementsByTagName('head')[0]; | |
var jsonScript = document.createElement('script'); | |
jsonScript.type = "text/javascript"; | |
jsonScript.src = url; | |
headElt.appendChild(jsonScript); | |
} | |
var flickAPIkey = "your API key goes here"; | |
loadJSON("http://api.flickr.com/services/rest/?method=flickr.interestingness.getList&api_key=" + flickrAPIkey + "&per_page=100&page=1&format=json"); | |
function jsonFlickrApi(obj) { |
This file contains hidden or 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 -w | |
use strict; | |
use File::Find; | |
use Digest::MD5; | |
my %files; | |
find(\&check_file, $ARGV[0] || "."); |
This file contains hidden or 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 | |
usage() { | |
echo "Usage: `basename $0` [length]" | |
} | |
[ $# -gt 1 ] && usage && exit 65 | |
[ $# -eq 0 ] && len=8 || len=$1 |
This file contains hidden or 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 | |
# Search for a running process. | |
EXPECTED_ARGS=1 | |
usage() { | |
echo "Usage: `basename $0` process" | |
} | |
[ $# -ne $EXPECTED_ARGS ] && usage && exit 65 | |
proc_str=$1 |
This file contains hidden or 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
LOG_FILE="/var/log/$(basename $0 .sh).log" | |
logMessage() { | |
COMMAND="$*" | |
sh -c "${COMMAND} | awk '{ | |
\"echo \\\"$(date +%b\ %e\ %T) $(hostname) $(basename $0)[$$]:\\\"\"|getline timestamp; | |
close(\"echo \\\"$(date +%b\ %e\ %T) $(hostname) $(basename $0)[$$]:\\\"\"); | |
printf(\"%s %s\n\", timestamp, \$0) | |
}'" | |
} |
This file contains hidden or 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
<OpenSearchDescription xmlns="http://www.mozilla.org/2006/browser/search/" | |
xmlns:os="http://a9.com/-/spec/opensearch/1.1/"> | |
<ShortName>Google SSL</ShortName> | |
<Description>Google SSL</Description> | |
<InputEncoding>UTF-8</InputEncoding> | |
<Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADRUlEQVQ4jSXT60/VdQDH8c/vd7AlI4EHtjW0WCs1i7U2i8u54GWxYDVtpkabumX5JLs86oLYEgRDQjAIBbsYayTmCjDQMwsrtcgxUBdWkNyyJDkCB9jRw+/8vu8e8OD9D7y2tyTJiUFX/wipWxuJe/pzSo9fwiVGNDzB2ewsei0xa9u4Eq5sIpYYl5AkxRwwwLriU2hTEHtbFwte/I6//p0CEyPyWy/XE+JxJYzlwbVExBIhxTFkCwE4jsMDO9rRtk60vQfl/0jxN5fBgInBUE4OUVnEPCJqWUzKw5glBiVkXCAG3sIO7M0/Y2/vxH7hHJv2dwMOAFfXr2NGcWAJVx6mLfGPRJ/tQeACLkVNl9H6IHEvXcB+/nvyqzpxMXAbfnloGT/dcwctS5JpT02mK2kew7botYT6h29igNFwhGU72tBzp1mwOUiw5xoGqGs5zOI3UtFH6Xhq/ajay/yyJ8h6OY19DyeipVs+43jHFXANE1NRjpwZoG/kJi6GklN1qOgRPPVePIeyUG06qs3EOpCFqrOx9q5GCzceJWntx6x+vZE9DR1zajic6fsV+6370OHHUV06qk/HqvFh1fhQZQZWuR9rbwAtzW9g0YYvuDPvU5KfOsTgaBhjDMOhayypfxbVpGEfzMQ+6EU1GdgferEq/dj |
This file contains hidden or 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
# Default sessions | |
screen -t HOME 4 | |
# Scrolling buffer | |
defscrollback 99999 | |
altscreen on | |
# PuTTY fix | |
term xterm | |
termcapinfo xterm ti@:te@ |
This file contains hidden or 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
# Gmail settings | |
set imap_user = "[email protected]" | |
set imap_pass = "password" | |
set smtp_url = "smtp://[email protected]:587/" | |
set smtp_pass = "password" | |
set from = "[email protected]" | |
set realname = "User Name" | |
set folder = "imaps://imap.gmail.com:993" | |
set spoolfile = "+INBOX" | |
set postponed="+[Gmail]/Drafts" |
OlderNewer