Skip to content

Instantly share code, notes, and snippets.

View mowat27's full-sized avatar

Adrian Mowat mowat27

  • Fort William, Scotland
View GitHub Profile
mowat27 /
Created October 28, 2022 10:48
Code Archaeology Notes
#!/usr/bin/env bash
# Useful git commands using the rails codebase as an example:
# git clone
# and my own example later
# git clone
# You'll also need bat (brew install bat)
mowat27 /
Last active August 2, 2020 21:40
Getting Started with Flexiclock



Make sure you have your API token handy.

Download the bootstrap script to a temporary location and run it.

mowat27 / .gitignore
Last active June 11, 2018 12:25
Kit Lists
mowat27 / Connascence 2
Last active July 7, 2017 20:52
Conference Talk Ideas
* A Deeper Dive into each?
* Code examples?
* A chance to refactor
mowat27 /
Last active May 29, 2017 12:41
Virtual Box Linux VM Prep
#!/usr/bin/env bash
sudo apy update -y
sudo apt install -y linux-headers-generic linux-headers-$(uname -r) xserver-xorg xserver-xorg-core dkms
sudo apt upgrade -y
mowat27 / convert_to_es6.js
Created March 6, 2017 20:33
Example of why ES6 is cool
// Converting an ES5 function ES6
// Start
function getWords(text) {
return text.split(/\s/)
// Use const declaration
const getWords = function(text) {
return text.split(/\s/)
~/temp ❯❯❯ time zsh
~/temp ❯❯❯ function list {
function> cat <<EOF
function heredoc> Basic Price
Sub total
Factory options
Dealer options
Fuel and mats
Road fund licence
mowat27 /
Last active October 16, 2016 21:05
Simple utilities for use with the Ghost blogging patform (

To download and then use a script

wget https://raw/gist/url/
chmod +x

to execute directly

mowat27 /
Created September 25, 2016 16:10
Hi Sam

Hello Sam

def hello
  puts "world"
  • this
  • is
mowat27 /
Created September 8, 2016 09:02
Installing Ruby with Homebrew zlib
LDFLAGS=-L/usr/local/opt/zlib/lib CPPFLAGS=-I/usr/local/opt/zlib/include ruby-install ruby 2.3.1