Skip to content

Instantly share code, notes, and snippets.

View apb2006's full-sized avatar

Andy Bunce apb2006

  • Quodatum
  • London, UK
View GitHub Profile
@apb2006
apb2006 / gist:1695027
Created January 28, 2012 17:01
a91 with 3g modem ZTE CDMA Technologies MSM
<6>usb 1-2.1: new high speed USB device using ehci-omap and address 3
<6>usb 1-2.1: New USB device found, idVendor=19d2, idProduct=2000
<6>usb 1-2.1: New USB device strings: Mfr=2, Product=1, SerialNumber=3
<6>usb 1-2.1: Product: ZTE CDMA Technologies MSM
<6>usb 1-2.1: Manufacturer: ZTE,Incorporated
<6>usb 1-2.1: SerialNumber: 1234567890ABCDEF
<4>USB usb_probe_device idVendor=19d2 idProduct=2000 product=(ZTE CDMA Technologies MSM)
<6>usb 1-2.1: configuration #1 chosen from 1 choice
<6>usb 1-2.1: USB disconnect, address 3
<6>usb 1-2.1: new high speed USB device using ehci-omap and address 4
@apb2006
apb2006 / gist:1701099
Created January 29, 2012 22:35
IFree=0
velvet:/tmp# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 4184756 1722772 2252324 44% /
tmpfs 16 0 16 0% /USB
/dev/c/c 1930585268 906876 1929678392 1% /c
/dev/c/c_2011_07_08_22_18
1930585268 208984 1930376284 1% /c_2011_07_08_22_18
velvet:/tmp# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/md0 65536 65536 0 100% /
@apb2006
apb2006 / gist:1817999
Created February 13, 2012 16:25
XQueryV30.xq basex 7.1
(: time 3448088ms ~ 1hr :)
import module namespace p="XQueryV30" at "C:\Program Files\xquerydoc-0.1\src\xquery\parsers\XQueryV30.xq";
p:parse-XQuery("2+3")
@apb2006
apb2006 / gist:1879855
Created February 21, 2012 23:38
anotations from Xquery
import module namespace p="apb.parser-basex";
let $xq:='
declare
%rest:path("/stock/widget/{$id}")
function local:widget($id as xs:int) {
(: get the widget :)
fn:collection("/db/widgets")/widget[@id eq $id]
};
2+3
@apb2006
apb2006 / gist:1895476
Created February 23, 2012 22:39
time... 1.2 sec
import module namespace q="apb.pacman";
q:info()
hello from pacman
@apb2006
apb2006 / End up as..
Created April 11, 2012 22:24
xsltforms without <?css-conversion no?>
<style type="text/css">XML Parsing Error: not well-formed Location: http://localhost:8984/lib/bootstrap/css/bootstrap-responsive.min.css Line Number 1, Column 10:.clearfix {*zoom:1;}
.clearfix:before, .clearfix:after {display:table;content:"";}
{}
</style>
@apb2006
apb2006 / gist:2979965
Created June 23, 2012 21:04
tika metadata from photo
java -jar ~andy/tika-app-1.1.jar skating.jpg
<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Software" content="Picasa"/>
<meta name="GPS Altitude Ref" content="Sea level"/>
<meta name="subject" content="greenwich"/>
<meta name="subject" content="ice"/>
<meta name="subject" content="skate"/>
<meta name="Content-Length" content="96154"/>
<meta name="Exif Version" content="2.20"/>
@apb2006
apb2006 / gist:2979999
Created June 23, 2012 21:11
metadata from mp3 file using tika
java -jar ~andy/tika-app-1.1.jar 12\ Time\ Of\ The\ Season.mp3
<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="xmpDM:audioCompressor" content="MP3"/>
<meta name="xmpDM:releaseDate" content="1968"/>
<meta name="Content-Length" content="5632909"/>
<meta name="xmpDM:album" content="Odessey &amp; Oracle"/>
<meta name="xmpDM:artist" content="Zombies"/>
<meta name="Author" content="Zombies"/>
<meta name="xmpDM:genre" content=""/>
@apb2006
apb2006 / gist:3714975
Created September 13, 2012 15:11
tl-wr703n : OpenWrt boot log
Sep 12 21:04:03 OpenWrt syslog.info syslogd started: BusyBox v1.19.4
Sep 12 21:04:03 OpenWrt kern.notice kernel: klogd started: BusyBox v1.19.4 (2012-08-28 23:48:59 EDT)
Sep 12 21:04:03 OpenWrt kern.notice kernel: [ 0.000000] Linux version 3.3.8 (openwrt@callisto.lab.bufferbloat.net) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu Aug 30 06:36:56 EDT 2012
Sep 12 21:04:03 OpenWrt kern.debug kernel: [ 0.000000] MyLoader: sysp=3dd7cb87, boardp=f0717c55, parts=4852ecbe
Sep 12 21:04:03 OpenWrt kern.info kernel: [ 0.000000] bootconsole [early0] enabled
Sep 12 21:04:03 OpenWrt kern.info kernel: [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
Sep 12 21:04:03 OpenWrt kern.info kernel: [ 0.000000] SoC: Atheros AR9330 rev 1
Sep 12 21:04:03 OpenWrt kern.info kernel: [ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
Sep 12 21:04:03 OpenWrt kern.info kernel: [ 0.000000] Determined physical RAM map:
Sep 12 21:04:03 OpenWrt kern.info kernel: [ 0.000000] memory: 020
@apb2006
apb2006 / actions.xml
Last active October 13, 2015 00:27
TXQ
<div>
<h2>{$heading} - {count($actions/generate)}</h2>
<p>Actions are processes that generate a new item from an existing item.</p>
<div>
{$partial("action1.xml","action",$actions/generate )}
</div>
</div>