Skip to content

Instantly share code, notes, and snippets.

ledangtuanbk

Block or report user

Report or block ledangtuanbk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Git clone with port differrent 22
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
View 250 English phase
3. Do you speak English
4. A little but not very well.
5. What is your name?
6. My name 's Tuan
7. What do you do?
8. I'm a student. engineer, soft
9. how old are you?
10. I'm thirty year old
11. where do you come from?
12. i come from Vietnam, Chinese, Japan, Franch
@ledangtuanbk
ledangtuanbk / gist:9d933bac97c794638456e4fe136958c5
Created Oct 28, 2019
Install load_balancing mariadb 10.4
View gist:9d933bac97c794638456e4fe136958c5
- 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/
View maven
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 \
View linux
check application use by port
sudo lsof -P -i -n|grep '80.*LISTEN'
View ssl certificate
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
View install ftp server centos 7
https://phoenixnap.com/kb/how-to-setup-ftp-server-install-vsftpd-centos-7
create file /etc/vsftpd/chroot_list
add testuser to this file
View check cors online
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;
View transfer pentalog
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
View hibernate structure
SessionFactory
Session
Transaction
ConnectionProvider
Transaction Factory
You can’t perform that action at this time.