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
Links for lookup: | |
1. https://linuxhint.com/install_docker_linux_mint/ | |
2. https://www.unixtutorial.org/install-docker-in-linux-mint-19-1 | |
3. https://forums.linuxmint.com/viewtopic.php?t=300469 | |
Steps to Follow: | |
1. remove old docker if any: sudo apt remove docker docker-engine docker.io containerd runc | |
2. update repo: sudo apt update | |
3. install basic dependencies: sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common |
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
-server | |
-Xms2g | |
-Xmx2g | |
-XX:NewRatio=3 | |
-Xss16m | |
-XX:+UseConcMarkSweepGC | |
-XX:+CMSParallelRemarkEnabled | |
-XX:ConcGCThreads=4 | |
-XX:ReservedCodeCacheSize=240m | |
-XX:+AlwaysPreTouch |
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
echo -n "AR2019Srabon" | openssl sha512 -hmac "TrollHunters" | |
36e8d232898fff2d7dfccab5b8945d8dd93e5459430784811d0096d44a22944031f4c5a9cecd11ca7a14da1a1de1dce0c1390dab22936355697d93c19c02dcf2 | |
dd if=/dev/random bs=20 count=1 status=none | base64 | |
68XClBM6qR7bd7smQKTLA+5JhkI= |
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://www.binarytides.com/linux-commands-monitor-network/ | |
1. Overall bandwidth - nload, bmon, slurm, bwm-ng, cbm, speedometer, netload | |
2. Overall bandwidth (batch style output) - vnstat, ifstat, dstat, collectl | |
2. Bandwidth per socket connection - iftop, iptraf, tcptrack, pktstat, netwatch, trafshow | |
3. Bandwidth per process - nethogs |
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
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties) | |
spring.datasource.url=jdbc:postgresql://localhost:5432/:DB_NAME: | |
spring.datasource.username= :username: | |
spring.datasource.password= :password: | |
# The SQL dialect makes Hibernate generate better SQL for the chosen database | |
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect | |
# Hibernate ddl auto (create, create-drop, validate, update) | |
spring.jpa.hibernate.ddl-auto = create-drop |
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
axios({ | |
url: 'http://localhost:5000/static/example.pdf', | |
method: 'GET', | |
responseType: 'blob', // important | |
}).then((response) => { | |
const url = window.URL.createObjectURL(new Blob([response.data])); | |
const link = document.createElement('a'); | |
link.href = url; | |
link.setAttribute('download', 'file.pdf'); | |
document.body.appendChild(link); |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name you.server.com; |
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
:: Disable SELinux ‼️ 🔴🔴🔴 | |
1. check selinux status → sestatus | |
2. RUN → vi /etc/sysconfig/selinux | |
3. SELINUX=disabled | |
4. reboot the server → reboot now | |
5. Check status again → sestatus 👓 | |
😐 Now Install Asterisk → | |
:: wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-current.tar.gz |
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
## Sublime Text 3 Serial key build is 3176 | |
> * Added these lines into /etc/hosts | |
127.0.0.1 www.sublimetext.com | |
127.0.0.1 license.sublimehq.com | |
> * Used the license key | |
----- BEGIN LICENSE ----- |
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
## Sublime Text 3 Serial key build is 3176 | |
> * Added these lines into /etc/hosts | |
127.0.0.1 www.sublimetext.com | |
127.0.0.1 license.sublimehq.com | |
> * Used the license key | |
----- BEGIN LICENSE ----- |