5 min Azure Functions compute with powershell 4 Github Actions

https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-github-actions?tabs=python 1 Create repos az-func-git-actionsgit@github.com:spawnmarvel/az-func-git-actions.git 2 Clone with cli 3 Make the function project and function 4 Visit URL http://localhost:7071/api/coinfun01prod 5 Push with cli Make the function app same as qa but add deployment But error https://github.com/shigeyf/ai-digitalmedia/issues/6 Installation failure – “Cannot find SourceControlToken with name GitHub” This error occurs due to connecting Github to multiple […]

Azure DevOps Pipelines CI/CD 2

Continue from New free organization New project New pipeline Oauth to git Created a new repos for test spawnmarvel/dev-ops01: Test Azure DevOps (github.com) Select it Approve and install Azure Pipelines Start with minimal pipeline Pipeline Lets take a step back, what do we have here Got to the ULR YAML schema reference | Microsoft Learn […]


CI/CD Workflow Deploy credentials Configure secret Add ARM Template Create workflow The workflow is trigger when there is a push event on the main branch, which modifies at least one of the two files specified. Workflow status https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-github-actions

Git pull request

https://opensource.com/article/19/7/create-pull-request-github Account donaldtest fork the repos from spawnmarvel: https://github.com/donaldtest/powershellcode git clone https://github.com/request-user/demo cd foldergit checkout -b new_branch git remote add upstream https://github.com/fork-user/demo Now you can make changes to the code. Once you push the changes to your repo, the Compare & pull request button will appear in GitHub. Click Compare & pull request Open a […]

Python Development in Visual Studio Code

https://realpython.com/python-development-visual-studio-code/ (Real Python and Jon Fincher tutorial) In this article, you’ll learn about Python development in Visual Studio Code, including how to: Install Visual Studio Code Discover and install extensions that make Python development easy Write a simple Python application Learn how to run and debug existing Python programs in VS Code Connect Visual Studio […]

Apache Solr 7.5 Index build with DirectUpdateHandler2 HTTP (with delete index)

http://lucene.apache.org/solr/guide/7_5/uploading-data-with-index-handlers.html Index Handlers are Request Handlers designed to add, delete and update documents to the index. In addition to having plugins for importing rich documents using Tika or from structured data sources using the Data Import Handler, Solr natively supports indexing structured documents in XML, CSV and JSON. The default in solrconfig.xml is an UpdateHandler: […]

pywinservice, running a simple Python script as a windows service

pywinservice, running a simple Python script as a windows service Code: https://github.com/spawnmarvel/pywinservice Make a virtualenv, store your code there. Make a run.py file, in that file you can start / call a database, a webcrawler, http, mail or whatever code you want to execute. When you are done with coding your scripts, test this: Make […]

Django database API foreign key 102

https://docs.djangoproject.com/en/2.0/topics/db/queries/   Our models have now changed and a new model has been added to e-lo. In RawText, we store the input, in BlobText we store the functions from TextBlob lib. If we remove the instance from the first table, we also need to remove it from the second. Ref on_delete = models.CASCADE Lets add […]

Django database API migrations and models 101

Django API Once you’ve created your data models, Django automatically gives you a database-abstraction API that lets you create, retrieve, update and delete objects. This document explains how to use this API. Refer to the data model reference for full details of all the various model lookup options. https://docs.djangoproject.com/en/2.0/topics/db/queries/ So our testmodel is a simple […]

Github 101 + SSH

Collaborate with Git – Training | Microsoft Learn Commit and push to a newly created repository: https://git-scm.com/docs Navigate to folder with git cmdAdd the files in your new local repository. This stages them for the first commit.Commit the files that you’ve staged in your local repository.At the top of your GitHub repository’s Quick Setup page, […]