create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| services: | |
| kafka-1: | |
| image: bitnami/kafka:3.3 | |
| container_name: kafka-1 | |
| networks: | |
| - kafkanet | |
| environment: | |
| - KAFKA_CFG_NODE_ID=0 | |
| - KAFKA_CFG_PROCESS_ROLES=controller,broker |
| { | |
| "public_identifier": "yauri-attamimi", | |
| "profile_pic_url": "https://media.licdn.com/dms/image/D5635AQE6PDUcM-YX2Q/profile-framedphoto-shrink_400_400/0/1712016016219?e=1717088400&v=beta&t=jlpmR4nCjQyDNPSWPmF4UrLODAbXEHHP2RxYTYkGOMA", | |
| "background_cover_image_url": "https://media.licdn.com/dms/image/D5616AQHWcpy0RfpY2g/profile-displaybackgroundimage-shrink_350_1400/0/1678522191223?e=1721865600&v=beta&t=RlQtD51zPC9KGDxmbYMAGNNOKOO9AKI5ETeWz6Wxn-s", | |
| "first_name": "M Yauri M", | |
| "last_name": "Attamimi", | |
| "full_name": "M Yauri M Attamimi", | |
| "follower_count": "4500", | |
| "occupation": "Founder and CEO at bisnisin.asia", | |
| "headline": "Software Craftsman, AI (Prompt) Engineer", |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.example</groupId> | |
| <artifactId>user-management-service</artifactId> | |
| <version>1.0.0</version> | |
| <packaging>pom</packaging> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-parent</artifactId> | |
| <version>2.4.4</version> | |
| <relativePath/> <!-- lookup parent from repository --> | |
| </parent> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-parent</artifactId> | |
| <version>2.4.4</version> | |
| <relativePath/> <!-- lookup parent from repository --> | |
| </parent> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-parent</artifactId> | |
| <version>2.4.4</version> | |
| <relativePath/> <!-- lookup parent from repository --> | |
| </parent> |
| package main | |
| import ( | |
| "bufio" | |
| "errors" | |
| "fmt" | |
| "os" | |
| "strconv" | |
| "github.com/yauritux/cartsvc/pkg/adapter/repository/inmem" |
| package usecase | |
| import ( | |
| "fmt" | |
| "github.com/yauritux/cartsvc/pkg/domain/repository" | |
| ) | |
| type ProductUsecase struct { | |
| repo repository.ProductRepository |