Skip to content

Instantly share code, notes, and snippets.


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@
- 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 / 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
cai haproxy
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
View install ftp server 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
function(response) {
if (response.status !== 200) {
console.log('Looks like there was a problem. Status Code: ' +
View transfer pentalog
1. dtrantri/12345678
2 gitlab
3. jenkins
4. dev enviroment
View hibernate structure
Transaction Factory
You can’t perform that action at this time.