Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcdf committed May 20, 2022
1 parent 63f3481 commit caf1fc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion content/dotfiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Sur la plupart des distributions Linux, vous avez même pas besoin de l'installe

## Conclusion

À choisir entre Python, du bash ou des cadriciels comme Ansible (ou [chezmoi](https://www.chezmoi.io/)[^1]) pour gérer ses dotfiles, il y a pas photo : Python, haut la main ! Voire même Ruby ou Node.js[^2] si c'est plus votre truc.
À choisir entre Python, du bash ou des cadriciels comme Ansible (ou [chezmoi](https://www.chezmoi.io/)[^1]) pour gérer ses dotfiles, il y a pas photo : Python, haut la main ! Voire même Ruby ou Node.js si c'est plus votre truc.

Pour les curieuses et curieux, le code est disponible ici : [github.com/mlcdf/dotfiles](https://github.com/mlcdf/dotfiles).

Expand Down
22 changes: 0 additions & 22 deletions scripts/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,6 @@ def pelican_run(cmd):
pelican_main(shlex.split(cmd))


def serve(c):
"""Serve site at http://$HOST:$PORT/ (default is localhost:8000)"""

class AddressReuseTCPServer(RootedHTTPServer):
allow_reuse_address = True

server = AddressReuseTCPServer(
CONFIG["deploy_path"],
(CONFIG["host"], CONFIG["port"]),
ComplexHTTPRequestHandler,
)

if OPEN_BROWSER_ON_SERVE:
# Open site in default browser
import webbrowser

webbrowser.open("http://{host}:{port}".format(**CONFIG))

sys.stderr.write("Serving at {host}:{port} ...\n".format(**CONFIG))
server.serve_forever()


def livereload():
"""Automatically reload browser tab upon file modification."""

Expand Down

0 comments on commit caf1fc3

Please sign in to comment.