Skip to content

Instantly share code, notes, and snippets.

View chezsick's full-sized avatar
🐦
Bonjour GitHub Et Microsoft !

Newa chezsick

🐦
Bonjour GitHub Et Microsoft !
View GitHub Profile
@filips123
filips123 / README.md
Last active February 7, 2021 08:47
ZeroArchive

ZeroArchive

Automatic mirroring of websites to ZeroNet.

Requirements

You have to install Python 3, ZeroNet and HTTrack on your computer.

You also have to create new empty ZeroNet site which will be used as archive destination. It's recommended that you use one ZeroNet site for each URL you want to archive.

@drscotthawley
drscotthawley / greenscreen.py
Last active December 10, 2021 07:21
greenscreen.py: Greenscreen effect without a physical green screen, via OpenCV and Python
#! /usr/bin/env python
'''
greenscreen.py: Greenscreen effect without a physical green screen
This performs background subtraction, and sets the background to "green" for use with "key frame" video editing software
Author: Scott Hawley, https://github.com/drscotthawley
Requirements:
Python, NumPy and OpenCV
I got these via Macports, but Homebrew, etc. work.
@johnmarzetti
johnmarzetti / htaccess
Last active December 13, 2023 20:00 — forked from dave1010/htaccess
HTTP Status Cats Apache (htaccess) config
# HTTP Status Cats
# Apache (htaccess) config created by @dave1010 modified by @johnmarzetti to use HTTP Stats Cats API
# Licensed CC BY 2.0
# Images CC BY 2.0, from GirlieMac's photostream:
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/
# Usage: copy save this file as .htaccess or add it to your httpd.conf
ErrorDocument 404 '<a href="https://http.cat/[404]/" title="404 - Not Found "><img src=https://http.cat/[404]" alt="404 - Not Found"></a>'
@DonnchaC
DonnchaC / onion-address-calculate.py
Created August 25, 2015 14:24
Simple script to calculate the onion address from a Tor hidden service descriptor or public key
import hashlib
import base64
import argparse
import sys
from Crypto.PublicKey import RSA
def calculate_onion(pem_key):
key = RSA.importKey(pem_key)
@alexanderchuranov
alexanderchuranov / word-stat
Created March 31, 2015 19:06
Calculates number of occurrences of words and groups of words in the input
#!/usr/bin/python
# Usage:
#
# words-stat word-freq
# words-stat group-freq <group-size>
#
# word-freq
#
# Calculates number of occurrences of each word in the input
@SiestaMadokaist
SiestaMadokaist / SummedAreaTable.py
Last active November 17, 2020 10:46
Implementation of summed area table / integral image in python.
class SummedAreaTable(object):
def __init__(self, size, data):
"""
Just because I dislike a 2d array / list.
data should be a List of Integer.
"""
width, height = size
assert width * height == len(data), "invalid data length and or data size"
self.size = size
self.data = data
@nogood3
nogood3 / ben.py
Created January 23, 2012 17:33
PYthon CPU Benchmark (console)
# coding: utf-8
import time
lan=input("LANG ru(type 0) or en(type 1)=")
if lan==0 :
import ru
lang=ru
else :
import en
lang=en
a=0