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
jdbc:mysql://{ip address}:3306/{db_name}?useSSL=false&serverTimezone=GMT-0&useUnicode=true&characterEncoding=utf-8 |
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
1. build app1 project with prod flag | |
ng build --prod | |
2. copy files under dist folder to the server | |
scp -r dist/app1/* {username}@{ip address of server}:/var/www/app1/ | |
3. set base href of application (app1 works on /) | |
<base href="/"> | |
4. build app2 project with prod flag |
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
AVD Manager > Right click on device name > Wipe data |
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
html file | |
<div style="padding: 10px;width: 500px;"> | |
<form [formGroup]="contactForm" (ngSubmit)="onSubmit()"> | |
<div class="form-group"> | |
<label for="address">Adres</label> | |
<textarea style="height: 120px;resize: none;" class="form-control" formControlName="address" | |
id="address" aria-describedby="address" placeholder="Adres girin"></textarea> | |
</div> | |
<div class="form-group"> |
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
1. Open Intellij go 'Edit Configurations...' | |
2. On Run/Debug Configuration page click plus(+) button | |
3. After click plus button select 'Javascript Debug' option and fill name and url (url must be the address of angular application) | |
--Execute project and debug --- | |
1. First execute angular app with: |
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
--create container | |
docker run --name {container name} -p 3306:3306 -e MYSQL_ROOT_HOST=% -e MYSQL_ROOT_PASSWORD={root password} -d {mysql image with tag} | |
--copy files to the container | |
docker cp create_db.sql {container name}:/create_db.sql | |
docker cp insert_db.sql {container name}:/insert_db.sql | |
-go into the container | |
docker exec -it {container name} /bin/bash |
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
open intellij | |
go to menu file->project structure | |
click facet | |
add jpa | |
after that you will see persistence window | |
right click project on persistence window | |
click assign data source and choose datasource | |
right click again and click generate persistence mapping -> by database schema | |
view tables and entities | |
click ok. |
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
sudo keytool -importcert -alias dev -file xxx.crt | |
-keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/security/cacerts |
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
1. put "debugger" line anywhere you want to debug | |
2. open chrome and go tools-> inspect devices | |
3. you will see phone that connected to pc | |
4. click inspect under your phone on the screen | |
6. then go :D |
NewerOlder