Skip to content

Instantly share code, notes, and snippets.

View tracphil's full-sized avatar
👊
Hang tough!

Tracy Phillips tracphil

👊
Hang tough!
View GitHub Profile
@tracphil
tracphil / .envrc
Created December 1, 2023 13:20 — forked from defanator/.envrc
Example of direnv .envrc configuration for working with awscli as MFA-enabled IAM user
#
# Copyright (C) Andrei Belov (defanator@gmail.com)
#
# This is an example of direnv [1] .envrc file approaching the way
# of using awscli [2] with MFA-enabled accounts in a (more or less)
# secure manner.
#
# The following assumptions are expected:
#
# a) there should be two files, key.asc and skey.asc, containing
@tracphil
tracphil / rpi-installation-01-osx.md
Last active November 24, 2023 19:17 — forked from tomysmile/rpi-installation-01-osx.md
Debian Installation using Mac OSX

Raspberry Pi Installation using Mac OSX

Re-Formatting your SD Card

Using Terminal

First, look at the partition table by running this command:

diskutil list
@tracphil
tracphil / custom-darcula.css
Created November 2, 2023 11:34 — forked from MikeMitterer/custom-darcula.css
Markdown Styles for all IDEA products
/*
Adapted from https://github.com/sindresorhus/github-markdown-css
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
---
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS Backup
Resources:
rBackupPlan:
Type: AWS::Backup::BackupPlan
Properties:
@tracphil
tracphil / gitlab.rb
Created July 1, 2023 12:48 — forked from dungdm93/gitlab.rb
Gitlab OAuth2 with Google
### OmniAuth Settings
###! Docs: https://docs.gitlab.com/ce/integration/omniauth.html
gitlab_rails['omniauth_enabled'] = true # Show "Signin with..." button in Login page
gitlab_rails['omniauth_allow_single_sign_on'] = ['google_oauth2'] # Create account automatically
# gitlab_rails['omniauth_sync_email_from_provider'] = 'saml'
gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'google_oauth2' # Redirect to provider login page when enter gitlab login page
# gitlab_rails['omniauth_block_auto_created_users'] = true # true: auto-created user must be admin approved
# gitlab_rails['omniauth_auto_link_ldap_user'] = false
# gitlab_rails['omniauth_auto_link_saml_user'] = false
# gitlab_rails['omniauth_external_providers'] = ['twitter', 'google_oauth2']
@tracphil
tracphil / keybase.md
Created June 29, 2023 11:47
keybase.md

Keybase proof

I hereby claim:

  • I am tracphil on github.
  • I am reavon (https://keybase.io/reavon) on keybase.
  • I have a public key ASDBPhSwhtsDD0hqibOwVLCzEbxw6kNaf7__U3E6IwmF7wo

To claim this, I am signing this object:

@tracphil
tracphil / README.md
Created June 27, 2023 11:28 — forked from Potherca/README.md
BASH script to clone all git repository in a Group on GitLab, or Organization on GitHub.

Introduction

Starting at a new employer always mean checking out various git repositories.

As the amount of repositories a company has grows, the time needed to clone all of those repositories also grows.

This script automates this task.

In order for this script to work, a personal access token is needed.

/*
Adapted from https://github.com/sindresorhus/github-markdown-css
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@tracphil
tracphil / README.md
Created June 6, 2023 23:37 — forked from AlainODea/README.md
Terragrunt config to auto-generate provider and backend config so you can apply library modules directly in infrastructure-live without an adapter module in infrastructure-modules

Using Terragrunt generate for extra DRY Terraform

Terragrunt config to auto-generate provider and backend config so you can apply library modules directly in infrastructure-live without an adapter module in infrastructure-modules.

@tracphil
tracphil / git-branching-diagram.md
Created May 17, 2023 12:57 — forked from bryanbraun/git-branching-diagram.md
Example Git Branching Diagram

Example Git Branching Diagram

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/bryanbraun/8c93e154a93a08794291df1fcdce6918/raw/bf563eb36c3623bb9e7e1faae349c5da802f9fed/template-data.xml
  4. Customize as needed for your team.