Eric Lucas on 10 Sep 2018 15:41:26 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Big list of http static server one-liners


Well, it is kind-of funny in a couple of spots...

$ ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port => 8000, :DocumentRoot => Dir.pwd).start'
"rwebrick" made me laugh out loud (thinking of the sort-of-homonym for that: rubric :-D )

$ gem install adsf   # install dependency
$ adsf -p 8000
Good grief - I could never type that quickly without it always being asdf the first time! 
Who came up with that name? 

There may be even more subtle word play in there that I just don't "get" 

Interesting find. Thanks JP
Eric


On Mon, Sep 10, 2018 at 6:18 PM, Aaron Mulder <ammulder@alumni.princeton.edu> wrote:
Dang, I thought this was going to be a big list of system admin humor.

Thanks,
       Aaron
On Mon, Sep 10, 2018 at 6:16 PM JP Vossen <jp@jpsdomain.org> wrote:
>
> Cool: https://gist.github.com/willurd/5720255
>
> To get on this list, a solution must:
> 1. serve static files using your current directory (or a specified
> directory) as the server root,
> 2. be able to be run with a single, one line command (dependencies are
> fine if they're a one-time thing),
> 3. serve basic file types (html, css, js, images) with proper mime types,
> 4. require no configuration (from files or otherwise) beyond the command
> itself (no framework-specific servers, etc)
> 5. must run, or have a mode where it can run, in the foreground (i.e. no
> daemons)
>
> Some samples:
>         $ busybox httpd -f -p 8000
>         $ python -m SimpleHTTPServer 8000       # Python 2.x
>         $ python -m http.server 8000            # Python 3.x
>
> Later,
> JP
> --  -------------------------------------------------------------------
> JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug