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
| # 在 Ubuntu 24.04 中設定 Fcitx5 大易輸入法 | |
| 在 Ubuntu 24.04 中設定 Fcitx5 大易輸入法,需要先安裝核心框架、接著安裝包含大易碼表的擴充套件,並調整系統輸入法設定。 | |
| ## 步驟 1:安裝 Fcitx5 核心與大易套件 | |
| 開啟終端機並執行以下指令,安裝 Fcitx5 框架、組態工具以及大易所在的碼表套件: | |
| ```bash | |
| sudo apt update |
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 | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |
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: app1-deployment | |
| namespace: default | |
| labels: | |
| app: app1 | |
| spec: | |
| replicas: 3 | |
| selector: |
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/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| name: test-web-deployment | |
| namespace: default | |
| labels: | |
| app: test-web | |
| spec: | |
| replicas: 3 | |
| selector: |
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 org.apache.kafka.clients.admin.*; | |
| import org.apache.kafka.clients.consumer.OffsetAndMetadata; | |
| import org.apache.kafka.common.TopicPartition; | |
| import java.util.*; | |
| import java.util.concurrent.ExecutionException; | |
| /** | |
| * Kafka的AdminClient函式庫,支持管理和檢查topics, brokers, configurations和ACLs。 |
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 org.apache.kafka.clients.admin.*; | |
| import org.apache.kafka.clients.consumer.OffsetAndMetadata; | |
| import org.apache.kafka.common.TopicPartition; | |
| import java.util.*; | |
| import java.util.concurrent.ExecutionException; | |
| /** | |
| * Kafka的AdminClient函式庫,支持管理和檢查topics, brokers, configurations和ACLs。 | |
| * 所需的最小的Kafka broker版本為0.10.0.0。有些API會需要更高版本的Kafka broker的話會註解在API中。 |
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 org.apache.kafka.clients.admin.*; | |
| import org.apache.kafka.common.KafkaFuture; | |
| import org.apache.kafka.common.errors.UnknownTopicOrPartitionException; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Properties; | |
| import java.util.concurrent.ExecutionException; |
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 org.apache.kafka.clients.admin.*; | |
| import org.apache.kafka.common.Node; | |
| import org.apache.kafka.common.TopicPartitionInfo; | |
| import java.util.*; | |
| import java.util.concurrent.ExecutionException; | |
| /** | |
| * Kafka的AdminClient函式庫,支持管理和檢查topics, brokers, configurations和ACLs。 | |
| * 所需的最小的Kafka broker版本為0.10.0.0。有些API會需要更高版本的Kafka broker的話會註解在API中。 | |
| */ |
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 org.apache.kafka.clients.admin.*; | |
| import org.apache.kafka.common.KafkaFuture; | |
| import org.apache.kafka.common.Node; | |
| import java.util.*; | |
| import java.util.concurrent.ExecutionException; | |
| /** | |
| * Kafka的AdminClient函式庫,支持管理和檢查topics, brokers, configurations和ACLs。 | |
| * 所需的最小的Kafka broker版本為0.10.0.0。有些API會需要更高版本的Kafka broker的話會註解在API中。 |
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 org.apache.kafka.clients.admin.AdminClient; | |
| import org.apache.kafka.clients.admin.DescribeClusterResult; | |
| import org.apache.kafka.clients.admin.KafkaAdminClient; | |
| import org.apache.kafka.common.Node; | |
| import java.util.Collection; | |
| import java.util.Properties; | |
| import java.util.concurrent.ExecutionException; | |
| /** | |
| * Kafka的AdminClient函式庫,支持管理和檢查topics, brokers, configurations和ACLs。 |
NewerOlder