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
terraform output 2>/dev/null | cut -d ' ' -f1 |
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 | |
# | |
# Shortcut script to start Docker dev container in the current directory | |
# | |
# chmod+x ddev.sh | |
# ln -s ddev.sh /usr/local/bin/ddev | |
# | |
# Usage: ddev [-p port mapping] [-n container name] | |
# ddev -p 8080:8080 -n my-node-project | |
# ddev # container name defaults to the current directory |
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 | |
# | |
# Read file content, replace all occurences of multiple regex'es listed below, print result to the stdout | |
# Usage: ./sed-replace.sh FILENAME | |
# sed regex reference: http://www.gnu.org/software/sed/manual/html_node/Regular-Expressions.html#Regular-Expressions | |
# | |
# Example source.txt: | |
# | |
# lorem ipsum search 1 lorem | |
# lorem ipsum search 2 ending with number 5 lorem |
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
# Usage | |
# docker build -t maxivanov/az-dev-img - < Dockerfile | |
# docker run -it --rm maxivanov/az-dev-img | |
# | |
# az --version | |
# func --version | |
# node --version | |
# npm --version | |
# terraform --version |
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
# GraphQL query | |
curl 'http://localhost:7071/graphql' \ | |
-X POST \ | |
-H 'content-type: application/json' \ | |
--data '{ | |
"query":"{ posts { id } }" | |
}' | |
# GraphQL mutation | |
curl 'http://localhost:7071/graphql' \ |
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
az functionapp create \ | |
--resource-group proj-dev-resource-group \ | |
--storage-account projdevstorage \ | |
--plan proj-dev-app-service-plan \ | |
--runtime node \ | |
--runtime-version 12 \ | |
--os-type Linux \ | |
--functions-version 3 \ | |
--name proj-dev-function-app \ | |
--disable-app-insights true |
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
curl -XPUT 'http://localhost:9200/test21731881/' -d '{ | |
"settings" : { | |
"index" : { | |
"analysis" : { | |
"analyzer" : { | |
"my_ngram_analyzer" : { | |
"tokenizer" : "my_ngram_tokenizer" | |
} | |
}, | |
"tokenizer" : { |