Skip to content

Instantly share code, notes, and snippets.

View guleriagishere's full-sized avatar

Naveen Guleria guleriagishere

View GitHub Profile
import boto3
import json
import glob
import sys
import os
import re
# Get latest version of task definition.
def list_image(taskdefname):
client = boto3.client('ecs')
@guleriagishere
guleriagishere / bash.sh
Last active February 15, 2021 14:10
random bash script
#!/bin/bash
SUBDOMAIN_SUFFIX=$1
REGION=$2
# Get list of directories modified in current commit.
LIST_OF_DIRS=$(git diff --dirstat=files,0 HEAD~1 | awk '{print $2}' | cut -d '/' -f 1 | uniq)
CURR_DIR=$(echo $(pwd))
for i in $LIST_OF_DIRS
do
package main
import (
"bufio"
"bytes"
"fmt"
"strings"
)
//func check(e err) {