ack
aria2
asciinema
bat
ctags
curl
diff-so-fancy
fd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require("path"); | |
| const fs = require('fs'); | |
| const del = require('del'); | |
| const Database = require('better-sqlite3'); | |
| const db = new Database('typecho.db', { verbose: console.log, readonly: true }); | |
| const tmpFolder = path.resolve(__dirname, 'typecho2hugo'); | |
| if (fs.existsSync(tmpFolder)) { | |
| del.sync(path.resolve(tmpFolder, '*')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias git_as_gucheng='git config user.name "Cheng Gu" && git config user.email "guchengf@gmail.com" && git config user.signingKey xxxxx' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @-moz-document domain("www.douyu.com") { | |
| .layout-Player-toolbar, | |
| .layout-Player-asideMain, | |
| .layout-Player-announce, | |
| .ChatRank-rankWraper, | |
| .FansRankInfo, | |
| .ChatTabContainer-titleWraper--tabLi, | |
| .ChatTabContainer-titleWraper--tabLi.is-active, | |
| .layout-Player-barrage, | |
| .PlayerToolbar-signCont { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface ModernOrgTreeOptions { | |
| container: HTMLElement; | |
| nodes?: NodeList; | |
| parentPosition?: string; | |
| childPosition?: string; | |
| } | |
| export class ModernOrgTree { | |
| parentsPositions = {}; | |
| svg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body,html{ | |
| margin:0 | |
| } | |
| body{ | |
| padding:2em | |
| } | |
| a{ | |
| word-break:break-all | |
| } | |
| pre{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const generateQueryParams = (obj) => { | |
| if (typeof obj !== 'object') { | |
| return ''; | |
| } | |
| const strs = []; | |
| Object.keys(obj).forEach((key) => { | |
| const k = encodeURIComponent(key); | |
| const item = obj[key]; | |
| if (Array.isArray(item)) { | |
| item.forEach((i) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = require('request'); | |
| const util = require('util'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const os = require('os'); | |
| const get = util.promisify(request.get); | |
| const post = util.promisify(request.post); | |
| const sleep = (ms) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <fieldset class="radio-switch"> | |
| <legend> | |
| Settings | |
| </legend> | |
| <input type="radio" name="lol" id="public"> | |
| <label for="public"> | |
| On | |
| </label> | |
| <input type="radio" name="lol" id="private"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Console] | |
| ; 00BBGGRR, not RGB! | |
| "ColorTable00"=dword:00000000 ; 0 - black | |
| "ColorTable04"=dword:000000CD ; 1 - dark red | |
| "ColorTable02"=dword:0000CD00 ; 2 - dark green | |
| "ColorTable06"=dword:0000CDCD ; 3 - dark yellow | |
| "ColorTable01"=dword:00EE0000 ; 4 - dark blue | |
| "ColorTable05"=dword:00CD00CD ; 5 - dark magenta |