Skip to content

Instantly share code, notes, and snippets.

View absalfaromanuel's full-sized avatar
💭
💻 working!

Abdiel A. Manuel absalfaromanuel

💭
💻 working!
View GitHub Profile
@absalfaromanuel
absalfaromanuel / web-servers.md
Created February 28, 2018 16:34 — 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

/etc/rc.d/rc.mysqld-instancia1

#!/bin/sh

# Depende del usuario bajo el cual se ha de ejecutar el demonio
USER_DB=mysql

# Los directorios y archivos deben permitir a $USER_DB el acceso a lectura y escritura
DATADIR_DB=/home/mysql/instancia1