This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| POSTGRES_USER=sentry | |
| POSTGRES_PASSWORD=sentry | |
| POSTGRES_DBNAME=sentry | |
| SENTRY_SECRET_KEY=CHANGEME | |
| SENTRY_REDIS_HOST=redis | |
| SENTRY_POSTGRES_HOST=postgres | |
| SENTRY_DB_USER=sentry | |
| SENTRY_DB_PASSWORD=sentry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Author: ficapy | |
| # Create: '12/12/2017' | |
| import os | |
| import threading | |
| from paramiko import SSHConfig, SSHClient, AutoAddPolicy | |
| HOSTNAME = 'aliyun' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "log" | |
| "net" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Author: ficapy | |
| import random | |
| import csv | |
| import time | |
| from functools import wraps | |
| from io import StringIO | |
| from contextlib import closing, contextmanager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Author: ficapy | |
| # Create: '03/03/2018' | |
| import random | |
| from string import ascii_lowercase | |
| def distance(str1: str, str2: str): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image | |
| import imagehash | |
| def get_phash(file_path): | |
| img = Image.open(file_path) | |
| phash = imagehash.phash(img).hash.flatten() | |
| phash_list = list(map(bool, phash)) | |
| if phash_list[0] is True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Author: ficapy | |
| # Create: '12/03/2018' | |
| from threading import Lock, get_ident | |
| class RLock: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Author: ficapy | |
| import io | |
| from urllib.parse import urlencode | |
| from base64 import b64encode | |
| from pdf2image import convert_from_bytes | |
| from PyPDF2 import PdfFileWriter, PdfFileReader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| np.array([8.218,-9.341]) + np.array([-1.129,2.111]) | |
| np.array([7.119,8.215]) - np.array([-8.223,0.878]) | |
| 7.41 * np.array([1.671,-1.012,-0.318]) | |