Increase Your Apple Magic Mouse Speed

Magic Mouse Speed Increse
Increasing the magic mouse speed is incredibly simple using just a few Terminal commands. Here is exactly what you need to do:
  1. Open Terminal (Applications > Utilities > Terminal)
  2. Type this command to see your current mouse speed setting:
defaults read .GlobalPreferences com.apple.mouse.scaling

or

defaults read -g com.apple.mouse.scaling
  1. To increase the speed, enter a new scaling value like so. The default is 3 – try something between 4-12:
defaults write .GlobalPreferences com.apple.mouse.scaling 8

or

defaults write -g com.apple.mouse.scaling 5
  1. When ready, quit Terminal and reboot your Mac for the new setting to take effect.

That’s all there is to it! Once your system boots back up, you’ll instantly notice how much faster and more responsive your mouse movement is.

The reason this works is it overrides the default scaling value set by Apple. They configure the Magic Mouse Speed out of the box to be slower than the maximum speed allowed in System Preferences. But with this quick terminal command, you can boost it well beyond the standard limit.

How to deploy a create react app to Github pages

1. Add homepage

Open your package.json file present inside your react app and add homepage property.

"homepage":"https://yourusername.github.io/repository-name"

replace the above url with your github username and repository name.


2. Install gh-pages

Next, we need to install a package called gh-pages.

npm install --save-dev gh-pages

3. Deploy script

It’s time to add a deploy script commands in our package.json file.

"scripts":{
 "predeploy": "npm run build",
 "deploy": "gh-pages -d build",
}

Now in your terminal run npm run deploy

4. Setup source to gh-pages branch.

Once you successfully deployed open your GitHub code repository and click on settings tab if you scroll down you can see a GitHub Pages then choose a branch to gh-pages.

That’s it now you can see your react app URL like in the above image.

Password Protect Folder with Apache .htaccess file

Create new file named “.htaccess” in the folder with this Content

AuthName "Password Protected!"
AuthType Basic
AuthUserFile /home/cpanel_user_name/public_html/folder_name/.htpasswd
require valid-user

*Change cpanel_user_name & folder_name

Create new file named “.htpasswd” in the same folder with this Content (Username:Password)

asiq:12345

How To Increase VirtualBox’s Disk Space

Open a Command Prompt Window (Run as Administrator)
Change to VirtualBox’s Program Files Folder
Then type the code below in the Command Prompt.

VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB

replacing YOUR_HARD_DISK and SIZE_IN_MB with your Hard Disk name and desired size.
Like,

VBoxManage modifyhd D:\VB\Win10\win10.0.vdi --resize 20480

How To Manage Hibernate Mode in Windows 7 (hiberfil.sys File)

If you don’t use the Hibernate option in Windows 7, you can save some disk space by disabling it. Here we will look at a few different ways to manage hibernate options in Windows 7.

Enable or Disable Hibernate Through Command Prompt

To Enable Hibernate Mode Run this code in Command Prompt.
powercfg /hibernate on

To Disable Hibernate Mode Run this code in Command Prompt.
powercfg /hibernate off