Skip to content

Instantly share code, notes, and snippets.

@DiGi
DiGi / sp_help_revlogin.sql
Last active December 18, 2015 14:19
sp_help_revlogin for SQL Server 2008
-- Version from http://support.microsoft.com/kb/918992/en-us
USE master
GO
IF OBJECT_ID ('sp_hexadecimal') IS NOT NULL
DROP PROCEDURE sp_hexadecimal
GO
CREATE PROCEDURE sp_hexadecimal
@binvalue varbinary(256),
@hexvalue varchar (514) OUTPUT
@DiGi
DiGi / ČSFD
Last active August 29, 2015 21:05
ČSFD Serach plugin for Ubiquity
makeSearchCommand({
name: "csfd",
url: "http://www.csfd.cz/hledani-filmu-hercu-reziseru-ve-filmove-databazi/?search={QUERY}",
icon: "http://www.csfd.cz/favicon.ico",
description: "Vyhledávání v Československé filmové databázi."
});
@DiGi
DiGi / Fixed-Replace
Last active August 29, 2015 20:15
Fixed version from http://azarask.in/verbs/ + replace-all
// Fixed version from http://azarask.in/verbs/ + replace-all - digi@qr.cz
CmdUtils.CreateCommand({
name: "replace",
takes: {"what": noun_arb_text},
modifiers: {with: noun_arb_text, in: noun_arb_text},
preview: function( pblock, what, mods ) {
// args contains .with and .in, both of which are input objects.
var msg = 'Replaces "{$what}" with {$with} in {$in}.';