mkdir -p /tmp/a/b/c/d/e
touch /tmp/a/b/c/d/e/f.txt
tar -C /tmp/a -czvf a.tar.gz b
tar tvf a.tar.gz
drwxrwxr-x sergueik/sergueik 0 2022-11-01 14:47 b/
drwxrwxr-x sergueik/sergueik 0 2022-11-01 14:47 b/c/
drwxrwxr-x sergueik/sergueik 0 2022-11-01 14:47 b/c/d/
drwxrwxr-x sergueik/sergueik 0 2022-11-01 14:48 b/c/d/e/
-rw-rw-r-- sergueik/sergueik 0 2022-11-01 14:48 b/c/d/e/f.txt
kubectl expose deployment nginx-hello --target-port=8080 --type=NodePort
--selector=
(попробовать прямо сейчас негде)kubectl autoscale deployment nginx-hello --max 10 --min 1 --cpu-percent 10
String sql = "INSERT INTO survey (id,text) VALUES(?,?)";
PreparedStatement preparedStatement = connection.prepareStatement(sql);
preparedStatement.setInt(1, 12);
preparedStatement.setString(2, "test");
preparedStatement.executeUpdate();
insert into таблица (имена столбцов через запятую) values (значения столбцов через запятую в том же порядке)
profile_dir_name = 'CustomProfile'
user_data_dir = '{0}\\AppData\\Local\\Google\\Chrome\\User Data\\{1}'.format(os.getenv('USERPROFILE'), profile_dir_name), profile_dir_name)
options.add_argument('--profile-directory={}'.format(profile_dir_name))
options.add_argument( 'user-data-dir={}'.format(user_data_dir))
- Plugin Repositories (plugin dependency must include a version number for this source)
runtimeOnly group: 'com.google.gms', name: 'google-services', version: '3.1.1'
dependencies {
classpath 'com.google.gms:google-services:3.1.1'
// ...
}
<?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>example</groupId>
<artifactId>basic</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>basic</name>
<description>Demo Springboot app</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.4.RELEASE</version>
<relativePath/>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<finalName>${project.groupId}.${project.artifactId}</finalName>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<finalName>${finalName}</finalName>
</configuration>
</plugin>
</plugins>
</build>
</project>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<configuration>
<finalName>SWTsample</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>${project.groupId}.${mainClass}</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${project.groupId}.${mainClass}</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
все файлы rwxrwxrwx
бросайте на фюзе работать и ноду бросайте го кошерней а джава энтепрайзней