Skip to content

Instantly share code, notes, and snippets.

@Flouse
Flouse / rgbpp-simple-guilde.md
Last active May 9, 2024 08:03
Simple Technical Guide for RGB++ Development
@Flouse
Flouse / ckb-resource.md
Last active April 15, 2023 14:22
curated collection of tutorials, tools, videos, and essays of Nervos Network

General

These RFCs (Request for Comments) are proposals, standards, and documentation related to the Nervos Network.

This video series provides the tools and knowledge you need to start building on Nervos. Our experienced developers will take you through the process of building on Nervos, step by step.

@Flouse
Flouse / ripgrep
Created November 17, 2021 09:48
Time consumed Comparison of grep, egrep and ripgrep
cmd:
time docker logs docker-1 -f --tail 1000000 2>&1 | egrep error --color
grep
Executed in 10.43 secs fish external
usr time 6.51 secs 254.00 micros 6.51 secs
sys time 1.23 secs 979.00 micros 1.23 secs
egrep
________________________________________________________
@Flouse
Flouse / ISA.md
Created November 10, 2021 02:48
The available ISA revisions

The available ISA revisions are:

• ISA_A: The original ColdFire instruction set architecture

• ISA_B: Added improved data movement instructions, byte- and word-sized compares, miscellaneous enhancements

• ISA_C: Added instructions for improved bit manipulation

• FPU: Original ColdFire instruction set architecture for floating-point unit (FPU)

@Flouse
Flouse / partial-git-clone.sh
Created May 11, 2021 09:52
Clone part of a git project
# https://stackoverflow.com/a/28039894/7365437
git init <repo>
cd <repo>
git remote add origin <url>
git config core.sparsecheckout true
echo "path/to/your/dir/*" >> .git/info/sparse-checkout
git pull --depth=1 origin branch_you_want
@Flouse
Flouse / ssh-copy-id-to-windows.md
Last active May 11, 2021 02:04
ssh-copy-id to Windows 10 SSH server
@Flouse
Flouse / .wslconfig
Created May 3, 2021 03:02
WSL2 Tips: Limit CPU/Memory When using Docker
[wsl2]
memory=3GB # Limits VM memory in WSL 2 up to 3GB
#localhostForwarding=true
processors=3 # How many processors to assign to the WSL2 VM.
swap=2GB # How much swap space to add to the WSL2 VM. 0 for no swap file.
# see also:
# https://itnext.io/wsl2-tips-limit-cpu-memory-when-using-docker-c022535faf6f
# https://blog.simonpeterdebbarma.com/2020-04-memory-and-wsl/
@Flouse
Flouse / CKB.md
Last active April 28, 2021 15:50
Common Base Knowledge about CKB script programing

What is CKB?

An abbreviation which can have different meanings depending on the context:

Cells are the primary state units in CKB and assets owned by users. They must follow associated validation rules specified by scripts.

# Accessing the Docker API without any restriction is a security concern:
# If Traefik is attacked, then the attacker might get access to the underlying host.
#
# This docker compose file expose the Docker socket over TCP, instead of the default Unix socket file.
#
# See also:
# https://docs.traefik.io/v2.3/providers/docker/#docker-api-access
# https://liquidat.wordpress.com/2018/12/12/howto-launch-traefik-as-a-docker-container-in-a-secure-way/
version: '3.8'