Skip to content

Instantly share code, notes, and snippets.

View obowersa's full-sized avatar

Owen Bower Adams obowersa

  • Intelligent Growth Solutions
  • Scotland
  • X @obowersa
View GitHub Profile

Keybase proof

I hereby claim:

  • I am obowersa on github.
  • I am obowersa (https://keybase.io/obowersa) on keybase.
  • I have a public key ASADKk8dQhrnJln8LTqS7ZHHoU8BB_QlFV-xzrQg30UkQQo

To claim this, I am signing this object:

@obowersa
obowersa / Makefile
Last active February 20, 2021 15:37
GOMakefile
NAME = $(shell basename $(CURDIR))
MODULE = $(shell env GO111MODULE=on $(GO) list -m)
DATE ?= $(shell date +%FT%T%z)
VERSION ?= $(shell git describe --tags --always --dirty --match=v* 2> /dev/null || \
cat $(CURDIR)/.version 2> /dev/null || echo v0)
PKGS = $(or $(PKG),$(shell env GO111MODULE=on $(GO) list ./...))
BIN = $(CURDIR)/bin
GO = go
@obowersa
obowersa / signals.py
Last active December 6, 2018 14:55
signals_thing
from flask import Flask, current_app
#Import Namespace from blinker, use this as your custom namespace for signals. You can change this but most folk
#just use the provided one.
from blinker import Namespace
#Just some flask boiler plate
app = Flask(__name__)
app.secret_key = 'DND'
Mil Millington <mil_admin@thingsmygirlfriendandihavearguedabout.com>
Wed, Mar 24, 2010, 10:24 PM
to me
As the Internet revels in speed and topicality, I thought I'd tell you something that happened at Christmas. It's rather a long story, so those of you who don't want to spend quite a significant amount of time hearing about the trouble caused by the pants I bought my girlfriend when you have work you should be doing ought to stop reading now. And also unsubscribe - because, if you're anxious to do the job you're being paid for rather than read about pant-related problems, then you are *seriously* on the wrong list.
OK, let's get to it. A couple of you might recall that my girlfriend, Margret, is German. When I met her (I'll say 'met', even if a better word is 'rescued'), she, like all German women of her generation, had no interest in pants. This was only partly because she spent a good proportion of her time entirely naked. Mostly, it was because German women back then dressed purely functionally; Marg
var http = require('http');
var mysql = require('mysql');
var connection = mysql.createConnection({
host: 'localhost',
user: 'root',
database: 'node'
});
console.log('MySQL Connection details '+connection);
stack_tags = [{
:Key =>'environment',
:Value => config.environment,
},{
:Key =>'project',
:Value => config.get_item('project')
}]
@obowersa
obowersa / git-lwb
Created August 17, 2015 11:10
git-lwb
#!/bin/bash
git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(authorname) %(refname:short)'