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/ruby1.8 -Ku | |
# -*- coding: utf-8 -*- | |
=begin | |
= run daemon in terminal | |
== usage | |
$ daemon-in-terminal.rb -- some-command [command arguments...] | |
* left click tray icon: toggle terminal | |
* right click tray icon: show menu |
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
memo.db |
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
A problem has been detected and windows has been shut down to prevent damage to your computer. | |
If this is the first time you've seen this Stop error screen, | |
restart your computer. If this screen appears again, follow | |
these steps: | |
Check for viruses on your computer. Remove any newly installed | |
hard drives or hard drive controllers. Check your hard drive | |
to make sure it is properly configured and terminated. | |
Run CHKDSK /F to check for hard drive corruption, and then |
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
/* based on http://www.faqs.org/faqs/Xt-FAQ/ 's visual.c */ | |
/* | |
* Some sample code to start up an application using something other | |
* than the default visual. | |
* | |
* To compile: | |
* cc -g visual.c -o visual -lXaw -lXmu -lXt -lXext -lX11 -lm | |
* | |
* To run: |
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/ruby -Kn | |
# http://www.microsoft.com/typography/otspec/ | |
# http://www.microsoft.com/typography/otspec/otff.htm | |
# http://www.microsoft.com/typography/otspec/post.htm | |
def dp(*args) | |
p(*args) if $DEBUG | |
end |
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
/* gcc -o fake_key fake_key.c -lXtst */ | |
/* example usage: | |
* { sleep 1; ./fake_key l s Return; } & | |
*/ | |
#include <X11/extensions/XTest.h> | |
int | |
main(int argc, char **argv) | |
{ |
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
;;; gravatar.el --- gravatar fetch/store functions | |
;; Copyright (C) 2008 Iwata | |
;; Author: Iwata <iratqq@gmail.com> | |
;; Keywords: faces, tools, extensions, mail | |
;; This file 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; either version 3, or (at your option) |
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/ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'nokogiri' | |
require 'logger' | |
require 'open-uri' | |
require 'pathname' | |
require 'set' |
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/sh | |
# munin plugin for usbrh | |
# see http://znz.s1.xrea.com/t/?date=20100528 | |
case "$1" in | |
autoconf) | |
if [ -r /proc/usbrh/0/status ]; then | |
echo yes | |
exit 0 | |
else |
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/ruby | |
s = <<EOF | |
<script type="text/javascript" src="jquery-1.4.2.js"></script> | |
<script type="text/javascript" src="linktorurema.js"></script> | |
EOF | |
ARGV.each do |fn| | |
c = open(fn, "rb"){|f|f.read} | |
c.sub!(/<\/head>/) do | |
s + $& |