You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
💭
g=c800:5
Alan Hemmings
goblinfactory
💭
g=c800:5
Gopher, C# hacker, chief cook and dishwasher at Goblinfactory Limited, I write some open source stuff some folk use.
Codegen to generate embedded (hard coded) index for full text search without stemming
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
ChatGTP test - Write a bash script that will encrypt the values in a text file
I asked ChatGTP the following
write a bash script that will encrypt the values in text file
with rows containing the following lines with the following format
KEY=VALUE
- script must run on OSX
- script must accept a password to use to encrypt the values
- no salt is required, favour simplicity,
how-to-run-elastic-on-azure.md courtesy of chat GPT (no warrantees provided)
Question to ChatGPT : how can run elasticsearch on Azure using containers, explained with sample code?
answer below
To run Elasticsearch on Azure using containers, you will need to create a container image that includes Elasticsearch and any dependencies it requires, and then push the image to a container registry such as the Azure Container Registry (ACR). You can then deploy the image to Azure using Azure Container Instances (ACI) or Azure Kubernetes Service (AKS).
Here is an example of how you can do this using Docker and the Azure CLI:
Create a Dockerfile for your Elasticsearch container image. This file should include instructions for installing Elasticsearch and any dependencies it requires. Here is an example Dockerfile that installs Elasticsearch on Ubuntu:
Copy code
TestControlC tests how to will kick of main's defer as well as background goroutine cancel when user presses control+c
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
Attempt at writing a C# equivalent to how GO routines are easily synchronised with channels and sync.Wait
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
how to use WaitGroup and signals to safely synchronise goroutines as "idiomatic" as I can think of ..given what I know at the moment. (not much! loL!)
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
how to signal to two services to stop, and have each service signal back when stopped and efficient sychronisation without sleep
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
using bool channels to signal a service to stop, and to signal when the service has stopped.
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
Start your azure function project, send test output and "functions" output to logfiles, run your dotnet flurl end to end tests, stop functions (less that 10 lines of code)
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
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