content top

Solution to Windows 7 preview pane size problem

Short answer: Yes, there is a solution! You probably went through the entire internet looking for a solution for the nasty problem in Windows 7 where the preview pane magically grows in width seemingly randomly. Today it annoyed me so much that I made a solution, and it is easier than it looks. Basically all you need to do is DENY the 'Set Value' permission for your user account to this registry key, preventing Windows Explorer from writing...

Read More

MySQL command-line cheat sheet

As we all know, the hallmark of a good technician is the balance between laziness and productivity, where the important thing to note is that we are usually only productive about something that we want to be lazy about. I don't know if that makes much sense but I do know I have to keep looking up these simple commands online on how to do simple MySQL tasks on the command line, so I made a collection of commands I often use and put them on...

Read More

Passwordless SSH login with keypair

Yeah, shitloads of these guides are already out there. This is just a note more for personal use. This is useful for running rsync over SSH in an automated script.   Generate key on client side and secure it: mkdir ~/.ssh;cd ~/.ssh;ssh-keygen -t rsa;cat id_rsa.pub >> authorized_keys;chmod 600 authorized_keys   Use ssh-copy-id utility to copy public key to target machine: /usr/bin/ssh-copy-id -i ~/.ssh/id_rsa.pub...

Read More

Installing and using the Google Authenticator on WordPress

The process has to be done in 2 separate steps. First of all, you will need the Google Authenticator App which you can download for free from the Google Play Store, or the Apple App Store, and get it working on a device like an iPhone, iPad, Android phone, or Android tablet. We will be using time-based one-time passwords for this system. Time-based in this case means that the program will continuously generate a new key every 30 seconds,...

Read More

Windows route cheat-sheet

List all IPv4 routes: route print -4   Add route: route add (destination subnet start IP) mask (subnet mask) (target gateway IP) route add 172.16.47.0 mask 255.255.255.0 192.168.47.254   Delete route: route delete (destination subnet start IP) route delete 172.16.47.0   Make persistent (stay after reboot) - add flag -p: route add -p 172.16.47.0 mask 255.255.255.0 192.168.47.254   CIDR notation subnet mask cheat...

Read More

Removing hidden hardware (network adapters) from Windows 7

Sometimes hardware devices in Windows 7 are completely hidden in Windows 7. For example, I had a VMWare Windows 7 guest OS running on my ESXi 5.1 server and I did an 'upgrade virtual hardware' step. When I booted up the guest OS, the network connection was called "LAN connection 2" instead of just "LAN connection". Apparently Windows now saw a new network interface card, but the old one was still somehow hidden in the system. Opening up...

Read More
content top