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 java.util.Scanner; | |
public class TemperatureConverter { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int choice; | |
do { | |
displayMenu(); |
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
$ docker version | |
Client: | |
Cloud integration: v1.0.35+desktop.5 | |
Version: 24.0.7 | |
API version: 1.43 | |
Go version: go1.20.10 | |
Git commit: afdd53b | |
Built: Thu Oct 26 09:08:44 2023 | |
OS/Arch: windows/amd64 | |
Context: default |
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
services: | |
pull-model: | |
image: genai-stack/pull-model:latest | |
build: | |
context: . | |
dockerfile: pull_model.Dockerfile | |
environment: | |
- LLM=${LLM-gpt-3.5} | |
networks: |
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' | |
services: | |
db: | |
image: mariadb | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: your_root_password | |
MYSQL_DATABASE: your_database_name | |
MYSQL_USER: your_username | |
MYSQL_PASSWORD: your_password |
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
services: | |
app: | |
image: node:18-alpine | |
command: sh -c "yarn install && yarn run dev" | |
ports: | |
- 3000:3000 | |
working_dir: /app | |
volumes: | |
- ./:/app | |
environment: |
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
spec: | |
template: | |
spec: | |
containers: | |
- name: my-container | |
image: my-image | |
env: | |
- name: VARIABLE1 | |
valueFrom: | |
configMapKeyRef: |
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
<html> | |
<head> | |
<link rel="stylesheet" href="styles.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
<link rel="javascript" href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js"> | |
<link rel="javascript" href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"> | |
</head> | |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: nginx | |
template: |
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
from kubernetes import client, config | |
# Load kubeconfig file | |
config.load_kube_config() | |
# Create an instance of the Kubernetes API client | |
api_instance = client.AppsV1Api() | |
# Specify the name and namespace of the deployment to update | |
name = "my-deployment" |
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: tutorial | |
spec: | |
ports: | |
- name: 80-tcp | |
port: 80 | |
protocol: TCP | |
targetPort: 80 |