Welcome to my not so new site

Its not so new anymore, I mainly use the site for posting useful information that I use at work.

Well its about time I got around to get my site up on the internet again, I’ve been on and off (mostly off) for over a decade. That’s a long time, and no one noticed. Maybe its about time this changes.

Welcome… hopefully I’ll do something constructive here.

Posted in Uncategorized | Leave a comment

Manually Start/Stop WinPCAP on Windows

In an Admin Command prompt:

To start:

 net start npf

to stop:

 net stop npf
Posted in Tips and Tricks | Tagged , , | Leave a comment

Its been a year

Its been a year since my last update, oops.

Posted in Uncategorized | Leave a comment

How to regenerate new ssh server keys

SSH2 protocol

ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa

OpenSSH also support ECDSA key, you may generate a new one using:

ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa -b 521
Posted in Uncategorized | Leave a comment

Windows XP stuck at login screen in activation loop

  1. Start your computer in safe mode (use plain safe mode).
  2. Login using an administrator user account. If you could login to the hidden Administrator account, then use that.
  3. Go to Windows Start menu and open RUN. Or you can press on your keyboard the Windows key and letter R.
  4. Type CMD in the run textbox and click on OK. This will open the command prompt window.
  5. Type these commands and press enter. Then click OK on each prompts :
    regsvr32 regwizc.dll
    regsvr32 licdll.dll
  6. Type this last command (type exactly as what you see here):
    rundll32.exe syssetup,SetupOobeBnk
  7. Wait for a couple of minutes because the last command will not show anything on the screen. However, it will reset the licensing components in the background.

 

From: Windows XP stuck at login screen in activation loop

Posted in Uncategorized | Leave a comment

Disable soft keys in Android

Edit build.prop
Add the following to the end of the file:

qemu.hw.mainkeys=1
Posted in Tips and Tricks | Tagged , , | Leave a comment

XDA [How-To] Disable Forced Encryption

XDA [How-To] Disable Forced Encryption – Nexus 6

 

 

  • Extract the Android Image Kitchen zip Android_Image_Kitchen.zip
  • drag in the boot.img file you wish to modify onto the unpackimg.bat file
  • you should get a command window pop up, it should say succesfull and you will get a few folders added.
  • open the ramdisk folder and open the fstab.shamu file using notepad++
  • search for forceencrypt and replace it with encryptable. there should be only one case where this exists.
  • save the file, go back to the root of the image kitchen folder, and run the repackimg.bat file.
  • you should get a new boot.img build called image-new.img, you can use this now to flash on your device

 

 

Posted in Tips and Tricks | Tagged , | Leave a comment

Tell apt-get not to install “recommends” packages in Debian Linux

Tip: Tell apt-get not to install “recommends” packages in Debian Linux

Preview:

Purpose: If you are using Debian Lenny and are installing software packages using apt-get then you might have noticed the new version of apt-get in Lenny installs the “recommends” packages automatically thus increasing the number of packages installed on your computer. The “apt-get” in Debian Etch (4.0) did not use to install “recommends” packages.  In this post, we will see how we can permanently tell apt-get NOT to install “recommends” packages.  For those of you who are not sure about Debian’s “depends”, “recommends” and “suggested” packages, please refer to this doc. This is important if you have limited storage space on your system, say for example an embedded system.

Posted in Tips and Tricks | Leave a comment

UUID/GUID using Windows Powershell

get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID

Posted in Tips and Tricks | Leave a comment

Searching for a String in a file on Linux

Here’s one way using grep:

grep -rnw <dir> -e <pattern>
Posted in Tips and Tricks | Tagged | Leave a comment

Adjust Windows DNS settings from command line

If you ever wanted to change the DNS settings on Windows 7/8 here’s how you do it.

Open a command prompt with Administrator privileges, and type the following:

netsh interface ip set dns name="Wi-Fi" static 192.168.1.2

Secondary DNS:

netsh interface ip add dns name="Wi-Fi" 192.168.1.1index=2

If you want to change to use DHCP Server provided DNS do this:

netsh interface ip set dnsservers name="Wi-Fi" source=dhcp
Posted in Tips and Tricks | Tagged | Leave a comment