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 win32com.client | |
items = [] | |
def encodeit(s): | |
if isinstance(s, str): | |
return unicode(s, 'utf-8') | |
else: | |
return s |
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
#!/usr/bin/env bash | |
GIST_ID=${1} | |
# Check if the GIST_ID param has a value | |
if [ -z "$GIST_ID" ]; | |
then | |
echo 'GIST_ID is a required parameter'; | |
else |
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 | |
# PRE-REQ | |
# - INSTALL JQ | |
# - Required enviroment variables: | |
# export VSTS_BASE_URL = "(ex: https://YOUR_ORG.visualstudio.com/)" | |
# export VSTS_TOKEN = "(ex: xpto...)" | |
# export VS_DEVENV = "(ex: "/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/devenv.exe")" | |
set -e |
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 | |
JQ_OUTPUT=$(mktemp) | |
cat /dev/stdin | while read -r l; | |
do | |
if echo $l | jq -C '.' > $JQ_OUTPUT 2>&1 | |
then | |
cat $JQ_OUTPUT | |
else |