Skip to content

Instantly share code, notes, and snippets.

View thoughtful-solutions's full-sized avatar

Thoughtful Solutions, Creatively Implemented and Communicated thoughtful-solutions

View GitHub Profile
@thoughtful-solutions
thoughtful-solutions / Windows_Subsystem_for_Android.md
Created October 16, 2024 09:27
Windows Subsystem for Android

1. Check Windows version (must be 22000 or higher)

[System.Environment]::OSVersion.Version

2. Enable required Windows features

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

3. Restart your computer (do this manually)

@thoughtful-solutions
thoughtful-solutions / Windows_Aliases.md
Created August 8, 2024 08:48
Windows Aliases via CMD or BAT files

Windows Aliases

It can be very useful to build aliases quickly for windows hosts. This can be done effectively with a CMD/BAT file

Example

This executes a command and if there are parameters passed to the command then they are added to the command

C:\Users\msn\AppData\Local\Microsoft\WindowsApps>more azrg.bat
@thoughtful-solutions
thoughtful-solutions / Azure_FAAS_and_COSMOSDB.md
Last active August 8, 2024 15:57
Azure FAAS and COSMOSDB

Create a function for cosmosdb

Authenticate to Azure

az login

az account show

az account list

Some musing on github (gh) cli

Configure on dnf Linux access.

Install packages

sudo dnf install 'dnf-command(config-manager)'
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh --repo gh-cli

Configure Authentications

@thoughtful-solutions
thoughtful-solutions / Azure_CosmosDB_Emulator.md
Last active July 4, 2024 14:33
Azure_CosmosDB_Emulator.md
@thoughtful-solutions
thoughtful-solutions / azure-devops.md
Last active October 24, 2022 10:26
Azure DevOPS

Azure DevOPS cli

Configure the CLI

Begin by creating ensuring the tools are in place to work with Azure DevOPS

scoop install azure-cli
az extension --name azure-devops
az extension list

Azure-AD

Install PowerShell AZ modules

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
Install-Module -Name AzureAD -Scope CurrentUser

Connect Azure Account

Gherkin Recorder

One problem with starting people working with Gherkin is getting them to interact with web pages quickly and record the syntax for those interactions

gherkin-scenario-builder provides a way to introduce people to the gherkin syntax and the associated output.

Install Chromium

## to build a container
'''
docker build . -t test
'''
## to run a container
'''
docker run --rm -ir --entrypoint bash test
'''
## to delete zombine containers
'''
@thoughtful-solutions
thoughtful-solutions / python-module.md
Created January 6, 2022 09:28
Python Module redirection

Python Module Redirection

It is occassionally necessary to redirect where a python module is installed from.

Using a module from the existing sites structure

from pprint import pprint
from pii_generator.pii_data_generator import PIIGenerator