Skip to content

Instantly share code, notes, and snippets.

# run in a directory with ustream-offline.gif and ustream-live.gif
# this makes a symbolic link to the current status as just "ustream.gif"
ln -nfs ustream-`curl -s "http://api.ustream.tv/json/channel/wine-library-tv/getValueOf/status?key=$API_KEY&callback=s" | sed -e 's/s(\"\(.*\)\");/\1/g'`.gif ustream.gif
@ELLIOTTCABLE
ELLIOTTCABLE / Learning
Created July 24, 2008 03:32
EVE-Online skill paths
Learning 1 # We start by leap-frogging the basic Learning skill with the Intelligence and Memory skills (because those skills make training all other learning skills faster)
Analytical Mind 1
Instant Recall 1
Learning 2
Analytical Mind 2
Instant Recall 2
Learning 3
Analytical Mind 3
Instant Recall 3
Learning 4
11) Error:
test_spec {A User changing to a coupon plan} 004 [fails if the coupon is not in the db](A User changing to a coupon plan):
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.squeeze
/Users/chris/Projects/github/app/models/public_key.rb:32:in `clear_newlines'
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:34:in `send'
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:34:in `evaluate_method'
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:27:in `call'
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:11:in `run'
/Users/chris/Projects/github/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:10:in `each'
// ==UserScript==
// @name Wassr via list - count and design
// @namespace http://sl-library.soulfixin.net/
// @description Add vialist(count and design) to wassr site sidemenu-bar top
// @include http://wassr.jp/*
// ==/UserScript==
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
@trey
trey / Capfile
Created July 24, 2008 03:58
Capistrano, Ubuntu, Django
set :application, "yoursite_com"
set :user, "you"
set :scm_username, user
set :repository, "git@github.com:#{scm_username}/#{application}.git"
set :deploy_to, "/home/#{user}/public_html/#{application}"
set :scm, :git
set :django_location, "/home/#{user}/sources/django/trunk"
set :django_admin_media, "/django/contrib/admin/media"
set :domain, "example.com"
@os0x
os0x / dollarX.js
Created July 24, 2008 03:59
simple $X
// Simple $X
// Thx! $X from http://coderepos.org/share/browser/lang/javascript/userscripts/jautopagerize.user.js
// http://subtech.g.hatena.ne.jp/cho45/20071114/1195017746
function $X (exp, context) {
context || (context = document);
var exp = (context.ownerDocument || context).createExpression(exp, function (prefix) {
return (document.createNSResolver((context.ownerDocument == null
? context : context.ownerDocument).documentElement)
.lookupNamespaceURI(prefix) || document.documentElement.namespaceURI);
});
@trey
trey / django-vhost.conf
Created July 24, 2008 04:10
Basic VirtualHosts information for serving Django projects using Apache and mod_python.
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
# - If you want to serve media files from the same server, you need to
# define `DocumentRoot` and the extra `Location` for the static folder.
# - If you also want to have your media folder inside your Django project,
# a `public/` folder is probably not a bad idea.
DocumentRoot /home/username/public_html/project_name/public/
   _,,....,,_  _人人人人人人人人人人人人人人人_
-''":::::::::::::`''>   ゆっくりしていってね!!!   <
ヽ::::::::::::::::::::: ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄
 |::::::;ノ´ ̄\:::::::::::\_,. -‐ァ     __   _____   ______
 |::::ノ   ヽ、ヽr-r'"´  (.__    ,´ _,, '-´ ̄ ̄`-ゝ 、_ イ、
_,.!イ_  _,.ヘーァ'二ハ二ヽ、へ,_7   'r ´          ヽ、ン、
::::::rー''7コ-‐'"´    ;  ', `ヽ/`7 ,'==─-      -─==', i
r-'ァ'"´/  /! ハ  ハ  !  iヾ_ノ i イ iゝ、イ人レ/_ルヽイ i |
!イ´ ,' | /__,.!/ V 、!__ハ  ,' ,ゝ レリイi (ヒ_]     ヒ_ン ).| .|、i .||
`!  !/レi' (ヒ_]     ヒ_ン レ'i ノ   !Y!""  ,___,   "" 「 !ノ i |
# Example of getting all files in a directory listing using wget
# -r tell wget to recurse over the links on a page
# -np keeps wget from moving up to the parent
wget -r -np -np http://gnosis.cx/download/relax/
// ==UserScript==
// @name LDR_hide_mark_read
// @namespace http://github.com/monmon
// @description hide mark read.
// @include http://reader.livedoor.com/reader/
// ==/UserScript==
(function () {
var count = 0;