Coding With Fun
Home Docker Django Node.js Articles FAQ

How do programmers touch fish at work? Come on, I'm good at this


May 30, 2021 Article blog


Table of contents


Author Riocoder

Source: Programmer Programming Record

What's that?

Share a few ingenious command line terminal "hua" (shui) gadgets, from the waist is not sour, neck does not hurt, write code more energy.
Is the so-called watering has been cool, has been rowing has been cool.

Command line fighting landlords



Introduction to the project

This is a command-line landlord based on the fiery Netty framework implementation. G o to work to move bricks, code to write more brain pain, you may as well play a two to relieve the pressure, instant thinking relaxed. I'm not going to tell you, this one can also be played online.
Project address: https://gitee.com/ainilili/ratel

How to install it

First create a folder locally and clone the code locally
git clone https://github.com/ainilili/ratel.git
Then go to the code folder and do the packaging:
mvn package
Packaging completion generates executable jar packages under the landlords-server and landlords-client directories

The big way to touch fish

If you want to create your own server, you can run the jar package generated under the target directory in landlords-server:
java -jar landlords-server-1.2.2.jar -p 1024
Then run the jar package generated under the targett directory in landlords-client and connect to the service side to operate:
java -jar landlords-client-1.2.2.jar -p 1024 -h 127.0.0.1
Of course, we can also use public network servers, such as:
java -jar landlords-client-1.2.2.jar -p 1024 -h 39.105.65.8
Next you can:
  • Enter the nickname
  • Select game mode (everyone/man-machine)
  • Select the difficulty of the game
  • Officially start the game
Everyone mode, human-machine mode, room selection, land grabbing, playing cards, ace bombing, Shunzi, can not afford, and so on the operation is not under the words, can be said to be very show.

The command line reads novels



Introduction to the project

This is a cross-platform command-line text fiction reading tool based on Go language, called glance. I t requires no additional runtime and dependency libraries, is simple and lightweight, and is especially friendly to the Vim Party. As you like to see, encounter an emergency, one click to hide the current content, into the brick-moving mode, can be said to be very fragrant.
Project address: https://github.com/TimothyYe/glance

How to install it

Download the executable directly
wget https://github.com/TimothyYe/glance/releases/download/V0.2/glance-linux64-0.2.tar.gz
and unzip it:
tar -zxvf glance-linux64-0.2.tar.gz
Then run the decompressed executable glance directly.

The big way to touch fish

The command line opens the novel
[[email protected] novel]# ./glance 三国演义.txt
  • Switch up and down
  • Show and hide current reading progress
  • Displays and hides the border
  • Switch font colors
  • Turn the page automatically on a regular time
And so on are not in the words, and equipped with the strongest Boss keys, emergency time to hide the current content, and display camouflage Shell prompts, key moments are useful. It's a must-have artifact for 996 and 007 programmers to fish and row.

The command line brushes GitHub



Introduction to the project

It's a command-line-based artifact written in the Rust language that brushes GitHub trending, named Wokong, and is spiritual at first glance.
Project address: https://github.com/TonnyL/Wukong

How to install it

If it's a Mac platform, install it directly through brew:
brew install TonnyL/tap/Wukong
If it's a Linux platform, download the compressed package of executables directly:
wget https://github.com/TonnyL/wukong/releases/download/v0.1.0-alpha02/wukong-linux.tar.gz
Then unzip to use:
tar -zxvf wukong-linux.tar.gz

The big way to touch fish

Here are a few typical usages.
Check out GitHub's Trending project leaderboard for the day
[[email protected] github]# ./wukong repo
Check out GitHub's trending developer leaderboard for the day
[[email protected] github]# ./wukong dev
More usage can be performed directly./wukong --help to view.

The command line brush knows



Introduction to the project

This is written in Python 2.7, and by executing a Python program on the command line to run a knowing client, you can brush TL in a way similar to a bash command, focus on problems, and praise others.
Project address: https://github.com/duduainankai/zhihu-terminal

How to install it

Clone the project
git clone [email protected]:duduainankai/zhihu-terminal.gitcd zhihu-terminal
Installation dependencies:
pip install -r requirements.txt
Once you have configured the config .ini file, you are ready to execute:
python zhihu.py

The big way to touch fish

Command line Russian block



Introduction to the project

This is a command line-based Russian block game, tea before meals after a game, from then on to move bricks more powerful.
Project address: https://github.com/uuner/sedtris

How to install it

Just download and run the game script
git clone https://github.com/uuner/sedtris.gitcd sedtris/chmod +x sedtris.sh
Run the game:
./sedtris.sh

The big way to touch fish

Remember



All right, share it here this time.
Finally, say a little, what, if really by dei to, don't betray teammates on the line, first slip...
-End-