Given below are the list of enviroment variables required:
export SUBSCRIPTION_ID="--"
export AZURE_CLIENT_ID="--"
export AZURE_TENANT_ID="--"
export AZURE_CLIENT_SECRET="--"
from bs4 import BeautifulSoup | |
with open("txndoc.xml") as fobj: | |
data = fobj.read() | |
doc = BeautifulSoup(data, "xml") | |
responses = doc.find_all("Response") | |
csv_data = [] | |
for response in responses: |
import regex as re | |
def parse_version(data): | |
pattern = re.compile(r'\[([^][]+)\](\(((?:[^()]+|(?2))+)\))') | |
versions = [] | |
for match in pattern.finditer(data): | |
description, _, url = match.groups() | |
versions.append((description, url)) | |
return versions |
git config --global url."git@github.com:".insteadOf "https://github.com/" |
[url "git@github.com:"] | |
insteadOf = https://github.com/ |
#!/bin/bash | |
nextmonday=`date --date "$DAYCHECK +$((7-day_of_week)) days" +%Y%m%d` | |
filename="$HOME/reports/report-$nextmonday.txt" | |
echo >> $filename | |
vim "+normal G$" +startinsert $filename |
import boto.ec2 | |
import os | |
env = os.environ | |
aws_access_key_id = os.environ.get('AWS_ACCESS_KEY') | |
aws_secret_access_key = os.environ.get('AWS_SECRET_ACCESS_KEY') | |
REGIONS = ( | |
'us-east-1', |
I hereby claim:
To claim this, I am signing this object: