Skip to content

Instantly share code, notes, and snippets.

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

Fei Qi jazzqi

🏠
Working from home
View GitHub Profile
@jazzqi
jazzqi / pool-metadata-extended.json
Last active June 9, 2021 15:14
like-a-rolling-stone-pool-metadata-20210609
{
"info": {
"location": "Beijing, China"
}
}
{
"name": "Like a Rolling Stone",
"description": "The pool runs like a rolling stone",
"ticker": "ROCK",
"homepage": "https://teststakepool.com"
}
@jazzqi
jazzqi / main.go
Created May 2, 2020 00:31
triangular_arbitrage_binance_go
package main
import (
"context"
"fmt"
"strconv"
"strings"
binance "github.com/adshao/go-binance"
)
@jazzqi
jazzqi / config.yml
Created December 9, 2018 10:26
wtf
wtf:
colors:
border:
focusable: darkslateblue
focused: orange
normal: gray
grid:
columns: [40, 40]
rows: [13, 13, 4]
refreshInterval: 1
@jazzqi
jazzqi / main.ts
Last active November 24, 2018 09:26
typescript playground
export {};
let message = 'Welcome back!';
console.log(message);
// Variable Declaration
let x = 10;
const y = 20;
let sum;
const title = 'Codevolution';
@jazzqi
jazzqi / FilesystemHierarchyStandard.md
Last active October 16, 2022 20:06
Linux Filesystem Hierarchy Standard Reference

The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in Linux and other Unix-like computer operating systems.

Overview

The process of developing a standard FileSystem hierarchy began in August 1993 with an effort to restructure the file and directory structure of Linux. The FSSTND (Filesystem Standard), a filesystem hierarchy standard specific to the Linux operating system, was released on February 14, 1994. Subsequent revisions were released on October 9, 1994 and March 28, 1995.

In early 1996, the goal of developing a more comprehensive version of FSSTND to address not only Linux, but other Unix-like systems was adopted with the help of members of the BSD development community. As a result, a concerted effort was made to focus on issues that were general to Unix-like systems. In recognition of this widening of scope, the name of the standard was changed to Filesystem Hierarchy Standard or FHS for short.

The FHS is maintained by the Free Standards Group, a non-profit

@jazzqi
jazzqi / Dockerfile
Created October 23, 2018 08:29
使用多级构建时,将在 Dockerfile 中使用多个 FROM 语句,但最后仅会使用最终阶段构建的文件。这样,得到的镜像将仅包含生产服务器中所需的依赖,理想情况下文件将非常小。
# ---- Base Node ----
FROM node:carbon AS base
# 创建 app 目录
WORKDIR /app
# ---- Dependencies ----
FROM base AS dependencies
# 使用通配符复制 package.json 与 package-lock.json
COPY package*.json ./
# 安装在‘devDependencies’中包含的依赖
@jazzqi
jazzqi / export.sh
Last active June 25, 2021 17:12
Export apps installed by brew, brew cask and Mac App Store(using mas)
#!/bin/bash
echo -e '#!/bin/bash\n' > list.sh
echo -e '########### Brew Install List ###########' >> list.sh
brew leaves | sed 's/^/brew install /' >> list.sh &&
echo -e '\n########### Brew Cask Install List ###########' >> list.sh &&
brew cask list | sed 's/^/brew cask install /' >> list.sh &&
echo -e '\n########### Mac App Store Install List ###########' >> list.sh &&
@jazzqi
jazzqi / tmux-cheatsheet.markdown
Created October 15, 2018 16:04 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

@jazzqi
jazzqi / .eslintrc-parameter-instruction.js
Created October 5, 2018 00:13 — forked from rswanderer/.eslintrc-parameter-instruction.js
ESLint配置文件.eslintrc参数说明
/*
* ESLint的JSON文件是允许JavaScript注释的,但在gist里显示效果不好,所以我把.json文件后缀改为了.js
*/
/*
* ESLint 配置文件优先级:
* .eslintrc.js(输出一个配置对象)
* .eslintrc.yaml
* .eslintrc.yml