Skip to content

Instantly share code, notes, and snippets.

View dvdsmpsn's full-sized avatar

David Simpson dvdsmpsn

View GitHub Profile
host logname time method url response bytes referer useragent
pppa006.compuserve.com - 807256800 GET /images/launch-logo.gif 200 1713
vcc7.langara.bc.ca - 807256804 GET /shuttle/missions/missions.html 200 8677
pppa006.compuserve.com - 807256806 GET /history/apollo/images/apollo-logo1.gif 200 1173
thing1.cchem.berkeley.edu - 807256870 GET /shuttle/missions/sts-70/sts-70-day-03-highlights.html 200 4705
202.236.34.35 - 807256881 GET /whats-new.html 200 18936
bettong.client.uq.oz.au - 807256884 GET /history/skylab/skylab.html 200 1687
202.236.34.35 - 807256884 GET /images/whatsnew.gif 200 651
202.236.34.35 - 807256885 GET /images/KSC-logosmall.gif 200 1204
bettong.client.uq.oz.au - 807256900 GET /history/skylab/skylab.html 304 0
@dvdsmpsn
dvdsmpsn / menu-hover-click.confluence4.snippet.html
Last active August 23, 2021 02:40
How to open Atlassian Confluence drop down menus on mouse over rather than mouse click events
<!-- For Confluence 4.x -->
<script>
AJS.toInit(function($){
$('.ajs-menu-bar > li.ajs-menu-item').hover(
function(){
$(this).children('a')[0].click();
},
function(){
$(this).children('a')[0].click();
$(this).removeClass('hover');
## Macro title: user-pictures-for-group
## Macro has a body: Y or N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: David Simpson <usermacros@davidsimpson.me>
## Date created: 2014-06-18
## Installed by: *****My Name*****
##
## Users Pictures for Group - Confluence User Macro
@dvdsmpsn
dvdsmpsn / html5-video-user-macro.vm
Last active February 21, 2021 00:52
HTML 5 Video user macro for Confluence
## Macro title: HTML5 Video
## Macro has a body: N
##
## Output: HTML
##
## Developed by: David Simpson <david@davidsimpson.me>
## Date created: dd/mm/yyyy
## Installed by: My Name
##
## @param width:title=Width|type=string|required=false|desc=Video width
@dvdsmpsn
dvdsmpsn / FulfillmentWebPanel.java
Last active July 31, 2020 19:16
Inject a meta tag into Atlassian Confluence and then access it from JavaScript using AJS.params.workForAppFusions
package com.appfusions.confluence.plugins.fulfillment.webpanels;
import com.atlassian.plugin.web.model.WebPanel;
import java.io.IOException;
import java.io.Writer;
import java.util.Map;
public class FulfillmentWebPanel implements WebPanel
{
@dvdsmpsn
dvdsmpsn / gist:5863690
Last active July 3, 2020 03:15
Tips for installing Oracle Java on a headless VM

Installing Oracle Java on a headless VM

Oracle requires you to login and accept a license agreement before downloading the JDK. This is tiresome especially if your VM has no display. This is a workaround for the tiresomeness.

In a browser on the host machine

  1. Browse to http://www.oracle.com/technetwork/java/javase/downloads/index.html or go to the archive page for an older version
  2. Select the correct version of Java
  3. Accept License Agreement
  4. Login to Oracle - the setup file starts to download
@dvdsmpsn
dvdsmpsn / .block
Last active June 13, 2020 14:54
Changing styles and colours with CSS custom properties (CSS variables)
license: apache-2.0
@dvdsmpsn
dvdsmpsn / keybase.md
Created July 25, 2019 14:52
keybase.md

Keybase proof

I hereby claim:

  • I am dvdsmpsn on github.
  • I am dvdsmpsn (https://keybase.io/dvdsmpsn) on keybase.
  • I have a public key ASBUtoJ-78m3GmB_rjFlUmsY9IWMq-ALXtSERL4lpqQIHgo

To claim this, I am signing this object:

@dvdsmpsn
dvdsmpsn / gist:4014341
Created November 4, 2012 23:23
Using Raspberry Pi as a cheap Airplay audio receiver

I'm using the Raspberry Pi as an airplay receiver to bring my 1970s hifi system a little more up to date.

Here are the steps I took and some references at the end.

Download the installer & insert an SD card

Davids-MacBook-Pro:tmp david$ curl -O http://svn.stmlabs.com/svn/raspbmc/testing/installers/python/install.py
Davids-MacBook-Pro:tmp david$ chmod +x install.py
Davids-MacBook-Pro:tmp david$ sudo ./install.py