Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
FONTCONFIG_HOME="${XDG_CONFIG_HOME}/fontconfig"
USER_RUN_DIR="/run/user/$(id -u)"
DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD)"
QQ_RUN_DIR="${USER_RUN_DIR}/QQ"
QQ_APP_DIR="${XDG_CONFIG_HOME}/QQ"
QQ_DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD)/QQ"
@pcmid
pcmid / BaiduPCS-appid-getter.py
Created September 20, 2018 06:44
获取有效的百度app_id
from __future__ import print_function
import requests
import threading
import sys
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)