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
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <persistence version="2.1" | |
| xmlns="http://xmlns.jcp.org/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence | |
| http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> | |
| <!-- JTA based persistence unit --> | |
| <persistence-unit name="umaPu" transaction-type="JTA"> | 
  
    
      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
    
  
  
    
  | sudo truncate -s0 file | 
  
    
      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
    
  
  
    
  | { | |
| "postbuild": "npm run deploy", | |
| "predeploy": "rimraf ../src/main/resources/static/ && mkdirp ../src/main/resources/static", | |
| "deploy": "copyfiles -f dist/** ../src/main/resources/static/" | |
| } | 
  
    
      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
    
  
  
    
  | # size of folder | |
| $ du -sh repository/ | |
| #Zip directory | |
| $ tar -zcvf archive-name.tar.gz directory-name | |
| # -z : Compress archive using gzip program | |
| # -c: Create archive | |
| # -v: Verbose i.e display progress while creating archive | |
| # -f: Archive File name | 
  
    
      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 TABLE SPRING_SESSION ( | |
| PRIMARY_ID CHAR(36) NOT NULL, | |
| SESSION_ID CHAR(36) NOT NULL, | |
| CREATION_TIME NUMBER(19,0) NOT NULL, | |
| LAST_ACCESS_TIME NUMBER(19,0) NOT NULL, | |
| MAX_INACTIVE_INTERVAL NUMBER(10,0) NOT NULL, | |
| EXPIRY_TIME NUMBER(19,0) NOT NULL, | |
| PRINCIPAL_NAME VARCHAR2(100 CHAR), | |
| CONSTRAINT SPRING_SESSION_PK PRIMARY KEY (PRIMARY_ID) | |
| ); | 
  
    
      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
    
  
  
    
  | private void sendProcessResultByMail(File file, File result) { | |
| String zipFileName = file.getName().concat(".zip"); | |
| try (FileOutputStream fos = new FileOutputStream(zipFileName); | |
| ZipOutputStream zos = new ZipOutputStream(fos);) { | |
| MimeMessage message = mailSender.createMimeMessage(); | |
| // Enable the multipart flag! | |
| MimeMessageHelper helper = new MimeMessageHelper(message,true); | |
  
    
      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 ROLE R_MMS_ADMIN; | |
| GRANT CONNECT TO R_MMS_ADMIN; | |
| GRANT RESOURCE TO R_MMS_ADMIN; | |
| GRANT CREATE SESSION TO R_MMS_ADMIN; | |
| GRANT ALTER SESSION TO R_MMS_ADMIN; | |
| GRANT CREATE PUBLIC SYNONYM TO R_MMS_ADMIN; | |
| GRANT DROP PUBLIC SYNONYM TO R_MMS_ADMIN; | 
  
    
      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 BIGFILE TABLESPACE MMS_DATA | |
| DATAFILE 'mms_data.dat' | |
| SIZE 10M | |
| AUTOEXTEND ON; | 
  
    
      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
    
  
  
    
  | ########## RABBITMQ ########################### | |
| docker run -d --name rabbitmq -p 15672:15672 -p 5672:5672 rabbitmq:management | |
| ########## SFTP Server ########################### | |
| docker run -p 22:22 -d atmoz/sftp admin:1234:::upload | |
| docker run -v /d/tmp/upload:/home/admin/upload -p 2222:22 -d atmoz/sftp admin:1234 | 
  
    
      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
    
  
  
    
  | sqlplus sys/<password>@<SID> as sysdba | |
| select username, account_status, lock_date, expiry_date from dba_users where USERNAME='SYS'; | |
| alter user sys identified by password account unlock; |