Skip to content

Instantly share code, notes, and snippets.

View mcepl's full-sized avatar

Matěj Cepl mcepl

View GitHub Profile
var Response = require('ringo/webapp/response').Response;
var log = require('ringo/logging').getLogger(module.id);
var config = require("config");
function matchesREkey (obj, path) {
log.info("obj = " + obj.toSource());
log.info("path = " + path);
for (var key in obj) {
if (new RegExp(key).test(path)) {
return true;
@mcepl
mcepl / gist:891100
Created March 28, 2011 19:27
Ubiquity shorten URL
"use strict";
function getShortURL(which, args) {
var baseURL = ""; var params = {};
if (which == "is.gd") {
baseURL = "http://is.gd/create.php";
params = {
format: "simple",
url: encodeURIComponent(args.object.text)
@mcepl
mcepl / gist:891295
Created March 28, 2011 21:13
Demand OpenID on the current (or other) page
CmdUtils.CreateCommand({
names: ["demand"],
description: "Demand OpenID to be used for the current page",
author: {
name: "Matej Cepl",
email: "mcepl@redhat.com"
},
license: "MIT/X11",
icon: "http://www.mozilla.com/favicon.ico",
arguments: [{
root@bradford ~]# npm install -g libxml-to-js |&tee /tmp/npm-install-log.txt
> libxmljs@0.4.2 preinstall /usr/lib/node_modules/libxml-to-js/node_modules/libxmljs
> make node
scons: Reading SConscript files ...
Checking for node.js ...(cached) yes
True
Checking for C++ library xml2... yes
Checking for node.js ...(cached) yes
info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', 'fibers@0.5' ]
info using npm@1.0.26
info using node@v0.4.11
verbose /usr/bin/node node symlink
verbose config file /root/.npmrc
verbose config file /usr/etc/npmrc
silly exec /usr/bin/node "/usr/lib/nodejs/npm/bin/npm-get-uid-gid.js" "nobody" 0
silly output from getuid/gid {"uid":99,"gid":0}
silly output from getuid/gid
@mcepl
mcepl / ant-debug-log.txt
Created October 1, 2011 18:28
ant debug log
Buildfile: /home/matej/archiv/knihovna/repos/tmp/GpodRoid/build.xml
[setup] Android SDK Tools Revision 13
[setup] Project Target: Android 2.3.3
[setup] API level: 10
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
Provádění(%prep): /bin/sh -e /var/tmp/rpm-tmp.48SsUp
+ umask 022
+ cd /home/matej/build/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/matej/build/BUILD
+ rm -rf Flask-0.8
+ /usr/bin/gzip -dc /home/matej/build/SOURCES/Flask-0.8.tar.gz
+ /bin/tar -xf -
@mcepl
mcepl / podcasts.opml
Created January 29, 2012 14:39
OPML file imported
<opml version="1.0">
<head>
<title>Swallowcatcher subscriptions</title>
</head>
<body>
<outline xmlUrl="http://feeds.feedburner.com/AMinuteWithBrendan" text="&amp;lt;" type="rss" title="A Minute With Brendan"/>
<outline xmlUrl="http://www2.madphilosopher.ca/bsdtalk_ogg.xml" text="Talking about the BSD family of free operating systems." type="rss" title="bsdtalk Ogg Vorbis feed"/>
<outline xmlUrl="http://faif.us/feeds/cast-ogg/" text="A bi-weekly discussion of legal, policy, and other issues in the FLOSS world, including interviews from Brooklyn, New York, USA. Presented by Karen Sandler and Bradley M. Kuhn." type="rss" title="Free as in Freedom"/>
<outline xmlUrl="http://feeds.feedburner.com/bostonvineyard/podcast" text="All of the Sunday Sermons for the Greater Boston Vineyard" type="rss" title="Greater Boston Vineyard - All Sunday Sermons"/>
<outline xmlUrl="http://www.npr.org/rss/podcast.php?id=35" text="NPR's weekly current events quiz. Have a laugh and test your news knowl
@mcepl
mcepl / import.opml
Created February 2, 2012 13:22
my current subscriptions
<opml version="1.0">
<head>
<title>Swallowcatcher subscriptions</title>
</head>
<body>
<outline xmlUrl="http://feeds.feedburner.com/AMinuteWithBrendan" text="&amp;lt;" type="rss" title="A Minute With Brendan"/>
<outline xmlUrl="http://www2.madphilosopher.ca/bsdtalk_ogg.xml" text="Talking about the BSD family of free operating systems." type="rss" title="bsdtalk Ogg Vorbis feed"/>
<outline xmlUrl="http://faif.us/feeds/cast-ogg/" text="A bi-weekly discussion of legal, policy, and other issues in the FLOSS world, including interviews from Brooklyn, New York, USA. Presented by Karen Sandler and Bradley M. Kuhn." type="rss" title="Free as in Freedom"/>
<outline xmlUrl="http://feeds.feedburner.com/bostonvineyard/podcast" text="All of the Sunday Sermons for the Greater Boston Vineyard" type="rss" title="Greater Boston Vineyard - All Sunday Sermons"/>
<outline xmlUrl="http://www.npr.org/rss/podcast.php?id=35" text="NPR's weekly current events quiz. Have a laugh and test your news knowl
@mcepl
mcepl / about_support.txt
Created February 15, 2012 09:29
about:support from the affected computer
Application Basics
Name
Firefox
Version
10.0