Skip to content

Instantly share code, notes, and snippets.

var noun_type_url_or_arb = {
label: "url or text",
default: noun_type_url.default,
suggest: function nt_url_arb_sugg(text, html, callback, selectionIndices) {
var textLC = text.toLowerCase();
if (textLC.substring(0,4) == "url ") {
return noun_type_url.suggest(text.substring(4), text.substring(4), callback, selectionIndices);
} else {
@pao
pao / ubiquity_addons.js
Created January 22, 2010 01:51 — forked from folarb/x
CmdUtils.makeSearchCommand({
names: ["addons"],
icon: "https://addons.mozilla.org/favicon.ico",
author: {
name: "Patrick O'Leary",
email: "patrick.oleary@gmail.com"
},
description: "Searches Mozilla Add-ons for your words",
help: "Doesn't show experimental add-ons (like ubiquity) yet. Enter (part of) the name or the description of an add-on. The first 5 results will be displayed in the preview, hit return to go to the search page",
url: "https://addons.mozilla.org/en-US/firefox/search?q={QUERY}",
--- a/pci/hda/patch_nvhdmi.c 2010-03-05 17:05:06.000000000 -0600
+++ b/pci/hda/patch_nvhdmi_gt220.c 2010-03-06 14:27:18.000000000 -0600
@@ -1335,6 +1335,8 @@
.patch = patch_nvhdmi_8ch_89 },
{ .id = 0x10de000b, .name = "GT21x HDMI",
.patch = patch_nvhdmi_8ch_89 },
+ { .id = 0x10de000a, .name = "GT220 HDMI",
+ .patch = patch_nvhdmi_8ch_89 },
{ .id = 0x10de000d, .name = "GT240 HDMI",
.patch = patch_nvhdmi_8ch_89 },
# Insert this into a non-login .rc file (.bashrc is good)
export EDITOR="emacsclient_smartframe.sh"
alias edit="${EDITOR} -n"
package com.unsubsonic;
import java.security.MessageDigest;
import org.apache.commons.codec.binary.Hex;
public class Main {
public static void main(String[] a) {
String s = "emailyouwant@code.for";
try {
obj-m += mod1.o
@pao
pao / cm-ec2-init.sh
Created November 20, 2010 00:23
Scripts to get and manage CyanogenMOD on an Amazon EC2 instance
#!/bin/bash
# wget https://gist.github.com/raw/707468/cm-ec2-init.sh && . cm-ec2-init.sh
# Epic CM-on-EC2 Init Script for ami-4a0df923
# Preemptively agree to the JDK license
echo "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true" | sudo debconf-set-selections
# Get required packages
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo aptitude update
@pao
pao / home_dash_keymap.ahk
Created February 10, 2011 00:56
AutoHotkey script fancified to work with the Firefox Home Dash add-on.
#NoTrayIcon
; Original tab switch behavior for most applications
#IfWinNotActive ahk_class MozillaWindowClass
Browser_Back::^PgUp
Browser_Forward::^PgDn
#IfWinNotActive
; Firefox-specific behavior for Home Dash
#IfWinActive ahk_class MozillaWindowClass
@pao
pao / lightworks_process.vcf
Created June 7, 2011 11:49
Parallel convert to Lightworks
VirtualDub.Open(VirtualDub.params[0],"",0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,500,1,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.audio.EnableFilterGraph(0);
VirtualDub.video.SetInputFormat(0);
package com.olearyp.ponyboard;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebSettings;
import android.webkit.WebSettings.ZoomDensity;
import android.webkit.WebView;
public class PonySWFLauncherActivity extends Activity {