Skip to content

Instantly share code, notes, and snippets.

Tom Clegg tomclegg

View GitHub Profile
View usbip.md

server

modprobe usbip-host
usbipd &
usbip list -l
#Local USB devices
#=================
# - busid 5-2 (1235:8016)
#         5-2:1.0 -> snd-usb-audio
View jquery.dataTables.fnSkipMissingDataProps.js
// -*- mode: js2; indent-tabs-mode: nil; tab-width: 4 -*-
jQuery.fn.dataTableExt.oApi.fnSkipMissingDataProps = function (oSettings) {
var oCol, i;
for (i=0; i<oSettings.aoColumns.length; i++) {
oCol = oSettings.aoColumns[i];
oCol.fnGetData = _fnGetObjectDataFn(oCol.mDataProp);
oCol.fnSetData = _fnSetObjectDataFn(oCol.mDataProp);
}
function _fnGetObjectDataFn( mSource )
@tomclegg
tomclegg / trait_core_db.sql
Created Jul 14, 2009 — forked from xwu/trait_core_db.sql
Create the necessary databases, database users, and database tables for Trait-o-matic core
View trait_core_db.sql
CREATE DATABASE `ariel` DEFAULT CHARACTER SET ASCII COLLATE ascii_general_ci;
CREATE DATABASE `caliban` DEFAULT CHARACTER SET ASCII COLLATE ascii_general_ci;
CREATE DATABASE `dbsnp` DEFAULT CHARACTER SET ascii COLLATE ascii_general_ci;
CREATE DATABASE `genotypes` DEFAULT CHARACTER SET ascii COLLATE ascii_general_ci;
CREATE USER 'reader'@'localhost' IDENTIFIED BY 'shakespeare';
GRANT SELECT ON *.* TO `reader`@'localhost';
CREATE USER 'reader'@'%' IDENTIFIED BY 'shakespeare';
GRANT SELECT ON *.* TO `reader`@'%';
You can’t perform that action at this time.