This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 4 ]; then | |
echo "usage: ./reencrypt.sh <Algo> <Key Source> <source file> <Key Target>"; | |
exit -1; | |
fi | |
ALGO=$1 | |
KEY_SOURCE=$2 | |
FILE=$3 | |
KEY_TARGET=$4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This script generates properties files to generate json | |
## depends on yq https://kislyuk.github.io/yq/ | |
## E.g input: | |
# ep1: | |
# connection: | |
# responseTimeout: "30" | |
## Output: | |
## "secure::ep1.connection.responseTimeout":"30", | |
cat <yamlfile>| yq -c 'paths(scalars) as $p | "secure::\($p|join(".")):\(getpath($p))",' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.region=="ap-southeast-2") | select(.service=="EC2") | .ip_prefix' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation | |
## pip3 install atlassian-python-api | |
## Running the script, do | |
## python3 main.py <bitbucket_email> <workspace> [0|1] > output.txt | |
## 0 for https, 1 for git protocol to get link of | |
## The above command generates links in output.txt | |
## To say clone all the repos do, | |
## while read in; do git clone "$in"; done < output.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
alias anypoint-cli='docker run --rm --name anypoint-cli -it integrational/anypoint-cli:3.0.0' | |
for env in TST SIT UAT PRD | |
do | |
echo "Environment is " $env | |
anypoint-cli --bearer $1 --organization $2 --environment $env --output text runtime-mgr cloudhub-application list | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pandas as pd | |
import glob | |
def merge_csvs(results_, column_prefix): | |
path = results_ # use your path | |
all_files = glob.glob(path + "/*.csv") | |
print(all_files) | |
li = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Nabeel Shaheen | |
email = | |
username = | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oc get secrets -o wide --all-namespaces=true | grep qat | grep mule | awk '{ system("oc get secrets --namespace=" $1 " " $2 " -o yaml | grep credentials | cut -d: -f2 | base64 -d") }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Copyright (c) 1999, 2013 Tanuki Software, Ltd. | |
# | |
# Java Service Wrapper sh script. Suitable for starting and stopping | |
# wrapped Java applications on UNIX platforms. | |
# Get the fully qualified path to the script | |
case $0 in | |
/*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
00:02:02,880 --> 00:02:07,488 | |
Thank god | |
2 | |
00:02:09,024 --> 00:02:09,792 | |
Thanks God | |
3 | |
00:02:10,816 --> 00:02:11,840 |
NewerOlder