Skip to content

Instantly share code, notes, and snippets.

Nicholas Henry nshenry03

View GitHub Profile
@nshenry03
nshenry03 / jc-selinux.sh
Last active Mar 7, 2019
JumpCloud MFA SELinux Policy - Tested on CentOS 7
View jc-selinux.sh
#!/bin/bash -
#===============================================================================
#
# FILE: jc-selinux.sh
#
# USAGE: ./jc-selinux.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
@nshenry03
nshenry03 / assert-tf-outputs.sh
Created Feb 14, 2019
Assert that all outputs have resources and all resources have at least one output
View assert-tf-outputs.sh
diff -rupN \
<(
ack "^\s*resource\s*" main.tf \
| awk '{print $2"."$3}' \
| sed -e 's/"//g' \
| sort -u
) \
<(
ack "^\s*value\s*=" outputs.tf \
| ack -o '[({ ,]\w*\.\w*\.?' \
@nshenry03
nshenry03 / assert-tf-variables.sh
Last active Feb 14, 2019
Assert that all variables are used and that all variables are defined.
View assert-tf-variables.sh
diff -rupN \
<(
ack '^\s*variable\s*"' variables.tf \
| awk '{print $2}' \
| sed -e 's/"//g' \
| sort -u
) \
<(
ack -o "var\.\w+" main.tf \
| sed -e 's/var\.//' \
View gpg-agent.conf
enable-ssh-support
pinentry-program /usr/bin/pinentry-curses
default-cache-ttl 60
max-cache-ttl 120
@nshenry03
nshenry03 / backend
Last active Jan 8, 2019
byobu config
View backend
BYOBU_BACKEND=screen
View .gitconfig
[user]
email = nshenry03@gmail.com
name = Nick Henry
[github]
user = nshenry03
View git_config.yml
---
- hosts: all
gather_facts: no
vars:
user_list:
- name: john.doe
git_config:
- user.name: John Doe
- user.email: john.doe@example.com
- user.signingkey: 0A46826A
@nshenry03
nshenry03 / ansible-role-test.sh
Created Sep 30, 2018 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
View ansible-role-test.sh
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "fedora29")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
View .vimrc
"===============================================================================
"
" File: customization.vimrc
"
" Description: suggestion for a personal configuration file ~/.vimrc
"
" VIM Version: 7.0+
" Author: Dr. Fritz Mehner (fgm), mehner.fritz@web.de
" Version: 1.0
" Created: 18.05.2013 21:59
@nshenry03
nshenry03 / .ackrc
Last active Feb 22, 2019
Bash configuration files
View .ackrc
--ignore-dir=.kitchen
--ignore-dir=.terraform
--type-set=terraform:ext:tf
--type-set=terraformstate:match:/tfstate/
You can’t perform that action at this time.