Skip to content

Instantly share code, notes, and snippets.

@craig-m-unsw
craig-m-unsw / README.md
Last active April 30, 2024 04:23
Setup an Ubuntu desktop for development tasks

Ubuntu development desktop

Setup notes of a new Ubuntu development Desktop machine (on metal). Install any supported LTS (preferable) or the latest interim release, be sure to verify your download.

If you sign up for Ubuntu pro you can get updates for 10 years.

This is not supposed to be an extensive, reliable, or detailed guide and is somewhat specific to my fairly generic needs.

Install

@craig-m-unsw
craig-m-unsw / README.md
Last active April 29, 2024 12:38
VirtualBox VM pentest lab with Kali linux and Metasploitable 3 Vagrant boxes.

Linux pentest lab

Install Vagrant and VirtualBox (MacOS, Windows, Linux).

Start the virtual machines:

vagrant validate Vagrantfile
vagrant up
@craig-m-unsw
craig-m-unsw / README.md
Last active February 21, 2024 10:08
Parallels (MacOS M1 host) Packer + Vagrant of Ubuntu 20.04 arm64. Installed with cloud-init and configured with Ansible.

parallels Packer (arm64)

A simple Packer + Vagrant install of Ubuntu 20.04 (Focal Fossa) LTS server for arm64, to run from my M1 Mac on Parallels Pro (17.1). Currently on MacOS Monterey.

Packer will run the ansible playbook.yml before the machine is shutdown and exported.

The installation is automated by cloud-init (which reads user-data). The file meta-data just needs to be an empty text file (you need to create this - no blank files or folders allowed in gists).

ubuntu2004/
@craig-m-unsw
craig-m-unsw / README.md
Last active January 22, 2024 05:09
The scaffold that starts all my projects - for my own copy/paste convenience

minimum project

For a minimum viable proof of concept or as a place to run some tools, I keep coming back to this same pattern.

foo-bar/
    ├── .gitignore
    ├── README.md
    ├── playbook.yml
 └── Vagrantfile
@craig-m-unsw
craig-m-unsw / cissp_notes.md
Last active January 22, 2024 05:09 — forked from penafieljlm/cissp_notes.md
Personal CISSP Study Notes

CISSP Notes

Certified Information Systems Security Professional notes.

CISSP is a certification from the "International Information System Security Certification Consortium", more frequently known as (ISC)² (see https://www.isc2.org/Certifications/CCSP).

Index:

@craig-m-unsw
craig-m-unsw / README.md
Last active January 22, 2024 05:09
learn mySQL with docker-compose
@craig-m-unsw
craig-m-unsw / sshing.md
Last active January 22, 2024 05:09
limit ssh

Situation:

  • VPN (with 2FA) from your desktop
  • SSH with SSO (username and password) into Linux system
  • This is a HPC with many machines you want to SSH between without using any password
#!/bin/bash
set -x
set -e
@craig-m-unsw
craig-m-unsw / README.md
Last active January 22, 2024 05:08
learn PostgreSQL with docker-compose
@craig-m-unsw
craig-m-unsw / pe-git-sshd.py
Last active December 11, 2023 02:49
pe-git-sshd.py - get sshd fingerprints of git server for PE config.
#!/usr/bin/env python3
'''
set sshd fingerprints of git server for PE config.
https://www.puppet.com/docs/pe/2023.5/code_mgr_config
'''
import subprocess
import argparse
import re
@craig-m-unsw
craig-m-unsw / 1-orgs-archetype.md
Created December 7, 2023 05:03 — forked from whatupfoo/1-orgs-archetype.md
Orgs and Teams Best Practices

Organization archetypes

The intention of this document is to provide some guidance and suggestions to customers who are wondering how they should structure organizations and teams in their GitHub Enterprise environment. The idea isn't to give hard and fast rules on which approach is better than the other, but to give examples of when one approach might be preferable to another depending on the use case.

1. A single organization with direct organization membership for repository access (not teams)

          ________________
          |     Org      |
          |    ______    |
          |   |      |\  |

| | Repo | \ |