Skip to content

Instantly share code, notes, and snippets.

@franz-net
franz-net / README.md
Created December 8, 2021 09:10
Bash script to init a Flask App.

Flask_init

What does it do?

  • Creates a folder called as the argument app_name in the path provided
  • Creates a python virtual environment in that path
  • Installs Flask in the virtual env
  • Creates a boilerplate application
  • Creates gitignore
  • Creates a bootstrap script that automatically activates the virtual environment and runs the app when executed
  • Can also create a requirements.txt file if the parameter --package is passed
@krnese
krnese / vmCondition
Last active December 8, 2021 04:54
This ARM template shows how to use conditions and logical/comparison functions to dynamically create windows/linux for prod/non-prod
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmNamePrefix": {
"type": "string",
"defaultValue": "VM",
"metadata": {
"description": "Assing a prefix for the VM you will create."
}