Skip to content

Instantly share code, notes, and snippets.

shniranjan /
Created Feb 26, 2022 — forked from mob-sakai/
Run shell script on gist

Run shell script on gist

Shells that support process substitution such as bash and zsh allow to run shell script on gist as follows.

# With curl:
bash <(curl -sL ${GIST_URL}) args...

# With wget:
shniranjan / nginx.conf
Created Jan 16, 2022 — forked from ulyssesr/nginx.conf
Nginx RTMP Setup
View nginx.conf
worker_processes 1;
events {
worker_connections 1024;
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
# This is free and unencumbered software released into the public domain.
# Requires bc, dc, openssl, xxd
# by grondilu from
base58=({1..9} {A..H} {J..N} {P..Z} {a..k} {m..z})
bitcoinregex="^[$(printf "%s" "${base58[@]}")]{34}$"
shniranjan /
Created Jan 13, 2021 — forked from tilfin/
Face detect and crop by using OpenCV
import cv2
import sys
import os
class FaceCropper(object):
CASCADE_PATH = "data/haarcascades/haarcascade_frontalface_default.xml"
def __init__(self):
self.face_cascade = cv2.CascadeClassifier(self.CASCADE_PATH)