Daily Archives: November 4, 2018

Git commands reset to master

checkout remote git fetch git checkout test glv git reset –hard HEAD git clean -xffd git pull   Or you can use the commands below: git reset –hard # removes staged and working directory changes ## !! be very careful with these !! ## you may end up deleting what […]

Add a second instance of MySQL on existing MySQL Server

//////my sql installation mysql_install_db –user=mysql –basedir=/usr –datadir=/var/lib/mysql2 –defaults-file=/etc/mysql/my_server2.cnf mysqld_safe –defaults-file=/etc/mysql/my_server2.cnf –user=mysql & netstat -tanp |grep 3307 mysql -u root -p -h -P 3307 //allow remote access GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘password’ WITH GRANT OPTION; FLUSH PRIVILEGES; //update password update user set password=PASSWORD(“mynewpassword”) where User=’root’; […]

Windows 10 sleeps after 3 minutes, no matter what

The windows 10 sleeps after 10 minutes no matter what. This is what I did to my system and worked very good:   1. Click on the windows icon 2. Type regedit 3. Right-click on regedit icon, click Run as administrator 4. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 5. Double click on Attributes […]