Monday, July 11, 2016

Web Browsers Prevent System from Going to Sleep

Your web browser may prevent your system from going to sleep. You can override this by running the following commands in an elevated command prompt. Note, the commands below sets the override for Chrome, Firefox, and Edge.

powercfg /requestsoverride PROCESS chrome.exe AWAYMODE DISPLAY SYSTEM
powercfg /requestsoverride PROCESS firefox.exe AWAYMODE DISPLAY SYSTEM
powercfg /requestsoverride PROCESS MicrosoftEdge.exe AWAYMODE DISPLAY SYSTEM


Wednesday, June 29, 2016

Show Workweek in Windows System Tray

T-Clock is a utility that provides a more flexible date and time display in the system tray. It also includes the ability to show the work week.

Download (

Monday, September 07, 2015

Remove undeletable partitions on flash cards

There are times when partition manager won't let you remove partitions on a flash card. To remove these partitions, it is necessary to run diskpart.

Invoke diskpart in administrator mode.

list disk
select disk X (where X is the disk you wish to clear the partition table)

At this point, you can proceed to create a new partition using diskpart or creating a new partition using the partition manager.

Thursday, August 27, 2015

Rename users on Raspbian

To rename the default user pi on Raspbian to another name, run the following command
usermod -l <new_username> -d /home/<new_username> -m pi

Log into as root on Raspbian

To enable root login on Raspbian, you must give root a password.
sudo passwd

Default groups for user pi in Raspbian

groups pi
pi : pi adm dialout cdrom sudo audio video plugdev games users netdev input spi i2c gpio

Saturday, August 15, 2015

Simple Sharing with Samba on Raspbian

Install Samba

sudo apt-get update
sudo apt-get install samba samba-common-bin

Add a new section to the end of /etc/samba/smb.conf.

    comment = Ubuntu File Server Share
    path = <SHARE_DIRECTORY>
    writeable = yes
    guest ok = yes

Change the username of the share to nobody, and change the group of the share to nogroup.

chown -R nobody.nogroup *

Resolve Linux Hostnames in Windows

Install samba which includes nmbd.

apt-get install samba


Wednesday, July 22, 2015

Put Openelec to Sleep from Command Line

You can put an Openelec system to standby with the following command.

systemctl suspend

Sunday, December 28, 2014

Windows Resource Protection found corrupt files

I will transcribe this page. In the meantime, here is the screenshot of the problem and solution.

Getting the middle buttton on Lenovo trackpads to behave like a middle button

The default behavior of the middle button on Lenovo Trackpads does not generate a middle click. If you use linux or cygwin, you may want the middle button to behave like a middle button for pasting. If you use Windows, you may want the middle button to open new tabs in your browser.

Open the Ultranav Options, Manage Settings, Ultranav Tab, Trackpoint settings, settings in scrolling function section, choose 'smooth' button.

Firmware for Belkin N300 F7D7301 wireless router

This post contains links to the various firmwares available for the Belkin F7D7301 router.

Belkin Firmware

DD-WRT Firmware

Tomato Firmware


Calling bash from batch

I came across a neat trick for calling cygwin scripts using Windows batch files.