Skip to main content

Posts

Optimize Wordpress

Optimize your website is important steps after you made it. If you build your website using wordpress, i found three steps to optimize it. First Step – Optimize 1) Upgrade to latest WordPress release 2) Delete all the unused or unwanted plugins (this is the first reason why you need 10-12 seconds to load your homepage). 3) Clean up your css code using a css compressor like styleneat, cleancss or csstidyonline. 4) Reduce the PHP and database queries. For example, on your header, use absolute URLs (http://www.yourdomain.com/wp-content/themes/example/style.css instead of ). Second Step – Install some plugins After that you can install 6 ‘magic’ plugins: 5) WP Super-Cache (to cache all the dynamic requests as static html files). 6) WP Tuner (to analyze your database and to find slow queries or plugins). 7) WP Smush.it (to reduce image file sizes using Smush.it) 8) WP-DBManager (again, to optimize and repair the database) 9) Disable Revisions and Autosave (every time you change a post you c...

How To Install VB6 on Windows 7

After surfing around the net, I've found very little information regarding installation of VB6 on Windows 7. Most of the information out there is for Vista, and most of it is queries for assistance. You may be wondering why someone would want to utilize VB6 on a shiny new operating system like Windows 7. Or even Vista for that matter. There are about a bazillion legacy applications out there that have to be supported, and people like me who speak VB6 need to have the tools installed on our workstations in order to implement and test updates and such for these legacy applications. It also helps out when I need to squirt out a quick tool for use in my daily work. So without further delay, here is the process that I have used on my Windows 7 machines to install Visual Basic 6. 1. Turn off UAC. 2. Insert Visual Studio 6 CD. 3. Exit from the Autorun setup. 4. Browse to the root folder of the VS6 CD. 5. Right-click SETUP.EXE, select Run As Administrator. 6. On this and ...

How To Disable UAC in Windows 7

We can disable UAC in Windows 7 using these steps: 1. Run Registry Editor (RegEdit) by typing regedit at command prompt or at startmenu->run 2. Locate following registry key: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionPoliciesSystem 3. Locate the following REG_DWORD value: EnableLUA 4. Set the value of EnableLUA to 0. Now Exit from Registry Editor and Restart the computer.

Tips Recover MySQL root Password

One day i forgot myql root user password. Then i found simple steps to change it without reinstall mysql server. 1. Open console and stop mysql service #/etc/init.d/mysqld stop 2. Then i run this service without password #mysqld_safe --skip-grant-tables you can run it as a background if you would not use another console (shell) #mysqld_safe --skip-grant-tables & 3. Then i open another console and connect to mysql #mysql -u root output mysql> 4. Next, i setup new password for root user mysql> use mysql; mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root'; mysql> flush privileges; mysql> quit 5. Last step is stop mysql service #/etc/init.d/mysqld stop 6. Finish, and start mysqld and test new password #/etc/init.d/mysqld start #mysql -u root -p

Install DHCP Server

Last week i need to install dhcp on my server. My server use Linux Ubuntu 8.04 as an operating system. These are the steps : 1. Install DHCP3 Server sudo apt-get install dhcp3-server 2. Edit Configuration of DHCP sudo nano /etc/dhcp3/dhcpd.conf This is the configuration of /etc/dhcpd.conf # Sample /etc/dhcpd.conf # (add your comments here) default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.254; option domain-name-servers 192.168.1.1, 192.168.1.2; option domain-name "mydomain.example"; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.100; range 192.168.1.150 192.168.1.200; } Save this configuration using Ctrl+O and Exit using Ctrl+X. This configuration will result in the DHCP server giving a client an IP address from the range 192.168.1.10-192.168.1.100 or 192.168.1.150-192.168.1.200. It will lease an IP address for 600 seconds if the client doesn't ask for ...

25 Best SSH Tricks and Commands Part 2

Another ssh tricks you shoud know are : 11) Port Knocking! knock 3000 4000 5000 && ssh -p user@host && knock 5000 4000 3000 Knock on ports to open a port to a service (ssh for example) and knock again to close the port. You have to install knockd. See example config file below. [options] logfile = /var/log/knockd.log [openSSH] sequence = 3000,4000,5000 seq_timeout = 5 command = /sbin/iptables -A INPUT -i eth0 -s %IP% -p tcp –dport 22 -j ACCEPT tcpflags = syn [closeSSH] sequence = 5000,4000,3000 seq_timeout = 5 command = /sbin/iptables -D INPUT -i eth0 -s %IP% -p tcp –dport 22 -j ACCEPT tcpflags = syn 12) Remove a line in a text file. Useful to fix ssh-keygen -R In this case it’s better do to use the dedicated tool 11) Port Knocking! knock 3000 4000 5000 && ssh -p user@host && knock 5000 4000 3000 Knock on ports to open a port to a service (ssh for example) and knock again to close the port. You have to install knockd. See example config file below. [o...

25 Best SSH Tricks and Commands Part 1

OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions. SSH is an awesome powerful tool, there are unlimited possibility when it comes to SSH, heres the top Voted SSH commands 1) Copy ssh keys to user@host to enable password-less ssh logins. ssh-copy-id user@host To generate the keys use the command ssh-keygen 2) Start a tunnel from some machine’s port 80 to your local post 2001 ssh -N -L2001:localhost:80 somemachine Now you can acces the website by going to http://localhost:2001/ 3) Output your microphone to a remote computer’s speaker dd if=/dev/dsp...