This file contains hidden or 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
ARG PYTHON_VERSION=3.7.0-alpine3.8 | |
FROM python:${PYTHON_VERSION} as builder | |
RUN apk add --update make \ | |
cmake \ | |
g++ | |
RUN apk add \ | |
git \ |
This file contains hidden or 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
resources: | |
- repo: self | |
trigger: | |
branches: | |
include: | |
- master | |
# variables: | |
# container_registry: 'agogosacrdemo.azurecr.io/' |
This file contains hidden or 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
wget https://github.com/seebi/dircolors-solarized#installation |
This file contains hidden or 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
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1 | |
cat ~/.bashrc <<EOF | |
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then | |
GIT_PROMPT_ONLY_IN_REPO=1 | |
source $HOME/.bash-git-prompt/gitprompt.sh | |
fi | |
EOF | |
This file contains hidden or 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
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ | |
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ | |
xz-utils tk-dev libffi-dev liblzma-dev python-openssl | |
pyenv install 3.7.2 | |
pyenv virtualenv 3.7.2 venv-3.7.2 |
This file contains hidden or 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
@echo off | |
setlocal | |
rem Set your rbenv directry | |
set instpath="%USERPROFILE%\.rbenv-win" | |
rem Clone git repositry | |
call git clone https://github.com/nak1114/rbenv-win.git %instpath% | |
rem Config path |
This file contains hidden or 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
sudo apt-get install bmon slurm tcptrack |
This file contains hidden or 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
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - | |
sudo add-apt-repository \ |
This file contains hidden or 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 | |
pat="..." | |
serviceEndpointName="ago2-arm" | |
endpointId="66631332-2be3-46e4-b217-0c59776cc935" | |
echo "calling DevOps REST API" | |
body=$(curl --request GET \ | |
--url $SYSTEM_TEAMFOUNDATIONCOLLECTIONURI/$SYSTEM_TEAMPROJECT/_apis/serviceendpoint/endpoints/$endpointId?api-version=5.0-preview.2 \ |
This file contains hidden or 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
#creates a new file descriptor 3 that redirects to 1 (STDOUT) | |
exec 3>&1 | |
# Run curl in a separate command, capturing output of -w "%{http_code}" into HTTP_STATUS | |
# and sending the content to this command's STDOUT with -o >(cat >&3) | |
HTTP_STATUS=$(curl -w "%{http_code}" -o >(cat >&3) 'http://example.com') |