git init project
git config --global user.name "Tim Berglund"
git config --global user.email "[email protected]"
git status
git add <file>
- Diff
git diff
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
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-oauth2-client</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-security</artifactId> | |
</dependency> | |
<dependency> |
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
saveAsORCTable<- function(df,master_table_name,partitionBy, mode="overwrite") { | |
dropSqlQuery<- paste("drop table if exists",master_table_name) | |
tempTableName<- paste("temp",master_table_name,sep = "_") | |
createTableQuery<-paste("create table ",master_table_name," using orc partitioned by (",toString(partitionBy),") as select * from",tempTableName,"limit 0") | |
createOrReplaceTempView(df,tempTableName) | |
columnNames<-colnames(df) | |
columnNames<-setdiff(columnNames,partitionBy) | |
columnNames<-append(columnNames,partitionBy) | |
insertQuery<-paste("insert into",master_table_name,"partition (",toString(partitionBy),") select",toString(columnNames),"from",tempTableName) | |
if(mode == "overwrite") { |
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
@Configuration | |
@EnableEncryptableProperties | |
public class MyApplication { | |
... | |
} |
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
<dependency> | |
<groupId>com.github.ulisesbocchio</groupId> | |
<artifactId>jasypt-spring-boot</artifactId> | |
<version>2.1.1</version> | |
</dependency> |
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
rajeev@Dell-Latitude-5480:~/.m2/repository/org/jasypt/jasypt/1.9.2$ java -cp jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="oracle" password=secretkey algorithm=PBEWithMD5AndDES | |
----ENVIRONMENT----------------- | |
Runtime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.181-b13 | |
----ARGUMENTS------------------- |
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.datasource.jdbc-url=jdbc:oracle:thin:@localhost:1521/pls00p10 | |
spring.datasource.username=oracle | |
spring.datasource.password=ENC(kmRyn5KQFd+M5hWMZEey1A==) | |
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver |
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
C:\Users\rajeev\.m2\repository\org\jasypt\jasypt\1.9.2>java -cp jasypt-1.9.2.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI | |
input="actual_text_that_you_want_to_hide" | |
password=your_secret_key | |
algorithm=PBEWithMD5AndDES |
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
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter</artifactId> | |
</dependency> |
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
<dependency> | |
<groupId>com.github.ulisesbocchio</groupId> | |
<artifactId>jasypt-spring-boot-starter</artifactId> | |
<version>2.1.0</version> | |
</dependency> |