Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
G`Day

Mick Pollard aussielunix

🤠
G`Day
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
aussielunix / ceph-manual-install.md
Last active Apr 20, 2022 — forked from kalaspuffar/ceph-manual-install.md
How to install a manual ceph cluster.
View ceph-manual-install.md

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
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
tasks:
- name: debug | vars
debug:
var: vars
- name: debug | environment
@aussielunix
aussielunix / Makefile
Created Aug 8, 2021
A Makefile example with a help system
View Makefile
# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
@aussielunix
aussielunix / Day0.md
Last active Dec 17, 2021
Runsheet for bootstrapping a clean MacOS M1 using https://github.com/geerlingguy/mac-dev-playbook
View Day0.md

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
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: {},
View bash_spinner.sh
# Run a command and present a spiiner whilst it completes
#
apt-get update -qq & # important to background command
pid=$! # get PID of backgrounded task
spin[0]="-"
spin[1]="\\"
spin[2]="|"
spin[3]="/"
View minio.yml
---
name: minio
releases:
- name: minio
version: latest
stemcells:
- alias: default
os: ubuntu-trusty
@aussielunix
aussielunix / FindYourUltimateJob.md
Last active Jan 20, 2019
A plan on how to find your ultimate job.
View FindYourUltimateJob.md

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
aussielunix / README.md
Last active Jan 7, 2019
nokogiri ssl issue
View README.md

nokogiri tls issues

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

lunix@boran]  -> curl -I http://nokogiri.org/
HTTP/1.1 301 Moved Permanently
Server: GitHub.com
Content-Type: text/html