让 AI 从"通才"变"专家"的秘密武器
我们使用AI工具,每次都需要通过prompt描述如何去执行任务,以求让AI理解我们的意图,更好的完成我们的任务。
但是对于一些重复性、特定领域的任务,我们每次执行任务时都需要对AI进行重复的调教。
| #! /bin/sh | |
| APP_NAME="SonarQube" | |
| # Location of the pid file. | |
| PIDDIR="${PIDDIR-.}" | |
| # By default, java from the PATH is used, except if SONAR_JAVA_PATH env variable is set | |
| findjava() { | |
| if [ -z "${SONAR_JAVA_PATH}" ]; then |
查找实现IMessageConsumeListener IStringMessageConsumeListener IConsumerListener IByteArrayMessageConsumeListener的java类问题
grep -rl --include=*.java -e "implements * IMessageConsumeListener" -e "implements * IStringMessageConsumeListener" -e "implements * IConsumerListener" -e "implements * IByteArrayMessageConsumeListener" .满足如下三点即可:
CREATE TABLE `date_time_ts` (
`long1` BIGINT(20) NULL DEFAULT NULL,
`string1` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_bin',spring-javaformat https://github.com/spring-io/spring-javaformat
<build>
<plugins>
<plugin>
<groupId>io.spring.javaformat</groupId>
<artifactId>spring-javaformat-maven-plugin</artifactId>
0.0.41java -XshowSettings:system -versionOperating System Metrics:
Provider: cgroupv1
Effective CPU Count: 16
CPU Period: 100000us
CPU Quota: 1600000us| allprojects { | |
| repositories { | |
| maven { | |
| allowInsecureProtocol = true | |
| url = 'https://maven.aliyun.com/repository/public' | |
| } | |
| def REPOSITORY_URL = 'https://maven.aliyun.com/repository/public/' | |
| //做一些国外不稳定的地址连接的替换 |
// 限制:消费组必须是存储在__offset主题中存活的,不然不会生产checkpoint从而导致没法转换!
RemoteClusterUtils.translateOffsets(new MirrorSourceConfig(props).targetAdminConfig("ROLE_ID"), sourceClusterAlias, "消费组ID", Duration.ofSeconds(10));OptionalLong translateDownstream(String group, TopicPartition sourceTopicPartition, long upstreamOffset) {
if (!readToEnd) {| <plugin> | |
| <groupId>com.diffplug.spotless</groupId> | |
| <artifactId>spotless-maven-plugin</artifactId> | |
| <version>${spotless.version}</version> | |
| <configuration> | |
| <java> | |
| <palantirJavaFormat> | |
| <!-- Optionally specify a version --> | |
| <version>${palantirJavaFormat.version}</version> | |
| </palantirJavaFormat> |