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 / composer_install.md
Created September 26, 2016 16:59
Install composer ubuntu
@vaporic
vaporic / git-bare.md
Created September 30, 2016 19:38
Git Bare Configure Brnach

git symbolic-ref HEAD refs/heads/mybranch

My Atom Config Sync
@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
@vaporic
vaporic / webpack.config.js
Created October 27, 2016 23:42 — forked from jerolan/webpack.config.js
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@vaporic
vaporic / update-php5.6.md
Last active October 24, 2022 21:04
Update php5.6 Ubuntu
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php5.6-curl php5.6-dev php5.6-gd php5.6-intl php5.6-mcrypt php5.6-json php5.6-mysql php5.6-opcache php5.6-bcmath php5.6-mbstring php5.6-soap php5.6-xml
@vaporic
vaporic / sanear_string.php
Last active December 20, 2016 16:20
Función para remplazar caracteres especiales
<?php
private function sanear_string($text)
{
$text = htmlentities($text, ENT_QUOTES, 'UTF-8');
$text = strtolower($text);
$patron = array (
// Espacios, puntos y comas por guion
'/[\., ]+/' => '-',
// Vocales