Skip to content

Instantly share code, notes, and snippets.

View LanHao0's full-sized avatar
🎯
Focusing

LanHao LanHao0

🎯
Focusing
View GitHub Profile
@LanHao0
LanHao0 / BlenderRenderSequenceV1.py
Created July 11, 2021 06:33 — forked from brio1009/BlenderRenderSequenceV1.py
Script to render a sequence of ply files with Blender.
# Script to render a sequence of ply files with Blender. First, setup your scene
# and material for the imported meshes. Scene must be in "OBJECT"-mode.
# Fill in variables in options.
# References.
# See: http://blender.stackexchange.com/questions/24133/modify-obj-after-import-using-python
# and: http://blenderartists.org/forum/showthread.php?320309-How-to-import-ply-files-from-script
import bpy
# Options.
meshFolder = "" # Folder without ending "\\".
@LanHao0
LanHao0 / cert_cleanup.py
Last active September 10, 2020 15:42 — forked from qfdk/cert_cleanup.py
lua-resty-auto-ssl: Delete expired (or near expired) certs from redis
import redis
import json
from datetime import datetime, timedelta
from redis.exceptions import ResponseError
import subprocess
r = redis.Redis(host='localhost', port=6379, db=0, decode_responses=True)
now = datetime.now()
# 过期天数
@LanHao0
LanHao0 / qq_message_xml.md
Created July 27, 2018 19:48 — forked from koukuko/qq_message_xml.md
发送XML消息的格式

QQ的XML消息格式整理

QQ可以使用xml的方式发送消息,以下为了方便描述统称为卡片。

发送方式

通过机器人的API进行发送xml即可,但是如果选择发送xml,那么其他如[image=xxx][@xxx]这些命令就不可使用了。整个消息只有XML。

基本结构

xml主要由msg,item,source这3部分组成

<?xml version='1.0' encoding='utf-8' standalone='yes'?>
@LanHao0
LanHao0 / ssltest.py
Created August 13, 2017 14:42 — forked from sh1n0b1/ssltest.py
Python Heartbleed (CVE-2014-0160) Proof of Concept
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
title date tags
GCMForMojo 的部署与设置
2017-01-21 11:07:03 -0800
GCM
Android

2017年2月6日更新:完善部分内容,更新内容

2017年2月8日更新:发现自己脑抽少写了一步较为关键的步骤,赶紧补上orz,连带解决笔误