Skip to content

Instantly share code, notes, and snippets.

View fearphage's full-sized avatar
⌨️
Cache rules everything around me.

Phred Lane fearphage

⌨️
Cache rules everything around me.
View GitHub Profile
@fearphage
fearphage / diff_for_gist.user.js
Created November 6, 2009 10:06 — forked from os0x/diff_for_gist.user.js
Diff for gist.github for Opera
// ==UserScript==
// @name Diff for gists for Opera
// @include http://gist.github.com/*
// @include https://gist.github.com/*
// @ujs:modified 2010-09-10
// @ujs:download http://gist.github.com/raw/227881/53ad5dff46b825ea3facd77532b57da2ab445425/diff_for_gist.user.js
// ==/UserScript==
(function(window, $, rev) {
if (!$ || ((rev = $('#revisions li')).length < 2)) return;
@fearphage
fearphage / gist_logs.user.js
Created November 8, 2009 02:47 — forked from satyr/gist_logs.user.js
Shows commit logs on gist for Opera
// ==UserScript==
// @name gist logs
// @namespace http://d.hatena.ne.jp/murky-satyr
// @description Shows commit logs on Gist in Opera
// @include http://gist.github.com/*
// @include https://gist.github.com/*
// ==/UserScript==
(function($, reHref, reLines) {
$ && $('.id').each(function(i, me) {
// ==UserScript==
// @name Blogger Hatena Syntax
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Hatena syntax and code highlight for blogger
// @include http://www.blogger.com/post-create.g*
// @include http://www.blogger.com/post-edit.g*
// ==/UserScript==
//
// Copyright (C) 2010 edvakf
//
@isaacs
isaacs / comma-first-var.js
Created April 6, 2010 19:24
A better coding convention for lists and object literals in JavaScript
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",
// ==UserScript==
// @name Blogger Hatena Syntax
// @namespace http://d.hatena.ne.jp/edvakf/
// @description Hatena syntax and code highlight for blogger
// @include http://www.blogger.com/post-create.g*
// @include http://www.blogger.com/post-edit.g*
// ==/UserScript==
//
// Copyright (C) 2010 edvakf
//
!function() {
var doc = document,
htm = doc.documentElement,
lct = null, // last click target
nearest = function(elm, tag) {
while (elm && elm.nodeName != tag) {
elm = elm.parentNode;
}
return elm;
};
<!DOCTYPE HTML>
<html>
<head>
<script src="sharedworker.multi-connect.renderer.js"></script>
</head>
<body>
<pre id="shared-worker-log"></pre>
</body>
</html>
// ==UserScript==
// @name searchalltabs.js
// @author edvakf (and thank you amachang for escapeXPathExpr)
// @namespace http://d.hatena.ne.jp/edvakf/
// @description An experimental UserJS to search for word from all tabs and move to the tab
// @license The MIT License
// @version 0.3
// @include *
// @released 2010-06-08
// @updated 2010-06-08
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');
#!/usr/bin/env bash
# where do you want couchdb and its deps to be installed
COUCHDB_PREFIX="/opt/couchdb-1.0.1"
# Let's determine the correct arcitecture and choose the installer
if [ "`uname -m`" = "x86_64" ]; then
echo "Using 64-bit installer"
COUCHDB_INSTALLER_DOC_ID="26f246a0fe23d6a53d5326713308f43c"
COUCHDB_INSTALLER_BIN="install-couchdb-1.0.1_rel1-linux-x64.bin"