Skip to content

Instantly share code, notes, and snippets.

View mcepl's full-sized avatar

Matěj Cepl mcepl

View GitHub Profile
@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] ------------------
info it worked if it ends with ok
verbose cli [ 'node', '/usr/bin/npm', 'install', '-g', '[email protected]' ]
info using [email protected]
info using [email protected]
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
root@bradford ~]# npm install -g libxml-to-js |&tee /tmp/npm-install-log.txt
> [email protected] 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
@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: "[email protected]"
},
license: "MIT/X11",
icon: "http://www.mozilla.com/favicon.ico",
arguments: [{
@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)
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;