Skip to content

Instantly share code, notes, and snippets.

View nadirollo's full-sized avatar

Nadir nadirollo

View GitHub Profile
@nadirollo
nadirollo / copy_tags.py
Created February 25, 2021 15:57
python script to copy tags from a packer build into different accounts
#!/usr/bin/env python
import boto3
import os
import json
script_dir = os.path.dirname(os.path.realpath(__file__))
owner_account = 'xxxxxxxxxxx'
#!/bin/bash
# Based off of http://kpumuk.info/mac-os-x/how-to-show-ssh-host-name-on-the-iterms-background/
# SSH with host name and IP address in background (only in iTerm.app)
## Customize!
BG_COLOR="#004051" # Background color (dark theme)
FG_COLOR="#a8ffa5" # Foreground color (dark theme)
GRAVITY="NorthEast" # Text gravity (NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast)
OFFSET1="20,10" # Text offset
OFFSET2="20,50" # Text offset
FONT_SIZE="50" # Font size in points
#!/bin/bash
# Based off of http://kpumuk.info/mac-os-x/how-to-show-ssh-host-name-on-the-iterms-background/
# SSH with host name and IP address in background (only in iTerm.app)
## Customize!
BG_COLOR="#004051" # Background color (dark theme)
FG_COLOR="#a8ffa5" # Foreground color (dark theme)
GRAVITY="NorthEast" # Text gravity (NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast)
OFFSET1="20,10" # Text offset
OFFSET2="20,50" # Text offset
FONT_SIZE="50" # Font size in points

Microservice:

  • API based
  • Use vault to get token with admin DB privileges to:
    • create new database
    • create a new readonly role where new users can be created from
    • create a new fullaccess role where new users can be created from
For microservice API - Manual? steps to after spinning up Vault

Revoke public privileges to connect to any database

Microservice:
- API based
- Use vault to get token with admin DB privileges to:
- create new database
- create a new readonly role where new users can be created from
- create a new fullaccess role where new users can be created from
###### For microservice API - Manual? steps to after spinning up Vault
# Revoke public privileges to connect to any database

Keybase proof

I hereby claim:

  • I am nadirollo on github.
  • I am nadirollo (https://keybase.io/nadirollo) on keybase.
  • I have a public key whose fingerprint is A763 C015 C3C5 665C 3E89 2CE0 26F2 125D FC69 C856

To claim this, I am signing this object:

job "env-fetcher" {
datacenters = ["dc1"]
region = "europe"
group "demo-app" {
ephemeral_disk {
migrate = true
size = "500"
sticky = true
}

Handover Plan

Things to be handed over

  1. Zebra
  • Per Printhouse situation
  • Cloud Situation
  • Disaster Recovery
  • Automation
  • Future of zebra?
  • Cloud rendering?
  • Luigi

Steps to swap over CW psp manual rolled box to the chef one

charlesworth.lostmy.name -> prod1-zebra-cw.prod-1.lostmy.name

  • Syncing latest assets (Nadir)
  • deploying latest zebra (master branch, latest commit) (Nadir - Tatsuya to confirm latest master is good)
  • If we want to actually test the pdf rendering without affecting the prod. workflow:
    • stop the staging renderer (Nadir)
    • change (temporarily) the config of the box to pull jobs from the staging queue (Nadir)
    • render some orders and get the pdfs checked (QA?)
    • revert the configs to production with the render disabled (Nadir)
  • Schedule a time with Richard (Nadir)

sanity check of what i’m doing before asking Richard to swap over to the other box for production rendering:

  • Syncing latest assets (Nadir - Done)
  • deploying latest zebra (master branch, latest commit) (Nadir - Tatsuya to confirm latest master is good)
  • If we want to actually test the pdf rendering without affecting the prod. workflow:
    • stop the staging renderer (Nadir)
    • change (temporarily) the config of the box to pull jobs from the staging queue (Nadir)
    • render some orders and get the pdfs checked (QA?)
    • revert the configs to production with the render disabled (Nadir)
  • Schedule a time with Richard (Nadir)
  • Stop the renderer in the box LMN001