Anil Dewani | Just Another Programming Blog

Installing an SSH server on the windows server will help you manage your server by remotely accessing the server terminal. It helps you control the server when you don’t have GUI access. All you need is an SSH client (such as puTTY), which helps you develop connection to the server in an encrypted manner. There [...]

No tags

In this article, we will see how to use “dialog” command to create a user-friendly interface for your bash scripts. dialog command helps us build text-based front-end windows. Still confused about what i am talking about exactly? The below image makes it all clear. We are gonna learn how to make such windows (there are [...]

·

Creating a personal server for your clan or group of friends is always good. you get to play what you want. In this tutorial i am gonna explain how to create a Counter strike 1.6 Nosteam linux server. Make sure to have around 1-2GB free disk space and an speedy internet connection. First of all, [...]

· · · · ·

Apr/10

28

Building an Login System in PHP

We will see how a simple login system can be build using php. First of all, we must create a database with any random name you like and fire the following SQL query to create a table ‘userpass’ with fields ‘id’,’username’ and ‘password’. CREATE TABLE IF NOT EXISTS `userpass` ( `id` int(4) NOT NULL AUTO_INCREMENT, [...]

· · · · ·

Apr/10

25

Rapidshare Download Manager Script in Bash

Just developed a simple and dirty rapidshare download manager script in bash. You can pass on the links via STDIN and the script would download them one by one. All the downloaded data is saved in /downloads directory. The script also generates a simple log file named “downloads.log” in the /downloads directory. The script works [...]

· · ·

Apr/10

24

what does > /dev/null 2>&1 mean ?

Ever been confused seeing those funny greater than signs being used on a unix system ? Let me try to explain those weird commands. The greater than sign means the output is being redirected somewhere else. Let’s have a look at an example to be more clear. wget ${url} > /dev/null 2>&1 In this example, [...]

· · · · · ·

Apr/10

23

Checking domain availability using PHP

There are many whois servers around the interweb, we can use such whois server to determine if an domain name is already taken or is still available to be registered. Mostly whois server are connected on port 43. Below is the php script i developed to check domains with com,net,org,info,biz and name extensions. <?php function [...]

· · ·

Apr/10

20

Download a youtube video using bash

Was bored today,so i just thought to code a simple bash script to download a youtube video using bash. You can have a look at the source to be clear about how it’s done. Mostly i have used wget command to download source and the video file from youtube and cut, awk and grep to [...]

· · ·

Apr/10

19

Tweet on twitter using Bash

Just developed a simple script which uses the twitter API to post tweet on your twitter account. Don’t forget to replace USERNAME with your twitter username and PASSWORD with your twitter password. #!/bin/bash #tweet using bash #coder : Anil Dewani read -p "Enter Tweet:" twit characters=`echo $twit | wc -m` if test $characters -gt 140 [...]

·

Apr/10

19

Best way to hash a password in PHP

Mostly everyone is fond of using md5() function to hash the password. It can easily be done as follows : $hash = md5($password); what if a user enters a weak password ? For example : “abcdef”. If the hash get compromised, anyone can use various brute forcing techniques to crack the hash easily. Thats one [...]

· · ·

Older posts >>

Theme Design by devolux.nh2.me