Skip to content

Instantly share code, notes, and snippets.

View langrenfengzi's full-sized avatar
🐶
alive

Lang langrenfengzi

🐶
alive
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active September 17, 2024 08:32
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

ExpressVPN官方文档中文索引,逐步翻译中

ExpressVPN文档中心

ExpressVPN的官网文档目前暂无中文版;为方便大家了解ExpressVPN的相关服务,在出现问题时快速找到相应的官方解答,本站将会逐步翻译一些常见问题的官方文档。本文列出了全部文档的链接,可供中文索引、搜索使用。如果你想知道关于ExpressVPN的某个主题,不妨在本文中搜索一下。如果有相应的文章,但本站还未翻译为中文版,你可以点击英文链接后再用谷歌翻译官方页面。

ExpressVPN官网

文档概览

@naushadzaman
naushadzaman / flask_restart.py
Created November 8, 2016 14:06
Reload python flask server by function / API endpoint
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Reload python flask server by function / API endpoint
# References:
# https://docs.python.org/3/library/multiprocessing.html
# http://stackoverflow.com/questions/27723287/reload-python-flask-server-by-function
import os
@littlecodersh
littlecodersh / WeChatCheckFriend.py
Created September 28, 2016 04:59
Demo of checking friends' status of wechat.
#coding=utf8
import itchat
CHATROOM_NAME = 'friend'
CHATROOM = None
HELP_MSG = u'''\
好友状态监测
* 发送名片将会返回好友状态
* 请确有名为%s的未使用的群聊
* 并将该群聊保存到通讯录
@littlecodersh
littlecodersh / WechatSmartWish.py
Created September 28, 2016 03:01
Demo of sending smart wishes through wechat.
#coding=utf8
import itchat, time
SINCERE_WISH = u'祝%s新年快乐!'
REAL_SINCERE_WISH = u'祝%s新年快乐!!'
def send_wishes():
friendList = itchat.get_friends(update=True)[1:]
for friend in friendList:
# 如果不是演示目的,把下面的方法改为itchat.send即可
@littlecodersh
littlecodersh / PCMusicViaWechat.py
Created September 28, 2016 02:12
Demo of controlling music player through wechat.
#coding=utf8
import os
import itchat
from NetEaseMusicApi import interact_select_song
# 第三方包通过该命令安装:pip install itchat, NetEaseMusicApi
HELP_MSG = u'''\
欢迎使用微信网易云音乐
帮助显示帮助
@dtinth
dtinth / README.md
Last active May 11, 2024 02:21
Batch File Rename Script

Batch File Rename

Use JavaScript for Automation to rename files in batch!

Motivation

@johnko
johnko / ttc2ttf.py
Created September 4, 2013 21:01 — forked from kayahr/ttc2ttf.py
ttc2ttf
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#First released as C++ program by Hiroyuki Tsutsumi as part of the free software suite “Beer”
#I thought porting it to Python could be both a challenge and useful
from sys import argv, exit, getsizeof
from struct import pack_into, unpack_from
def ceil4(n):
@willurd
willurd / web-servers.md
Last active September 21, 2024 09:18
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000