Skip to content

Instantly share code, notes, and snippets.

View GhostLee's full-sized avatar
🏠
Working from home

Abel Lee GhostLee

🏠
Working from home
View GitHub Profile
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@GhostLee
GhostLee / short_term_alpha.ipynb
Created May 21, 2023 11:16 — forked from sebjai/short_term_alpha.ipynb
Market Making in Short-Term Alpha (Chapter 10.4.2 of Algorithmic and High-Frequency Trading by Cartea, Jaimungal, Penalva, published by Cambridge University Press)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GhostLee
GhostLee / README.md
Created February 15, 2021 16:18 — forked from recolic/README.md
android qq 聊天记录导出

android qq聊天记录导出大致流程

tested on android 6 tencent qq

  1. 设法将/data/data/com.tencent.*/databases目录拷贝出来,我假设你了解如何做到这一点。

  2. 运行以下命令。我假设你了解如何安装/使用sqlite,我假设你了解linux基本知识。

$ sqlite3 872222222-IndexQQMsg.db
class Singleton(object):
def __new__(cls, *args, **kwargs):
if not hasattr(cls, '_instance'):
# origin = super(Singleton, cls)
# cls._instance = origin.__new__(cls, *args, **kwargs)
cls._instance = super().__new__(cls, *args, **kwargs)
return cls._instance
class Myclass(Singleton):
pass
@GhostLee
GhostLee / README.md
Created February 9, 2020 13:10 — forked from hellokaton/README.md
Go 的信号处理和优雅退出

每个平台的信号定义或许有些不同。下面列出了POSIX中定义的信号。 Linux 使用34-64信号用作实时系统中。 命令man 7 signal提供了官方的信号介绍。

在POSIX.1-1990标准中定义的信号列表