Discover gists
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
# 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 |
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
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 |
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
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' |
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
// ==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 |
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
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" |
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
// 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); | |
}); |
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
<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/ |
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
_,,....,,_ _人人人人人人人人人人人人人人人_ | |
-''":::::::::::::`''> ゆっくりしていってね!!! < | |
ヽ::::::::::::::::::::: ̄^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 | |
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
# 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/ |
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
// ==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; |