Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
My Atom Config Sync |
git symbolic-ref HEAD refs/heads/mybranch
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
#!/bin/bash | |
#Script para encender el LED del Scroll Lock | |
on=$(xset -q | grep 'Scroll Lock:' | cut -d ":" -f 7) | |
if [ $on == "off" ]; then | |
xset led named "Scroll Lock"; | |
else | |
xset -led named "Scroll Lock"; | |
fi |
mkdir ~/.ssh | |
vim known_hosts - if you already have known_hosts, skip this. | |
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | |
ssh-keygen -t rsa -C "user.email |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
sudo adduser $USER www-data | |
sudo chown $USER:www-data -R /var/www | |
sudo chmod 0755 -R /var/www | |
sudo chmod g+s -R /var/www |
CREATE TABLE `paises` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) DEFAULT NULL, | |
`nombre` varchar(80) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | |
INSERT INTO `paises` VALUES(1, 'AF', 'Afganistán'); | |
INSERT INTO `paises` VALUES(2, 'AX', 'Islas Gland'); | |
INSERT INTO `paises` VALUES(3, 'AL', 'Albania'); |