netstat -ano | findstr :PORT_NUMBER
taskkill /PID PID /F
#1. Export Database | |
mysqldump --host=YOUR_HOST --port=3306 --default-character-set=utf8 --user=YOUR_USERNAME --protocol=tcp --column-statistics=FALSE --skip-triggers "DB_NAME" | |
#Enter Password | |
#2. Export Database in Zipped Format if your database is too large. | |
mysqldump -h YOUR_HOST --set-gtid-purged=OFF -u YOUR_USERNAME -p DB_NAME | gzip > DB_NAME.sql.gz | |
#Enter Password |
/opt/ejabberd-20.12/bin# ./ejabberdctl registered_users localhost | sed -n '/admin/!p' | xargs -n 1 -I {} bash -c 'sudo ./ejabberdctl unregister {} localhost' |
### | |
###' ejabberd configuration file | |
### | |
### The parameters used in this configuration file are explained at | |
### | |
### https://docs.ejabberd.im/admin/configuration | |
### | |
### The configuration file is written in YAML. | |
### ******************************************************* | |
### ******* !!! WARNING !!! ******* |
var meterConversion = (function() { | |
var mToKm = function(distance) { | |
return parseFloat(distance / 1000); | |
}; | |
var kmToM = function(distance) { | |
return parseFloat(distance * 1000); | |
}; | |
return { | |
mToKm : mToKm, | |
kmToM : kmToM |
<Directory /usr/share/phpmyadmin> | |
Require ip 127.0.0.1 | |
Options FollowSymLinks | |
DirectoryIndex index.php | |
</Directory> |
function myPromiseFunction() { | |
//Change the resolved value to take a different path | |
return Promise.resolve(true); | |
} | |
function conditionalChaining(value) { | |
if (value) { | |
//do something | |
return doSomething().then(doSomethingMore).then(doEvenSomethingMore); | |
} else { |
[ | |
{ | |
"id":1, | |
"slug":"afghanistan", | |
"country":"Afghanistan", | |
"a2_code":"AF", | |
"dial_code":93 | |
}, | |
{ | |
"id":2, |
#sudo a2enmod proxy | |
#sudo service apache2 restart | |
<VirtualHost *:443> | |
ServerAdmin admin@koffeewithkode.com | |
ServerName www.koffeewithkode.com | |
ServerAlias koffeewithkode.com | |
SSLEngine On | |
SSLProxyEngine On | |
SSLCertificateFile "/etc/ssl/private/server.crt" |
image: feeni/node-chrome:latest | |
clone: | |
depth: full # SonarCloud scanner needs the full history to assign issues properly | |
definitions: | |
caches: | |
sonar: ~/.sonar/cache # Caching SonarCloud artifacts will speed up your build | |
services: | |
docker: |