Skip to content

Instantly share code, notes, and snippets.

View topiaruss's full-sized avatar

Russ Ferriday topiaruss

  • Topia Systems Ltd
  • Carmarthen UK
View GitHub Profile
@topiaruss
topiaruss / streets.py
Created September 26, 2019 19:16
Understanding the streets of Barry
"""
Based on a FB post that wanted streets names of Barry, starting with Gladstone Road, with each successive street
starting with the terminal letter of the previous one.
"""
streets = """
Aberaeron Close
Aberystwyth Crescent
Abingdon Street
Adar Y Mor
Ael-y-coed
Building in Docker Cloud's infrastructure...
Cloning into '.'...
Submodule 'aten/src/ATen/cpu/cpuinfo' (https://github.com/Maratyszcza/cpuinfo) registered for path 'aten/src/ATen/cpu/cpuinfo'
Submodule 'aten/src/ATen/cpu/tbb/tbb_remote' (https://github.com/01org/tbb) registered for path 'aten/src/ATen/cpu/tbb/tbb_remote'
Submodule 'aten/src/ATen/utils/catch' (https://github.com/catchorg/Catch2.git) registered for path 'aten/src/ATen/utils/catch'
Submodule 'third_party/ComputeLibrary' (https://github.com/ARM-software/ComputeLibrary.git) registered for path 'third_party/ComputeLibrary'
@topiaruss
topiaruss / README
Created June 22, 2017 17:57
A quick yaml syntax checker.
Setup your fave virtual environment
pip install -r requirements.txt
python syntax.py
@topiaruss
topiaruss / main.md
Last active December 19, 2016 15:26
Colour Lambda API spike - Initial setup

Goal

Create a Lambda service that returns a list of colours

Plan

Basics

User serverless.com video and reference material, and for this initial task prefer the Node.js option.

MVP will be a tested deployment to an AWS Gateway API for demo consumption

##Later

@topiaruss
topiaruss / docker-compose.yml
Created December 15, 2016 15:12
Java heap constraints in docker-compose
version: '2'
services:
test-java-params-none:
image: iron/java:1.8
command: sh -c " java -XX:+PrintFlagsFinal -version|grep -i heapsize|egrep 'Initial|Max'"
test-java-params-cmd-line:
image: iron/java:1.8
command: sh -c "sleep 2; java -Xms64m -Xmx128m -XX:+PrintFlagsFinal -version|grep -i heapsize|egrep 'Initial|Max'"
> assert orig == ret
E assert TimedTask(tid..., 13, 665000)) == TimedTask(tid=..., 13, 664999))
E Full diff:
E - TimedTask(tid=UUID('6...27'), created=datetime.datetime(2016, 2, 25, 14, 32, 13, 665000))
E ? ^^^^
E + TimedTask(tid=UUID('6...27'), created=datetime.datetime(2016, 2, 25, 14, 32, 13, 664999))
E ? ^^^^
Note, the time saved was already rounded to milliseconds. The time returned is one ms less than the saved time.
@topiaruss
topiaruss / pytest.ini
Last active June 21, 2016 15:57
Experimenting with minimal test frameworks for spout and bolt
[pytest]
python_paths = src/bolts src/spouts
testpaths = src/tests
$ docker-machine create -d virtualbox local
$ eval "$(docker-machine env local)"
$ docker run swarm create
..
357150828546349cb76f0b0b21af2f1a
$ docker-machine create \
-d virtualbox \
--swarm \
--swarm-master \