You can use the following PPA:
https://launchpad.net/~rwky/+archive/redis
.
You can install this repo running the command:
sudo add-apt-repository ppa:rwky/redis
sudo apt-get update
Try linux command chsh
.
The detailed commands is chsh -s /bin/bash
. It will prompt you to enter your password. Your default login shell is /bin/bash
now.
The following is quoted from man page:
The cash command changes the user login shell. This determines the name of the users initial login command. A normal user may only change the login shell for her own account, the superuser may change the login shell for any account.
This command will change the default login shell permanently.
#!/bin/sh | |
# CRON | |
## delete encrypted backups older than 5 days | |
#55 3 * * * find /path/to/backups-enc -mtime +5 -exec rm {} \; | |
## delete un-encrypted backups older than 1 days | |
#55 3 * * * find /path/to/backups -mtime +0 -exec rm {} \; | |
## database dump at 4am UTC = 8pm PST (9pm PDT) | |
#0 4 * * * /path/to/this/script |
[ This is for Javascript ]
jQuery.fn.center = function () {
this.css("position","absolute");
this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) +
$(window).scrollTop()) + "px");
this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) +
$(window).scrollLeft()) + "px");
return this;
}
function validate(evt) {
var theEvent = evt || window.event;
var key = theEvent.keyCode || theEvent.which;
key = String.fromCharCode( key );
var regex = /[0-9]|\./;
if( !regex.test(key) ) {
// alert('hello')
theEvent.returnValue = false;
if(theEvent.preventDefault) theEvent.preventDefault();
}
#!/bin/sh | |
# | |
# Shell script that configures gnome-terminal to use solarized theme | |
# colors. Written for Ubuntu 11.10, untested on anything else. | |
# | |
# Solarized theme: http://ethanschoonover.com/solarized | |
# | |
# Adapted from these sources: | |
# https://gist.github.com/1280177 | |
# http://xorcode.com/guides/solarized-vim-eclipse-ubuntu/ |
I am looking for an XHTML 1.1 valid way to make a DIV into a clickable link.
More better:
You can't make the div a link itself, but you can make an <a>
tag act as a block, the same behaviour a <div>
has.
a {
display: block;
}