Skip to content

Instantly share code, notes, and snippets.

View mwoodbri's full-sized avatar

Mark Woodbridge mwoodbri

View GitHub Profile
@mwoodbri
mwoodbri / install-seek.sh
Created July 13, 2013 18:46
SysMO-DB SEEK installation script for RHEL 5
#!/bin/bash
sudo yum -y install curl bzip2 patch gcc make libxml2-devel mysql-devel libxslt-devel sqlite-devel
curl -LO http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
sudo yum -y install --nogpgcheck rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
curl -O http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-6.7.6-1.x86_64.rpm
curl -O http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-devel-6.7.6-1.x86_64.rpm
sudo yum -y install --nogpgcheck mercurial ImageMagick-6.7.6-1.x86_64.rpm ImageMagick-devel-6.7.6-1.x86_64.rpm
curl -O https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer
bash -s stable <rvm-installer
@mwoodbri
mwoodbri / index.html
Last active December 21, 2015 00:29 — forked from anonymous/index.html
MRIdb downloads
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
.marker-properties {
border-collapse:collapse;
font-size:11px;
@mwoodbri
mwoodbri / glossary.md
Last active December 28, 2015 10:09
Molecular Biology for Dummies
Kinase
Enzyme (i.e. a protein) that transfers phosphate groups (e.g. from ATP) to a substrate (i.e. another molecule). Used in signalling, cell cycle coordination. Most common type are protein kinases, which phosphorylate proteins (incl. enzymes, regulating their behaviour). Other types: lipid kinases, carbohydrate kinases. The opposite are phophotases, which reverse the process.
Ligand
Small molecule (typically an extracellular signal molecule) that forms a complex with a (large) biomolecule (typically a protein, the binding of which initiates a response in a cell). For example, GABA (an amino acid) binds to GABA receptors (proteins), transmitting signals between neurons (nerve cells). So it is a neurotransmitter. Other types exist too.
Transcription factor
DNA-binding protein that up- or down-regulates gene expression by controlling transcription (i.e. DNA->mRNA)
Gene Set Enrichment Analysis (GSEA)
Identifies gene sets (
Index: dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/WADOSupport.java
===================================================================
--- dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/WADOSupport.java (revision 18247)
+++ dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/WADOSupport.java (working copy)
@@ -717,6 +717,17 @@
WADODatasourceResponseObjectImpl resp = new WADODatasourceResponseObjectImpl(
ds, transferSyntax, CONTENT_TYPE_DICOM,
HttpServletResponse.SC_OK, null);
+ //if ("yes".equals(req.getRequest().getParameter("anonymize"))) {
+ d.putPN(Tags.PatientName);
{
"A": 25,
"B": 40,
"P": 30
}
<body>
{{status.status}}
</body>
@mwoodbri
mwoodbri / chaser
Last active November 23, 2015 22:47
export METEOR_SETTINGS=$(</etc/chaser.json)
export ROOT_URL=http://<HOSTNAME>
export MAIL_URL=smtp://...
export MONGO_URL=mongodb://DBSERVER/meteor
export MONGO_OPLOG_URL=mongodb://DBSERVER/local
export PORT=3000
export HTTP_FORWARDED_COUNT=1
export KADIRA_APP_ID=...
export KADIRA_APP_SECRET=...
node /opt/chaser/main.js
[
{
"company": "Pulselive",
"stand": "64",
"room": "Blue",
"saturday": true,
"sunday": true,
"mission": "We partner with some of the biggest global sports organisations to deliver websites and mobile apps that inform, entertain and engage sports fans."
},
{
var request = require('request');
var CONSUMER_KEY = 'YOUR_XERO_CONSUMER_KEY';
var accountCodes = {
eating_out: 420
};
export default async function(hook) {
var transaction = hook.params;
if (/#expenses(?: |$)/.test(transaction.data.notes)) {
hook.res.end();
}
ADDRESS=10.10.0.2
CLIENT=$(hostname -s)
yum install -y epel-release
yum install -y tinc
mkdir -p /etc/tinc/hosts
cat >/etc/tinc/tinc.conf <<EOF
Name=$CLIENT
ConnectTo=vp1
EOF
tincd -K </dev/null