Skip to content

Instantly share code, notes, and snippets.

View shurup14's full-sized avatar

Alexander Gordienko shurup14

View GitHub Profile
@shurup14
shurup14 / mimes.json
Last active March 19, 2020 21:10
Mimes types
{
"text/vnd.wap.wmlscript": "Wireless Markup Language Script (WMLScript)",
"application/cu-seeme": "CU-SeeMe",
"application/vnd.mobius.plc": "Mobius Management Systems - Policy Definition Language File",
"application/vnd.dna": "New Moon Liftoff/DNA",
"application/mathml+xml": "Mathematical Markup Language",
"image/x-cmx": "Corel Metafile Exchange (CMX)",
"application/vnd.oasis.opendocument.text": "OpenDocument Text",
"application/vnd.ezpix-album": "EZPix Secure Photo Album",
"application/xslt+xml": "XML Transformations",
#wrokflow doc
{
"_id": "63761a9646ecc443c460069a5006b44b",
"_rev": "11-11813e6bff59bf0056bbc545dc2df3e0",
"type": "workflow",
"background": true,
"paginated": false,
"zip": true,
"steps": [
@shurup14
shurup14 / duplicate_search.py
Created January 16, 2017 12:19
Duplicate files search. Py3
import os
import hashlib
def check_size(path, files):
suspects = {}
for file in files:
size = os.path.getsize(os.path.join(path, file))
if size in suspects:
suspects[size].append(file)
@shurup14
shurup14 / tornado_proxy_handler.py
Last active November 20, 2016 11:51
Tornado proxy handler. requires 'pip install tornado bs4 validators'
# coding: utf-8
import re
import tornado.ioloop
import tornado.web
import tornado.httpclient
import tornado.options
import argparse
import signal
import HTMLParser
import webbrowser