This file contains 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 = '0.1.0' | |
task fatJar(type: Jar) { | |
manifest { | |
attributes 'Implementation-Title': 'Gradle Jar File Example', | |
'Implementation-Version': version, | |
'Main-Class': 'com.mkyong.DateUtils' | |
} | |
baseName = project.name + '-all' | |
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } | |
with jar |
This file contains 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
function proxy_off(){ | |
unset http_proxy | |
unset https_proxy | |
brew services stop polipo | |
echo -e "已关闭代理" | |
} | |
function proxy_on() { | |
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" | |
export http_proxy="http://127.0.0.1:8123" |
This file contains 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 java:openjdk-8u111-jre-alpine | |
COPY repositories /etc/apk/ | |
RUN apk update && apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | |
&& echo "Asia/Shanghai" > /etc/timezone && apk del tzdata |
This file contains 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
package com.palmaplus.amapdata.test.tour | |
import java.util.{Collections, Properties} | |
import org.apache.kafka.clients.consumer.{ConsumerConfig, KafkaConsumer} | |
import org.apache.kafka.clients.producer.ProducerConfig | |
import com.palmaplus.amapdata.common.KafkaUtil | |
import com.palmaplus.amapdata.common.KafkaUtil.bootstrapServers |
This file contains 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
[repositories] | |
local | |
nexus-aliyun:http://maven.aliyun.com/nexus/content/groups/public | |
oschina:http://maven.oschina.net/content/groups/public/ | |
repo2:http://repo2.maven.org/maven2 | |
jboss:http://repository.jboss.com/maven2/ | |
sonatype:http://repository.sonatype.org/content/groups/public/ | |
ibiblio:http://mirrors.ibiblio.org/pub/mirrors/maven2/org/acegisecurity/ | |
oschina-ivy:http://maven.oschina.net/content/groups/public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] | |
sbt-releases-repo: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] |
This file contains 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
# | |
# This is the main Apache server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# | |
# Do NOT simply read the instructions in here without understanding |
This file contains 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 os, time, shutil, datetime | |
from stat import * | |
from os import listdir | |
from os.path import isfile, join | |
LASTUPDATETIME = "E:\code\python\\updatePip\lastUpdateTime" | |
SOURCEPATH = "D:\workspace\Saga\Tools\Saga1.0-Data\data\pipLib" | |
TARGETPATH = "D:\workspace\Saga\Tools\Saga1.0-Data\data\scripts\Win32\\" | |
TEMPLATEDATA = "D:\workspace\Saga\Tools\Saga1.0-Data\data\saga_template.data" | |
TEMPLATEDATATARGET = "D:\workspace\Saga\Tools\Saga1.0-Data\data\scripts\Win32\saga_template.data" |