Skip to content

Instantly share code, notes, and snippets.

View almerindo's full-sized avatar
🎯
Focusing

Almerindo Rehem almerindo

🎯
Focusing
View GitHub Profile
@almerindo
almerindo / gist:85000b6548700c8951ab450683c81e69
Created September 10, 2021 23:04
AWS CLI LOG Tail to see error in realtime
aws --profile querodelivery --region us-east-1 logs tail /aws/containerinsights/qd-prd-cluster/application --log-stream-name-prefix qd-places-service --filter-pattern error --follow
@almerindo
almerindo / read_dotenv_and_create_parameter_store_on_aws.sh
Last active July 31, 2023 11:08
Bash script to read .env and creates parameter store on aws.
#! /bin/bash
ENVS=$(egrep -v '^#' .env | xargs)
ARRAY_ENVS=($(echo $ENVS | tr ' ' ' '))
prop="name"
APP_NAME="$(node -pe "require('./package.json')['$prop']")"
TOTAL="${#ARRAY_ENVS[@]}"
TOTAL=$((TOTAL - 1))
@almerindo
almerindo / cloudSettings
Last active April 20, 2021 21:11
whitebeardVSCode
{"lastUpload":"2021-04-20T21:11:30.397Z","extensionVersion":"v3.4.3"}
@almerindo
almerindo / yaml2dot.py
Created April 11, 2020 23:17 — forked from rchrd2/yaml2dot.py
YAML to Graphviz
#!/usr/bin/python
# vim: fileencoding=utf-8
u'''Translate YAML written text to graphviz dot language
Input YAML text like below:
---
foo: