Skip to content

Instantly share code, notes, and snippets.

View denzuko's full-sized avatar
💬
twitter.com/denzuko

Dwight Spencer (denzuko@mastodon.social) denzuko

💬
twitter.com/denzuko
View GitHub Profile
/* fucking gist */
.gist .gist-syntax {
overflow-x: hidden !important;
}
.gist .gist-meta {
font-family: Verdana;
font-size: 8px !important;
}
@font-face {
font-family: "Watusi";
src: url("http://www.example.com/fonts/watusi.ttf");
format("truetype");
}
h1 {
font-family: "Watusi", sans-serif;
}
Thanks for the :+fav: on my <a href="http://fav.me/{{deviant.id}}" rel="me">{{deviant.title}}</a>.
;Found at http://community.omnicom.no/blogs/lea/archive/2008/10/17/prism-and-nsis-to-the-rescue.aspx
;NSIS Modern User Interface
;--------------------------------
; Start
!include "MUI2.nsh"
!define MUI_PRODUCT "Name of webapp"
!define MUI_VERSION ""
//Last.fm for Ubiquity
//This script takes your input and opens the url http://www.last.fm/listen/artist/{input}/similarartists
//Thus tuning in to the desired last.fm station
CmdUtils.CreateCommand({
name:"lastfm",
description: "Tunes into the desired last.fm station!",
icon:"http://firefm.sourceforge.net/favicon.ico",
takes: {artist: noun_arb_text},
preview: "Starts last.fm with the specified artist!",
<!--{{Snippet::HTML(XHTML::Strict,1.1)}}-->
<!--{{Var::pgTitle(Ubiquity Command::lastfm}}-->
<!--{{Var::cmdURI("http://www.rzuser.uni-heidelberg.de/~rkreuzer/firefmlastfm.js"}}-->
<!--{{Var::cmdName("lastfm.js"}}-->
<head>
<title>Ubiquity Command::lastfm</title>
<link rel="commands" href="{{Var::cmdURI}}" name="{{Var::cmdName}}" /><!--Magic right here-->
<!--{{Snippet::SEO}}-->
<script language="JavaScript" type="text/javascript"></script>
<!--{{Snippet::ExtranetJS}}-->
<!-- html header -->
<link rel="P3Pv1" href="/w3c/p3p.xml">
<!-- p3p.xml -->
<META xmlns="http://www.w3.org/2000/12/P3Pv1">
<POLICY-REFERENCES>
<POLICY-REF about="/w3c/policy.xml">
<INCLUDE>/*</INCLUDE>
</POLICY-REF>
# Notes from http://www.railsonwave.com/2007/2/21/tutorial-opensearch-with-rails-1-2-render-json
# html snippet
# <link rel="search" type="application/opensearchdescription+xml" title="Search a City" href="http://YOUR-ADDRESS/search.xml" />
# Codes SQL - http://www.railsonwave.com/assets/2007/2/20/city_codes.sql.zip
class SearchController < ApplicationController
@denzuko
denzuko / restmq.rb
Created October 8, 2010 13:56 — forked from gleicon/restmq.rb
# Sinatra minimalist RestMQ
# no COMET, just /q/ routes and queue logic
# the core of RestMQ is how it uses Redis' data types
%w(rubygems redis sinatra).each do |lib| require lib; end
QUEUESET = 'QUEUESET' # queue index
UUID_SUFFIX = ':UUID' # queue unique id
QUEUE_SUFFIX = ':queue' # suffix to identify each queue's LIST
@denzuko
denzuko / gist:674933
Created November 13, 2010 00:08 — forked from jpemberthy/gist:65878
Devnet Capistrano deployment recipe
load 'deploy' if respond_to?(:namespace)
set :application, do
Capistrano::CLI.ui.ask "Your application name: "
end
set :user, do
Capistrano::CLI.ui.ask "Username: "
end
set :group, "www-data"