Last active
April 27, 2016 13:21
-
-
Save stfnhh/6453887 to your computer and use it in GitHub Desktop.
Creates a simple httpd server in your current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
P=5000; | |
if [ -n "$1" ]; then | |
P=$1 | |
fi | |
ruby -run -e httpd . -p $P; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install:
sudo curl -s https://gist.github.com/stfnhrrs/6453887/raw/6a3eb1f11d97e95fc01e1b571df6ea7f8d6fa40b/Simple+Server > /usr/local/bin/ss && chmod +x /usr/local/bin/ss
Usage:
ss PORT