This file contains hidden or 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 | |
| # Get the version of service1 | |
| version_service1=$1 | |
| # Get the version of service2 | |
| version_service2=$2 | |
| # Get any additional parameters | |
| additional_param_1=$3 | |
| # Start service1 with the specified version |
This file contains hidden or 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
| import subprocess | |
| import re | |
| import openai | |
| openai.api_key = "sk-peVXXXXXXXg8PPY0QuCYKPT" | |
| def run_diagnose_tool(): | |
| # Run the Docker Desktop self-diagnose tool and capture the output | |
| tool_location = "/Applications/Docker.app/Contents/MacOS/com.docker.diagnose" | |
| result = subprocess.run([tool_location, "check"], stdout=subprocess.PIPE) | |
| output = result.stdout.decode() |
This file contains hidden or 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
| import time | |
| import smbus2 | |
| import bme680 | |
| # Set up BME680 sensor object | |
| bus = smbus2.SMBus(1) # Use I2C bus 1 | |
| bme = bme680.BME680(bme680.I2C_ADDR_PRIMARY, bus) | |
| # Set up oversampling settings for temperature, pressure, and humidity readings | |
| bme.set_humidity_oversample(bme680.OS_2X) |
This file contains hidden or 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
| kind: Deployment | |
| metadata: | |
| name: node-app | |
| labels: | |
| app: node-app | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: node-app |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: node-app-service | |
| spec: | |
| selector: | |
| app: node-app | |
| ports: | |
| - name: http | |
| protocol: TCP |
This file contains hidden or 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
| version: '3.6' | |
| services: | |
| app: | |
| build: . | |
| x-develop: | |
| watch: | |
| - action: rebuild | |
| path: . | |
| command: sh -c "yarn install && yarn run dev" | |
| ports: |
This file contains hidden or 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
| Dapper + Testcontainers | |
| https://t.co/IHGwhjgsBx |
This file contains hidden or 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
| A @testcontainers for Azure Service Bus would be great. |
This file contains hidden or 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
| Soon we will start the last day of Java ON 2024. Just in couple hours we expect to hear from @AnnaChe_ about TestContainers and from @jessitron about OpenTelemetry. | |
| And we would start with panel discussion about AI in our life! | |
| Tune in for the last day: https://t.co/GZOMhgdNEu |
This file contains hidden or 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
| Java ON 2024 Day 3 - Anna Chernysheva (Docker) will be LIVE and will talk about @testcontainers best practices | |
| https://t.co/Fq0T4qH6N5 via @YouTube |