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
+--[ RSA 2048]----+ | |
| .+ | | |
| o.o | | |
| .o | | |
| . +. | | |
| =.So | | |
| o=o. | | |
| . = . | | |
| . o E.o | | |
| .o+o..oo | |
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
var inject = function(iterable, initial, func) { | |
var cur = initial | |
for(var i = 0;i < iterable.length;i++) { | |
cur = func(cur, iterable[i]) | |
} | |
return cur | |
} | |
var map = function(arr, func) { | |
return inject(arr, [], function(memo, val) { |
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
(function () { | |
dl=document.links; | |
if(document.location.host!="docs.google.com"){ | |
for(i=0;i<dl.length;++i){ | |
if(dl[i].host!="docs.google.com"){ | |
var ext = dl[i].href.substr(-4); | |
if(ext==".pdf"||ext==".ppt"){ | |
dl[i].href="http://docs.google.com/viewer?url="+dl[i].href; | |
} |
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
/* widen out the whole page (i keep my browser at around 1024) */ | |
body { | |
padding: 0 2em 0 4em !important; | |
} | |
.subpage, #content, .status-body { | |
width: auto !important; | |
} | |
/* compensate for my __all__.css */ |
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
$ fortune -m 'exclamation points' | |
(computers) | |
% | |
Welcome to UNIX! Enjoy your session! Have a great time! Note the | |
use of exclamation points! They are a very effective method for | |
demonstrating excitement, and can also spice up an otherwise plain-looking | |
sentence! However, there are drawbacks! Too much unnecessary exclaiming | |
can lead to a reduction in the effect that an exclamation point has on | |
the reader! For example, the sentence |
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
for i in $(seq 17); do curl -s -n "http://twitter.com/statuses/user_timeline.xml?count=200&page=$i" | xmlstarlet sel -t -m //status -v id -n; done | grep . | while read id; do curl -s -n -d "" http://twitter.com/statuses/destroy/$id.xml; done |
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 | |
log="$1" | |
keep="${2:-2}" | |
if command -v savelog >/dev/null 2>&1; then | |
savelog -l -c "$keep" "$log" | |
else | |
echo "Error: savelog not found. Please check that OS is supported." | |
echo "Ignoring log_keep, rotating 2 files. Total log size unknown." |
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
Usage: check_jmx -U url -O object_name -A attribute [-K compound_key] [-I attribute_info] [-J attribute_info_key] -w warn_limit -c crit_limit [-v[vvv]] [-help] | |
, where options are: | |
-help | |
Prints this page | |
-U | |
JMX URL, for example: "service:jmx:rmi:///jndi/rmi://localhost:1616/jmxrmi" |
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
holiday:sa-docs.wiki[master] $ git up | |
Fetching originremote: Counting objects: 25, done. | |
remote: Compressing objects: 100% (21/21), done. | |
remote: Total 21 (delta 14), reused 0 (delta 0) | |
Unpacking objects: 100% (21/21), done. | |
From github.com:sonian/sa-docs.wiki | |
b6922ce..a77bcbb master -> origin/master | |
master up to date | |
holiday:sa-docs.wiki[master] $ git up | |
Fetching origin |
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
STDOUT: (in /var/www/website/releases/47cc86c5c896c48e0a053fb24b61878561ccfba0) | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environmentSTDERR: rake aborted! | |
uninitialized constant Sonian::Archive::Common | |
/var/www/website/releases/47cc86c5c896c48e0a053fb24b61878561ccfba0/vendor/rails/activesupport/lib/active_support/dependencies.rb:466:in `load_missing_constant' | |
/var/www/website/releases/47cc86c5c896c48e0a053fb24b61878561ccfba0/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing' | |
/var/www/website/releases/47cc86c5c896c48e0a053fb24b61878561ccfba0/config/environments/mindshift.rb:42:in `load_environment' | |
/var/www/website/releases/47cc86c5c896c48e0a053fb24b61878561ccfba0/config/../vendor/rails/railties/lib/initializer.rb:386:in `load_environment' | |
/var/www/website/releases/47cc86c5c896c48e0a053fb24b61878561ccfba0/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' |
OlderNewer