Skip to content

Instantly share code, notes, and snippets.

View AndyA's full-sized avatar

Andy Armstrong AndyA

View GitHub Profile
/* Copyright (c) 1995 Simtec / Neil A Carson / WonderWorks
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are not permitted without express permission of the Authors.
*/
/* C language code for Hydra concurrent kernel / support code
*/
@AndyA
AndyA / gist:1705c56440a6b257feff
Last active August 29, 2015 14:08
Something lame?
$ curl http://web171.ch.bbcarchdev.net/labs/social/search/30?q=john+peel
{"status":"OK","id":"4914","graph":[{"name":"jeff griffin","id":"701","count":"180"},{"name":"harry parker","count":"124","id":"12348"},{"count":"84","id":"988","name":"paula mcginley"},{"id":"67270","count":"64","name":"alison hughes"},{"name":"michael hurll","count":"56","id":"3614"},{"name":"fiona hill","id":"20626","count":"46"},{"name":"john walters","count":"42","id":"255"},{"name":"steve lamacq","id":"1100","count":"42"},{"name":"jon curie","count":"42","id":"31506"},{"count":"40","id":"93","name":"denis okeeffe"},{"name":"john f muir","id":"5693","count":"36"},{"id":"9626","count":"36","name":"jacqueline smith"},{"id":"15614","count":"36","name":"tony palmer"},{"id":"35487","count":"36","name":"richard neville"},{"name":"bella bannerman","count":"36","id":"49346"},{"name":"chris berthoud","count":"36","id":"52209"},{"count":"34","id":"925","name":"ronald fletcher"},{"id":"2298","count":"32","name":"robin boyle"},{"id":"54014","co
views/layouts/admin.tt
22: <h1>Genome Admin Interface</h1>
views/layouts/main.tt
26: <h1>
28: </h1>
29: <h2>
31: </h2>
views/search.tt
#!/usr/bin/env perl
use strict;
use warnings;
use Date::Parse;
use Data::Dumper;
use JSON;
use POSIX qw( strftime );
2014/06/11
2014/06/12
2014/06/13
2014/06/14
2014/06/16
2014/06/17
2014/06/18
2014/06/19
2014/06/23
2014/06/24
@AndyA
AndyA / gist:40ad06ff1aaf23c76a22
Last active August 29, 2015 14:05
Smoo days and times
2014/06/11
11:40:22 smoo <smoomail@gmail.com>
12:54:32 smoo <smoomail@gmail.com>
2014/06/12
16:49:08 smoo <smoomail@gmail.com>
2014/06/13
11:56:35 smoo <smoomail@gmail.com>
12:28:02 smoo <smoomail@gmail.com>
12:29:36 smoo <smoomail@gmail.com>
16:43:06 smoo <smoomail@gmail.com>
<li>0:00</li>
<li>0:15</li>
<li>0:30</li>
<li>0:45</li>
<li>1:00</li>
<li>1:15</li>
<li>1:30</li>
<li>1:45</li>
<li>2:00</li>
<li>2:15</li>

Hello Git!

initialise Git:

  • git config --global user.name "smoo"

  • git config -- global user.email me@mydomain.com

  • pwd (print working directory)

  • git add . (adds file)

  • git commit -m "describe this version"

First type
$ cd ~/Desktop
$ sudo tcpdump -D
You'll be asked for your password and then a list of network interfaces will appear.
Password:
1.en0
2.bridge0
<VirtualHost *:80>
DocumentRoot "C:\Users\Smoo\Documents\001 - Renewablesfirst\RenewablesFirst\www"
ServerName rf.fenkle
<Directory "C:\Users\Smoo\Documents\001 - Renewablesfirst\RenewablesFirst\www">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>