Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

lcisec@infosec.exchangeL

lcisec@infosec.exchange

@lcisec@infosec.exchange
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • What would be the easiest way for running automated local builds of websites on a Linux computer?
    lcisec@infosec.exchangeL lcisec@infosec.exchange

    @autiomaa I run this on a local machine to verify my changes are working as expected.

    ```#!/usr/bin/env python3

    import http.server
    from http.server import HTTPServer, BaseHTTPRequestHandler
    import socketserver

    PORT = 8080

    Handler = http.server.SimpleHTTPRequestHandler

    Handler.extensions_map={
    '.css': 'text/css',
    '.html': 'text/html',
    '': 'text/html', # Default is 'application/octet-stream'
    }

    httpd = socketserver.TCPServer(("", PORT), Handler)

    print("serving at port", PORT)
    httpd.serve_forever()
    ```

    Uncategorized webdev homelab
  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups