Skip to content

Instantly share code, notes, and snippets.

View h-j-13's full-sized avatar
🎯
Focusing

HouJie h-j-13

🎯
Focusing
  • Zibo Shandong, China
View GitHub Profile
@h-j-13
h-j-13 / password_module.py
Created March 22, 2025 12:09
keep talking nobody explodes 密码猜测模块工具
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# keep talking nobody explodes 密码猜测模块工具
import re
# 初始单词列表
words = [
"about",
@h-j-13
h-j-13 / tz.py
Created February 11, 2019 12:16
timezone info
#!/usr/bin/env python
# encoding:utf-8
from dateutil import parser
whois_timezone_info = {
"A": 1 * 3600,
"ACDT": 10.5 * 3600,
"ACST": 9.5 * 3600,
"ACT": -5 * 3600,
# encoding:utf-8
"""
基于faiss的海量高维域名相似度计算
多进程队列通信的异步获取
author : h-j-13
time : 2018-6-28
"""
@h-j-13
h-j-13 / IndexIVFFlat_test.py
Created June 22, 2018 03:22
faiss index IndexIVFFlat_test
# encoding:utf-8
"""
faiss库 IndexIVFFlat 索引性能测试
author : h-j-13
time : 2018-6-22
"""
import time
#!/usr/bin/env python
# encoding:utf-8
"""
将域名获取的时间转换为标准时间
====================================
version : 1.0
time : 2017.8.25
"""
@staticmethod
def get_table_num(domain):
"""获取域名所属分表序号"""
table_num = -1
# 抽取首字母
domain = str(domain).lower()
try:
initial = domain[0]
except:
table_num = -1
@h-j-13
h-j-13 / export.py
Created January 25, 2018 11:19
export func
def export_domain(self, type, start, end):
"""导出某一条件下某一时间段的域名"""
result = {"type": type,
"start": start,
"end": end,
"result": []}
domain_list = []
query_result = temp_DB.execute(SQL_refactor.export_domain(type, start, end))
if query_result:
for domain in query_result:
@h-j-13
h-j-13 / os_e1.py
Last active October 25, 2017 12:38
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <stdlib.h>
#include <curses.h>
#define getpch(type) (type*)malloc(sizeof(type))
#ifndef NULL
@h-j-13
h-j-13 / temo.txt
Created October 10, 2017 12:12
temp
2017-10-06 19:51:39 - 系统初始化完成
2017-10-06 19:51:39 - Connect Error:(1045, "Access denied for user 'root'@'10.246.24.69' (using password: YES)")
2017-10-06 19:53:28 - 系统初始化完成
2017-10-06 19:53:29 - 后台程序启动...
2017-10-06 19:53:29 - 占用端口 : 8013
2017-10-06 19:53:29 - 多进程模式 - 进程数: 5
2017-10-07 00:30:00 - 数据缓存开始...
2017-10-07 00:31:01 - 数据缓存结束
2017-10-07 12:30:00 - 数据缓存开始...
@h-j-13
h-j-13 / RSA.py
Created October 9, 2017 08:27
RSA
#!/usr/bin/python
# encoding:utf-8
"""
密码学实验 - RSA
======================
author: `13
time : 2017.10.9
details: