Tuesday, April 02, 2019

termux powerline status configuration

termux is a terminal emulator and Linux environment on Android. To make it even better (looks), enable powerline-status. Start by installing git on termux, like:

x1@x1-pc:~$ pkg install git

Then clone termux-style, like:
x1@x1-pc:~$ git clone https://github.com/adi1090x/termux-style.git
x1@x1-pc:~$ cd termux-style
x1@x1-pc:~$ chmod +x setup
x1@x1-pc:~$ ./setup
x1@x1-pc:~$ termux-style

Then install Python, like:
x1@x1-pc:~$ pkg install python

Next up, install powerline-status, like:
x1@x1-pc:~$ pip install powerline-status

Update ~/.bash_profile to load powerline-status, like:


//xyz

Wednesday, January 02, 2019

Sample code to open and close Notepad using WhiteX

Sample code to open and close Notepad using WhiteX or TestStack.White.

Thursday, December 27, 2018

Mouse cursor disappers inside the VirtualBox VM when installing CentOS 7

Tried to create a VM using CentOS 7 ISO on VirtualBox 6. The VM booted fine and showed WELCOME TO CENTOS 7 screen, the issue is that clicking inside the VM would cause the mouse cursor to disapper. The VM is still usable but you have to use the keyboard to navigate the OS. To workaround the issue, shutdown the VM and change the settings System | Pointing Device to USB Tablet.

CentOS 7 networking not working on VirtualBox

It seems like this is by design (for security?) that CentOS 7 does not have networking working by default. Anyway, to fix this on VM running VirtualBox, edit /etc/sysconfig/network-scripts/ifcfg-enp0s3 and change the line that says ONBOOT=no to ONBOOT=yes and then reboot the machine.

Refs:
https://superuser.com/questions/915536/centos-7-virtualbox-no-internet-access

Saturday, December 01, 2018

List Windows file system filter driver

c:\> fltmc filters

A lot of file protection solutions are implemented as file system filter driver. This includes Symantec AV and Symantec ICSP (BlueCoat)

 Reference(s):
https://serverfault.com/questions/336630/is-there-a-quick-way-to-see-what-filesystem-filter-drivers-are-loaded-on-windows

Sunday, November 04, 2018

UnrealEngine GenerateProjectFiles.bat error - could be due to missing RPCUtility.exe

Tried to run GenerateProjectFiles.bat to build Unreal Engine from source (link),  but got error like below:

C:\>Users\x\UnrealEngine>GenerateProjectFiles.bat
Setting up Unreal Engine 4 project files...
GenerateProjectFiles ERROR: It looks like you're missing some files that are required in order to generate projects.  Please check that you've downloaded and unpacked the engine source code, binaries, content and third-party dependencies before running this script.

To fix, run setup.bat like:

C:\Users\x\prj\UnrealEngine>setup.bat

Note that you have to say no to the prompt Would you like to overwrite your changes (y/n)?.

Saturday, October 27, 2018

Quick Tip: Disable UAC from the command line

Using elevated command prompt, run:

c:\> reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

This will also disable "User Account Control: Turn on Admin Approval Mode."

Reference(s)
https://www.top-password.com/blog/tag/disable-uac-from-command-line/