Skip to content

Instantly share code, notes, and snippets.

@hefeng122
hefeng122 / Personal Library.md
Created February 21, 2020 04:16 — forked from xiaolai/Personal Library.md
My own library
  1. Download and pin books at https://read.amazon.com, and use epubor KCR converter to convert them into epubs.
  2. Download audio books at https://audible.com, with aax format.
  3. Obtain your activation bytes with the instruction of this post.
  4. Install ffmpeg with brew.
  5. Install audible-converter with npm. (File name will be extended automatically)
audible-converter "*.aax" -a <your-activation-bytes>
  1. Install atomicparsley with brew. (to add artwork to converted m4a files) Bash script to add artworks to m4a files:
@hefeng122
hefeng122 / markdownhere.css
Created February 8, 2020 05:07 — forked from xiaolai/markdownhere.css
markdown-here-css
.markdown-here-wrapper {
font-size: 16px;
line-height: 1.8em;
letter-spacing: 0.1em;
}
pre, code {
font-size: 14px;
font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace;
@hefeng122
hefeng122 / Style.css
Created February 8, 2020 05:04 — forked from xiaolai/Style.css
vscode markdown github preview custom style
.vscode-body .markdown-body {
font-family: "PingFang SC"
}
.vscode-body strong {color:#6392BF;}
.vscode-body em {color: #A9312A; font-style: normal !important;}
.vscode-body table {font-size: 95% !important;}
.vscode-body .CodeMirror, .vscode-body pre {font-size: 90%;}
.vscode-body pre {
@hefeng122
hefeng122 / gist:0a57e0fcde80081bd684b6d7771db50d
Created February 8, 2020 05:03 — forked from xiaolai/gist:2ffe003b05eb3a2f7ba933858d353d7d
search and replace all mal-rendered emphasized text in github markdown
search regex:
~*(?:^|[^~])(~~(\\w+(\\s\\w+)*)~~)
# replace with (attention: there's a white space at the end)
**$1**