Skip to content

Instantly share code, notes, and snippets.

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

Abel Miraval abelmiraval

🏠
Working from home
View GitHub Profile
@abelmiraval
abelmiraval / slugify.js
Created December 8, 2019 15:23 — forked from mathewbyrne/slugify.js
Javascript Slugify
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}
#Hola mundo
@abelmiraval
abelmiraval / web-servers.md
Created July 28, 2019 01:59 — forked from willurd/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
@abelmiraval
abelmiraval / Operaciones-Git
Created May 21, 2019 16:55 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas

Installfest

Follow these steps to make sure your computer is ready for the bootcamp:

  1. Update the system
$ sudo apt-get update
@abelmiraval
abelmiraval / docker-compose.yml
Created April 30, 2019 03:34 — forked from condef5/docker-compose.yml
Docker dotfiles
version: "3"
services:
admin:
image: condef5/admin-touch
container_name: admin
environment:
VIRTUAL_HOST: admin.touch-sound.net
restart: always
app: