Month: January 2019

App4Autism – How to use Normal Activity – Scheduler

This article is to support App4Autism users to use Normal Activity inside the application. App4Autism is an amazing tool for parents to teach and educate their autism kids. Download: https://play.google.com/store/apps/details?id=vn.tientham.visualsupportforautism 1- With normal activity, you can add maximum 10 activities for a day (10 is a value required by psychologist). To add activity, you can …


Apache2 server administration – Handy guide

1- To restrict access to a port from certain ip address root@docker-adb-01:~# cat /etc/apache2/sites-enabled/000-default.conf ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined < Directory /var/www/html/> Order Deny,Allow Deny from all Allow from your_ip_address_1 Allow from your_ip_address_2 < /Directory> < /VirtualHost> Then, you will only allow your ip addresses to access to your apache server …


Deploy angular app into server

1- You need to build your project using: ng build –prod If you see some problem while launching your website, maybe it is because your build is optimized and it misses some needed component. In this case, you would need to set: … “optimization”: false, … You can find this line inside: angular.json or .angular-cli.json …


Handy commands for working with server using terminal

1- This is to see ports and which application is running on which port sudo netstat -plunt 2- To restart apache server sudo service apache2 restart or /etc/init.d/apache2 restart 3- To check firewall status sudo ufw status verbose 4- To change port listen on Apache server vi /etc/apache2/ports.conf 5- To make new site for Apache …


Keep ssh session alive for amount of time

TienTham:~ tientham$ vi .ssh/config TienTham:~ tientham$ cat .ssh/config # — For timeout settings dev — Host * ServerAliveInterval 30 TienTham:~ tientham$ 30 is the second where you ssh client will send the request alive to your server (you can change as you want) * is for all host, you can replace it with your specific …