Skip to content

Instantly share code, notes, and snippets.

View artickl's full-sized avatar
Never say never!

Artem Zavyalov artickl

Never say never!
View GitHub Profile
artickl /
Last active August 13, 2020 07:17 — forked from rachelhs/
face recognition extension
#based on
# pip3 install cmake
# pip3 install face_recognition
# or pip3 install boost & pip --no-cache-dir install face_recognition
# pip3 install numpy
# pip3 install dlib
# pip3 install opencv-python
artickl /
Created March 24, 2021 22:36 — forked from mdonkers/
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
Very simple HTTP server in python for logging requests
./ [<port>]
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):
artickl /
Created September 16, 2021 18:04 — forked from willurd/
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
artickl / nginx-sites-available-ip
Created March 13, 2024 19:06
# simple way to show public IP address of the client
# anyone can access it in the browser (like
# or can be used in some scripting (like "curl")
# simply on NGINX functionality without any kind of additional tools or plugins
# just place this nginx config to /etc/nginx/sites-available/ip
# make a link in /etc/nginx/sites-enabled/ ($ ln /etc/nginx/sites-available/ip)
# reload nginx ($ service nginx reload)
server {