Skip to content

Instantly share code, notes, and snippets.

@kmamit
kmamit / ubuntu sudo
Created September 26, 2012 07:20
Adding user to sudo list
usermod -a -G sudo username
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="memories.css" />
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<title>Memories</title>
</head>
<body>
@charset "utf-8";
/* CSS Document */
body
{
background:url(2.jpg);
background-repeat:no-repeat;
background-size:100% 645px;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="home.css" />
<title>Untitled Document</title>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="home.css" />
<title>Untitled Document</title>
</head>
<body>
@charset "utf-8";
/* CSS Document */
body
{
background:url(2.jpg);
background-repeat:no-repeat;
background-size:100% 645px;
}
@kmamit
kmamit / To stop the server
Created September 7, 2012 14:56
Server Commands
lsof -i tcp:80
kill -9 28901
psql partyplanner_development -U anuj
Password for user anuj:
# copy a single file to your server
scp mylocalfile.html root@myserverip:/var/www/html/
# copy a whole directory to your server
scp -r mylocaldirectory root@myserverip:/var/www/html/
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are sending their messages in a number format. This format represents the way that numbers and characters are padded on mobile’s keypad. One smuggler sends a text message to the second smuggler, using the numbers corresponding to the letters on the keypad. When the receiving smuggler gets the message, he simply opens the “create text message” function in his mobile and types the number string. This way the receiver finally reads the original message. For Example: - 6999066263304447777077766622337778 -----> message sent by the first smuggler. my name is robert---------> message decoded by the second smuggler. Where ‘0’ denotes the "space".
Explanation: By pressing ‘6’ (i.e. key’6’ one time) on the keypad, the mobile shows ‘m’ on display screen in write text message area. By pressing ‘999’ (i.e. key ‘9’ three times) on the keypad, the mobile