Skip to content

Instantly share code, notes, and snippets.

View vaporic's full-sized avatar
🏠
Working from home

Hugo Epinosa vaporic

🏠
Working from home
View GitHub Profile
@vaporic
vaporic / web-servers.md
Created October 27, 2016 23:40 — forked from jerolan/web-servers.md
Big list of http static server one-liners

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.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
My Atom Config Sync
@vaporic
vaporic / git-bare.md
Created September 30, 2016 19:38
Git Bare Configure Brnach

git symbolic-ref HEAD refs/heads/mybranch

@vaporic
vaporic / composer_install.md
Created September 26, 2016 16:59
Install composer ubuntu
@vaporic
vaporic / devastator-keyboard.sh
Created September 23, 2016 05:01
Config Keyboard Devastator
#!/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
@vaporic
vaporic / automate-deploy.sh
Created September 22, 2016 22:54
Automatic Deploy Git
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
@vaporic
vaporic / multiple_ssh_setting.md
Created September 22, 2016 21:02 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@vaporic
vaporic / permisos.sh
Created September 21, 2016 14:51
Permisos /var/www Ubuntu
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
@vaporic
vaporic / countries.sql
Created September 20, 2016 19:29
Countries SQL
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');