Skip to content

Instantly share code, notes, and snippets.


Mick Pollard aussielunix

View GitHub Profile
View vimrc
syntax on
filetype plugin indent on
set shiftwidth=2
set tabstop=2
set nocompatible
set expandtab
set smarttab
set autoindent
set nu
aussielunix /
Last active Apr 20, 2022 — forked from kalaspuffar/
How to install a manual ceph cluster.

Manual install of a Ceph Cluster.

Fetching software.

First of I want to check that I have all the latest packages in my debian system.

apt update
apt upgrade
aussielunix / debug_vars.yml
Created Oct 29, 2021
Ansible playbook that prints out all vars available during a play
View debug_vars.yml
- name: dump all
hosts: all
gather_facts: false
- name: debug | vars
var: vars
- name: debug | environment
aussielunix / Makefile
Created Aug 8, 2021
A Makefile example with a help system
View Makefile
# This will output the help for each task
# thanks to
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
aussielunix /
Last active Dec 17, 2021
Runsheet for bootstrapping a clean MacOS M1 using

Day 0 - Bootstrap MacOS with Ansible

After factory resetting the maching you will need to do the following things to bootstrap it with Ansible.

  • Set default shell to bash chsh -s /bin/bash (optional)
  • Open the App Store and sign in (but do not install anything)
  • Install command line tools
    • xcode-select --install
  • Add Python 3.8 to the $PATH
  • export PATH="$HOME/Library/Python/3.8/bin:$PATH"
aussielunix / tailwind.config.js
Created Mar 11, 2021
Minimal tailwind config for tailwind-rails
View tailwind.config.js
# app/javascript/stylesheets/tailwind.config.js
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class' or 'false'
theme: {
extend: {},
variants: {
extend: {},
# Run a command and present a spiiner whilst it completes
apt-get update -qq & # important to background command
pid=$! # get PID of backgrounded task
View minio.yml
name: minio
- name: minio
version: latest
- alias: default
os: ubuntu-trusty
aussielunix /
Last active Jan 20, 2019
A plan on how to find your ultimate job.

Exercise 1

  • write on post-its what you value most in a potential employer / work environment separated into three different personas.
    • As a member of the company I value:
    • As a member of a team I value:
    • As an individual worker I value:
  • group these into a small set of high level values
  • discard the individual post-its
aussielunix /
Last active Jan 7, 2019
nokogiri ssl issue

nokogiri tls issues

Without https or the www
Forced redirect to https://www

lunix@boran]  -> curl -I
HTTP/1.1 301 Moved Permanently
Content-Type: text/html