All posts by ray

Securely Connect to Linux Instances Running in a Private Amazon VPC

Important note: You should enable SSH agent forwarding with caution. When you set up agent forwarding, a socket file is created on the forwarding host, which is the mechanism by which the key can be forwarded to your destination. Another … Read more

PUTTYGEN DOWNLOAD AND INSTALL

Enable SSH Agent forwarding in window and Linux

Introduction

SSH agent forwarding allow you once you’ve SSHed into a machine to continue and SSH from it, to the other  machine, with the same key.

How to enable ssh agent forwarding in Putty

  • Open PuTTY
  • Under “Connection” -> “SSH”
Read more

How to configure cron jobs to run python script

Just use crontab -e and follow the tutorial here:

http://adminschoice.com/crontab-quick-reference

Look at point 3 for a guide on how to specify the frequency.

Based on your requirement, it should effectively be:

*/10 * * * * /usr/bin/python script.py
Read more

SUDO resets path and environment variables

Sudo resets PATH, along with many other environment variables, for security reasons. It doesn’t matter what is set in /etc/profile, unless you run sudo -i.

The sudo manual page, under SECURITY NOTES, gives an insight about the security implications, along … Read more

HP 8440p laptop – Setting Time and Date, Clock Losing Time, Time and Date Incorrect

Here is a proposed solution. … Read more

CSS3 @media Rule

The @media rule is used to define different style rules for different media types/devices.

Example
Change the background-color if the viewport is 480 pixels wide or wider:

@media screen and (min-width: 480px) {
    body {
        background-color: lightgreen;
    }
}
Read more

If you don’t want Google to have all of your passwords, you need to turn off Smart Lock

I know it’s convenient to have your Chrome browser save all of your passwords so that you don’t have to type them in each time. However, this is a big security risk.

If I were you, I would go to … Read more