Skip to content

Instantly share code, notes, and snippets.

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

Rafael Mesquita rmsys

🏠
Working from home
  • Rio de Janeiro
View GitHub Profile
@vinceyuan
vinceyuan / redis-server-per-project
Last active January 30, 2020 05:21
Init script to start/stop redis-server for CentOS or amazon ec2 linux ami. You can run multiple redis-server on one server with this script. Just copy and replace 'per-project' with your project name in this file for each project.
#!/bin/sh
# From - http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
#
# redis - this script starts and stops the redis-server daemon
# Originally from - https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
# Modified by Vince Yuan https://gist.github.com/vinceyuan/9667435
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
@willurd
willurd / web-servers.md
Last active July 27, 2026 15:02
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