skip to Main Content

Repair Windows 10+ image

When windows 10 is not functioning properly OPEN CMD AS ADMIN # 1. use the System File Checker (SFC) command tool to repair the current setup sfc /scannow # 2. perform a quick check DISM /Online /Cleanup-Image /CheckHealth # 3.…

Read More

Enable/Disable ENA support on aws ec2

To enable ENA support, run one of the following commands: aws ec2 modify-instance-attribute --instance-id instance_id --ena-support If you encounter problems when you restart the instance, you can also disable ENA support using one of the following commands: aws ec2 modify-instance-attribute…

Read More

Turn off monitor using command line

The xset command mentioned in other answers will turn off all the monitors if you have multiple monitor setup. However if you want turn off only one or some of the monitor you should use xrandr. First run xrandr -q command, which will list all…

Read More

Delete migration In Laravel

Manually delete the migration file under app/database/migrations/my_migration_file_name.php Reset the composer autoload files: composer dump-autoload If you did run the migration (php artisan migrate), you may do this: a) Run migrate:rollback - it is the right way to undo the last migration b) If migrate:rollback does not work, do…

Read More

1071 Specified key was too long

Laravel Migration error: php artisan make:migration SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`)) As outlined in the Migrations guide to fix this…

Read More

Install PHP 7.2 MCrypt extension

## How to install mcrypt in php7.2 ## ## ## # # Check version php and pecl # php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php pecl version sudo apt-get install php-pear sudo…

Read More
Back To Top