Skip to content

Instantly share code, notes, and snippets.

View fishd72's full-sized avatar
🏠
Working from home

Dave Fisher fishd72

🏠
Working from home
View GitHub Profile
@fishd72
fishd72 / .git-commit-template.txt
Created July 17, 2023 10:33 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@fishd72
fishd72 / structure.ansible.yml
Created January 25, 2023 16:28 — forked from ngf-davef-devops/structure.ansible.yml
Playbook to create a default directory & file structure for Ansible projects, create a folder, copy this playbook to it and execute it from within that folder.
---
- hosts: localhost
connection: local
gather_facts: false
become: false
tasks:
- name: Create folder structure
ansible.builtin.file:
path: "{{ item }}"
@fishd72
fishd72 / Manifesto.txt
Created July 12, 2022 21:06 — forked from macprince/Manifesto.txt
My IT Manifesto
I will work with you to figure out what the thing is that you need,
I will get the thing ordered for you,
I will unbox the thing and set it up for you,
I will help you get started using the thing,
I will maintain the thing in proper working order for you,
I will troubleshoot the thing for you,
I will fix the thing for you (if I can, or find someone who can if I can't),
I will properly dispose of the thing for you when it's no longer useful,
I will replace the thing with another, possibly better thing when the time comes.
@fishd72
fishd72 / random_sn
Created May 28, 2020 11:53 — forked from smashism/random_sn
random_sn
randomsn() {
python -c "import string; from random import randint, sample; print('VM' + ''.join(sample((string.ascii_lowercase + string.digits),10)))"
}
#!/usr/bin/python
# As written, this requires the following:
# - OS X 10.6+ (may not work in 10.10, haven't tested)
# - python 2.6 or 2.7 (for collections.namedtuple usage, should be fine as default python in 10.6 is 2.6)
# - pyObjC (as such, recommended to be used with native OS X python install)
# Only tested and confirmed to work against 10.9.5
# Run with root