Skip to content

Instantly share code, notes, and snippets.

Fede Diaz nordri

Block or report user

Report or block nordri

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nordri
nordri / tsv2json.md
Last active Sep 30, 2019
Convert tab separate file (TSV) to JSON with jq
View tsv2json.md

Input file

echo -e "i-0b9adca882e5e6326\t	172.16.0.188
i-088dd69e5c3624888\t	172.16.0.102
i-0e70eac180537d4aa\t 172.16.0.85" > input.tsv

Command

@nordri
nordri / install_azure_cli.sh
Last active Jul 17, 2019
Install Azure Cli unattended
View install_azure_cli.sh
#!/bin/bash -x
apt-get update
apt-get install -y curl apt-transport-https lsb-release gnupg
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.asc.gpg
AZ_REPO=$(lsb_release -cs)
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" > /etc/apt/sources.list.d/azure-cli.list
apt-get update
You can’t perform that action at this time.