by Garth | Aug 2, 2020 | Ubuntu
free -m mkdir -p /var/swapmemory cd /var/swapmemory #Here, 1M * 2000 ~= 2GB of swap memory dd if=/dev/zero of=swapfile bs=1M count=2000 mkswap swapfile swapon swapfile chmod 600 swapfile echo “/var/swapmemory/swapfile none swap sw 0 0” >> /etc/fstab #cat...
by Garth | Jul 9, 2020 | Servers
ssh ftpuser@domainname Orssh ftpuser@serverIPAddress Orssh user@mydomain.com
by Garth | Jun 18, 2020 | Laravel
https://hdtuto.com/article/laravel-remove-public-from-url-using-htaccess Step 1: Rename File In first step it is very easy and you need to just rename file name. you have to rename server.php to index.php at your laravel root directory. server.php INTO index.php Step...
by Garth | May 17, 2020 | HTML, Javascript, Jquery
<div class=”form-row”> <div class=”container”> <label class=”ants-label-light” >Club Emblem</label> </div> <div class=”input-group mb-6 container justify-content-center”> <div...
by Garth | Mar 19, 2020 | Javascript
document.onkeydown = function() { switch (event.keyCode) { case 116 : //F5 button event.returnValue = false; event.keyCode = 0; return false; case 82 : //R button if (event.ctrlKey) { event.returnValue = false; event.keyCode = 0; return false; } }...
by Garth | Mar 4, 2020 | Debugging, Laravel
Replace your .htaccess file with the below solution contents Solution: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule> # Set the “ea-php71” package as the default “PHP” programming language. <IfModule mime_module>...
by Garth | Jan 31, 2020 | Laravel
use this one through composer: composer create-project laravel/laravel This is an older one I tried previously use the one above first: composer create-project –prefer-dist laravel/laravel blog “5.8.*”
by Garth | Jan 29, 2020 | Laravel
composer global require “laravel/installer=~1.1” Since I installed laravel/installer globally via composer global require laravel/installer So I update laravel/installer globally via: composer global update laravel/installer Then do: composer...
by Garth | Dec 28, 2019 | CSS, Design
When creating mobile optimization stick to only 2 media queries. This is a good rule of thumb to keep your CSS compatible throughout and clean, there is no standard or rule saying you are not allowed to use other media queries.It’s just a something I learnt...
by Garth | Dec 28, 2019 | Design
Credit Author : https://www.nickkolenda.com/color-psychology/