Skip to content

Instantly share code, notes, and snippets.

+--[ RSA 2048]----+
| .+ |
| o.o |
| .o |
| . +. |
| =.So |
| o=o. |
| . = . |
| . o E.o |
| .o+o..oo |
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) {
(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;
}
/* 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 */
$ 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
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
#!/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."
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"
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
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'