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
mowat27 / presentation.sh
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 git@github.com:rails/rails.git
# and my own example later
# git clone git@github.com:mowat27/maths.git
# You'll also need bat (brew install bat)
@mowat27
mowat27 / getting_started.md
Last active August 2, 2020 21:40
Getting Started with Flexiclock

GETTING STARTED

Installation

Make sure you have your API token handy.

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

cd 
@mowat27
mowat27 / .gitignore
Last active June 11, 2018 12:25
Kit Lists
*.pdf
@mowat27
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
mowat27 / 01-vbox-prep.sh
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
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
Discount
Sub total
Factory options
Dealer options
Fuel and mats
Road fund licence
@mowat27
mowat27 / README.md
Last active October 16, 2016 21:05
Simple utilities for use with the Ghost blogging patform (https://ghost.io)

To download and then use a script

wget https://raw/gist/url/script.sh
chmod +x script.sh

to execute directly

@mowat27
mowat27 / hello.md
Created September 25, 2016 16:10
Hi Sam

Hello Sam

def hello
  puts "world"
end
  • this
  • is
@mowat27
mowat27 / ruby_zlib_homebrew.sh
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