Skip to content

Instantly share code, notes, and snippets.

View aussielunix's full-sized avatar
🤠
G`Day

Mick Pollard aussielunix

🤠
G`Day
View GitHub Profile
@aussielunix
aussielunix / README.md
Last active February 12, 2024 23:37
install script and config files for openvpn server with password auth on ubuntu 16.04

Openvpn Server install and config files

These scripts and config files are expected to be used as a cloudconfig and will install Openvpn server from the default Ubuntu 16.04 repository.
It is setup with certificates to prevent MITM attacks however uses username/password for client authentication.

The following is a generic client config.

client
@aussielunix
aussielunix / Day0.md
Last active July 29, 2023 21:32
Runsheet for bootstrapping a clean MacOS M1 using https://github.com/geerlingguy/mac-dev-playbook

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"
# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
RANDOM := $(shell /bin/bash -c "cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 6 | head -n 1")
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@aussielunix
aussielunix / nginx.conf
Created June 5, 2022 06:38
k3s nginx load balancer
user www-data;
pid /run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 40000;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 8192;
}
@aussielunix
aussielunix / vimrc
Created May 19, 2022 01:04
basic 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 April 20, 2022 02:12 — forked from kalaspuffar/ceph-manual-install.md
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
aussielunix / Gemfile
Created July 4, 2012 13:30
puppet testing from jenkins
...
...
...
...
group :test do
gem 'rspec'
gem 'mechanize'
gem 'puppet-lint'
gem 'rake'
end
@aussielunix
aussielunix / debug_vars.yml
Created October 29, 2021 22:09
Ansible playbook that prints out all vars available during a play
---
- name: dump all
hosts: all
gather_facts: false
tasks:
- name: debug | vars
debug:
var: vars
- name: debug | environment
@aussielunix
aussielunix / aws_nvme-cloud-init.yml
Last active September 21, 2021 00:07
simple cloud-init for mounting an ephemeral nvme store in AWS. This is to be used as user-data.
#cloud-config
repo_update: true
repo_upgrade: all
package_upgrade: true
bootcmd:
- test -z "$(blkid /dev/nvme0n1)" && mkfs -t ext4 -L scratch /dev/nvme0n1
mounts:
@aussielunix
aussielunix / Makefile
Created August 8, 2021 00:38
A Makefile example with a help system
# 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