Vim Operations
Git
What are the best practices for naming git branches?
- 使用前缀结构
使用前缀来表示分支的类型和用途,这样可以更直观地了解分支的目的。常见的前缀包括:
…A Piece Of: Golang Profile
Tips on Profile
先说几个小坑点:
默认情况下,Golang Profile 取样的频率为 100Hz,意味着每 10ms 才会取样一次,所以程序运行时间少于 10ms 肯定不会被取样
…Vim Operations
A Quick Note
学习 Vim 最好的方法就是渐进式学习,一开始只用那些最基础的操作,当你有一天突然觉得某种操作不够方便,觉得应该存在一种更高效的操作时,就上网去搜,并学习相关知识!
How to do jjjjjjjjjjjjjjj or kkkkkkkkk more effectively?
- Use Ctrl-d and Ctrl-u These commands allow you to scroll through the buffer more quickly:
Ctrl-d
: Scroll down by half a page.Ctrl-u
: Scroll up by half a page.
- Use Ctrl-f and Ctrl-b For full-page scrolling:
Ctrl-f
: Scroll down by a full page.(forward)Ctrl-b
: Scroll up by a full page.(backward)
Missing Semester - Lecture 5
Job Control
Signals can do other things beyond killing a process. For instance, SIGSTOP pauses a process. In the terminal, typing Ctrl-Z will prompt the shell to send a SIGTSTP signal, short for Terminal Stop.
…Missing Semester - Lecture 4
# journalctl run remotely, grep run locally
ssh myserver journalctl | grep sshd
# both commands run remotely
ssh myserver "journalctl | grep sshd"
sed
sed
(Stream Editor) is a powerful command-line tool in Unix/Linux that is used for parsing and transforming text, typically used for finding, replacing, or deleting content in a file or input stream.
Missing Semester - Lecture 2
Shell Tools and Scripting
Shell Scripting
To assign variables in bash, use the syntax foo=bar
and access the value of the variable with $foo
.
Missing Semester - Lecture 1
The shell
How does the shell know how to find the date
or echo
programs?
Transaction Anomalies
Non-Repeatable Read
A non-repeatable read occurs, when during the course of a transaction, a row is retrieved twice and the values within the row differ between reads.
…Paper Note: Taking Omid to the Clouds: Fast, Scalable Transactions for Real-Time Cloud Analytics
Designing a TPS for clouds will meet these challenges:
- Diverse functionality.
- The concept of translytics as “a unified and integrated data platform that supports multi-workloads such as transactional, operational, and analytical simultaneously in realtime, … and ensures full transactional integrity and data consistency”.
- Scale
- Cloud-first data platforms are designed to scale well beyond the limits of a single application.
- Latency
- With the thrust into new interactive domains like social networks, messaging and algorithmic trading,latency becomes essential.
- Multi-tenancy
- Maintaining access rights is therefore an important design consideration for TPSs.
论文的工作集中于以下几点:
…Paper Note: Omid, Reloaded: Scalable and Highly-Available Transaction Processing
An entirely re-designed version of Omid1.
Omid’s job is to manage the transaction control plane.
…