Skip to content

Instantly share code, notes, and snippets.

@svenlito
svenlito / .profile
Created June 15, 2021 01:10 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@svenlito
svenlito / GPG and git on macOS.md
Created June 4, 2021 03:08 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@svenlito
svenlito / list.txt
Created February 5, 2021 08:36 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
apigateway.amazonaws.com
application-autoscaling.amazonaws.com
appstream.application-autoscaling.amazonaws.com
appsync.amazonaws.com
@svenlito
svenlito / iam_users_group_with_role.hcl
Last active February 1, 2021 11:33 — forked from phisinees/iam_users_group_with_role
create iam users group with role
module "test_group" {
source = "terraform-aws-modules/iam/aws//modules/iam-group-with-policies"
version = "3.7.0"
name = "Test"
aws_account_id = local.master_account_id
attach_iam_self_management_policy = true
group_users = ["sven", "phisinee.s"]
@svenlito
svenlito / aws_glue.tf
Created December 14, 2020 12:53 — forked from jehptes/aws_glue.tf
Terraform Set up for AWS Glue
# Create an IAM role
resource "aws_iam_role" "glue" {
name = "AWSGlueServiceRoleDefault"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{

Lab 1: Lab Setup

Duration: 10 minutes

Each student should have received the lab workstation log in information from the instructor. This lab ensures that everyone can connect to the workstation, and verify that a Vault server is running so that vault commands can run against it.

  • Task 1: Connect to the Student Workstation
  • Task 2: Getting Help
  • Task 3: Enable Audit Logging
  • Task 4: Access Vault UI
? seed-microservice-go [no test files]
=== RUN TestAdd
--- PASS: TestAdd (0.00s)
=== RUN TestGetAll
--- PASS: TestGetAll (0.00s)
PASS
coverage: 100.0% of statements
ok seed-microservice-go/datasource 0.002s coverage: 100.0% of statements
? seed-microservice-go/docs [no test files]
? seed-microservice-go/src/config [no test files]