Skip to content

Instantly share code, notes, and snippets.

View qfdk's full-sized avatar
😃

qfdk

😃
View GitHub Profile
@qfdk
qfdk / lvim-cursor-fix.md
Created May 22, 2023 20:40 — forked from nishantwrp/lvim-cursor-fix.md
Fixing cursor change in lunar vim

Problem

Entering lunarvim changes the default cursor type of terminal.

Solution:

Add the following lines to your config.lua

lvim.autocommands = {
  {
 "VimLeave",
@qfdk
qfdk / cert_cleanup.py
Last active September 10, 2020 15:41 — forked from ronaldgrn/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
r = redis.Redis(host='localhost', port=6379, db=0, decode_responses=True)
now = datetime.now()
# 过期天数
three_days_from_now = now + timedelta(days=30)