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
set stamp=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2% | |
echo %stamp% |
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
# create directory | |
create directory dmpdir as 'c:/temp'; | |
select directory_name,directory_path from dba_directories; | |
# expdp owner | |
create user scott identified by tiger; | |
grant connect, resource to scott; | |
... | |
grant read, write on directory dmpdir to scott; | |
expdp scott/tiger@xe directory=dmpdir dumpfile=scott.dmp logfile=expdp.log |
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
jdbc:mysql:replication://localhost:3306/test | |
jdbc:mysql://localhost:3306/test |
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
<!-- pom.xml --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<configuration> | |
<excludes> | |
<exclude>*.properties</exclude> | |
</excludes> | |
</configuration> | |
</plugin> |
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
<!-- pom.xml --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<appendAssemblyId>false</appendAssemblyId> | |
<descriptors> | |
<descriptor>src/main/assemble/assemble.xml</descriptor> | |
</descriptors> | |
</configuration> |
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/sh | |
set -e | |
LIGHTY=/usr/local/sbin/lighttpd | |
LIGHTYCONFIG=/etc/lighttpd/lighttpd.conf | |
test -x $LIGHTY || exit 10 | |
test -e $LIGHTYCONFIG || exit 11 | |
. /lib/lsb/init-functions |
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
# ssh remote | |
ssh -N -f -R 2080:127.0.0.1:80 bulain@remoteserver | |
# ssh local | |
ssh -N -f -L 80:127.0.0.1:2080 bulain@remoteserver | |
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
# add submodule web-static | |
git submodule add [email protected]:bulain/web-static.git src/main/webapp/web-static | |
git submodule add [email protected]:bulain/migration.git src/migration | |
# fetch submodule from remote | |
git submodule init | |
git submodule update | |
git submodule foreach git pull |
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
#generate server and client keystore | |
keytool -genkeypair -alias server -keyalg RSA -dname "CN=Server,OU=Development,O=Test,L=Shanghai,S=SH,C=CN" -keystore server.keystore | |
keytool -genkeypair -alias client -keyalg RSA -dname "CN=Client,OU=Development,O=Test,L=Shanghai,S=SH,C=CN" -keystore client.keystore | |
keytool -list -keystore server.keystore | |
#copy server certificate into client.keystore | |
keytool -exportcert -alias server -file server-pub.cer -keystore server.keystore | |
keytool -importcert -alias server -file server-pub.cer -keystore client.keystore | |
keytool -list -keystore client.keystore |
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
<!--Spring Configuration--> | |
<http:conduit name="https://localhost:8083/WebService"> | |
<http:tlsClientParameters> | |
<sec:keyManagers keyPassword="keypassword"> | |
<sec:keyStore type="PKCS12" password="keypassword" file="keyfile"/> | |
</sec:keyManagers> | |
</http:tlsClientParameters> | |
</http:conduit> | |
<!-- Keystore File Format --> |