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. http://62.4.19.189:8090/spaces/viewspace.action?key=MAN dtrantri/12345678 | |
2 gitlab | |
tledang/tuan1989 | |
3. jenkins | |
http://62.4.19.164:8080/login?from=%2F | |
tledang/12345678 | |
4. dev enviroment |
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. go to page with http | |
2. in console run this command to check | |
fetch('./api/some.json') | |
.then( | |
function(response) { | |
if (response.status !== 200) { | |
console.log('Looks like there was a problem. Status Code: ' + | |
response.status); | |
return; |
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
https://phoenixnap.com/kb/how-to-setup-ftp-server-install-vsftpd-centos-7 | |
create file /etc/vsftpd/chroot_list | |
add testuser to this file |
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
check application use by port | |
sudo lsof -P -i -n|grep '80.*LISTEN' |
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. View dependency:tree | |
mvn dependency:tree | |
2. install jar to localhost | |
mvn install:install-file -Dfile=/home/ldt/Downloads/hitutils.jar -DgroupId=com.ldt -DartifactId=hit -Dversion=1.0 -Dpackaging=jar | |
3. install jar file to nexus repository | |
mvn deploy:deploy-file -DgroupId=com.ldt \ | |
-DartifactId=hit \ | |
-Dversion=1.0 \ |
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
- precondition | |
1. Turn off firewalld | |
2. Disable selinux | |
following this guide | |
https://www.digitalocean.com/community/tutorials/how-to-configure-a-galera-cluster-with-mariadb-on-centos-7-servers#step-6-%E2%80%94-creating-a-selinux-policy | |
cai haproxy | |
https://www.datadoghq.com/blog/how-to-collect-haproxy-metrics/ |
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. Connecting to a database behind a firewall | |
ssh -L 9000:localhost:5432 user@example.com database postgres run port 5432 only access from localhost | |
2. Remote port forwarding | |
ssh -R 9000:localhost:3000 user@example.com | |
Localhost running port 3000 and want to acess from internet port 9000 | |
- set GatewayPorts yes in /etc/ssh/sshd_config | |
- this can be done by autossh | |
autossh -M 0 -f -q -N -o "ServerAliveInterval 5" -o "ServerAliveCountMax 1" -o "ExitOnForwardFailure yes" -R 0.0.0.0:[SERVER]:localhost:[CLIENT_IP] [SERVER_USER]@[SEVER_IP] | |
- remember to run on reboot |
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
git clone ssh://git@62.4.19.165:9000/pointex-dev/manhattan-project.git | |
- remember add "ssh://" before git link | |
".git" is optional, working with both .git and without .git |
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. view ssl certificate text | |
openssl x509 -in cerfile.cer -noout -text | |
2. create private key and cert file | |
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 | |
3. Generate a self-signed certificate | |
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt | |
https://www.sslshopper.com/article-most-common-openssl-commands.html |
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
Key Sublime Text 3.2.1 Build 3207 | |
----- BEGIN LICENSE ----- | |
Member J2TeaM | |
Single User License | |
EA7E-1011316 | |
D7DA350E 1B8B0760 972F8B60 F3E64036 | |
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD | |
FA0A2ABE 25F65BD8 D51458E5 3923CE80 | |
87428428 79079A01 AA69F319 A1AF29A4 | |
A684C2DC 0B1583D4 19CBD290 217618CD |