• Stars
    star
    270
  • Rank 147,191 (Top 3 %)
  • Language
    C#
  • License
    The Unlicense
  • Created over 10 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

中文版commandlinefu

commandlinefu.cn

打造 中文版的 http://commandlinefu.com

贡献你的力量

@titikaka723 写的github初学者贡献参考手册

  • 下载代码
$ git clone https://github.com/tg123/commandlinefu.cn.git
cd commandlinefu.cn
  • 寻找一个没有翻译的文件 (会调用你的 $EDITOR 来编辑这个文件)
./tools/translateone.sh
  • 调用脚本set_translator_weibo_and_show.sh删除hide:true,并将weibo: ''替换成你的微博用户名
./tools/set_translator_weibo_and_show.sh 你的微博用户名
  • 还可以创建$HOME/.commandlinefu/weibo.conf,保存你的微博用户名,以后调用set_translator_weibo_and_show.sh的时候,就可以省略用户名了
mkdir ~/.commandlinefu && echo "weibo_id" > ~/.commandlinefu/weibo.conf
./tools/set_translator_weibo_and_show.sh
  • 可以添加pre-commit钩子脚本,在没有运行set_translator_weibo_and_show.sh就commit的情况下,出错并提醒自己
cp tools/pre-commit .git/hooks/
sudo chmod u+x .git/hooks/pre-commit
  • 翻译参考
$ git diff _data/head_n_20_filename_tail.yaml
diff --git a/_data/head_n_20_filename_tail.yaml b/_data/head_n_20_filename_tail.yaml
index b5d0efe..970e1a8 100644
--- a/_data/head_n_20_filename_tail.yaml
+++ b/_data/head_n_20_filename_tail.yaml
@@ -1,8 +1,7 @@
 commandlinefu_id: 7044
 translator:
-  weibo: ''
-hide: true
+  weibo: tgic
 command: |-
   head -n 20 <filename> | tail
 summary: |-
-  Print all the lines between 10 and 20 of a file
+  输出文件的10到20行
  • 说明
  1. weibo: tgic 会在页面显示出 @tgic 翻译
  2. 删除 hide: true 自动构建程序会知道你已经翻译了这个文件
  3. 内容就是 summary 编译成汉语就好了 当然命令你也可以修改
  • 发送你的 pull request

实现原理

安装需要的软件 ruby 需要 > 1.9.2

gem install jekyll nokogiri json

网站使用 jekyll 构建. 需要至少1.3

可以通过运行

jekyll build

在本地构建你的网站

依赖的插件

关于使用commandlinefu.com内容

commandlinefu.com 站长 David Winterbottom :

You're welcome to re-publish the commandlinefu content.

授权(public domain)

More Repositories

1

sshpiper

The missing reverse proxy for ssh scp
Go
907
star
2

leetcode

leetcode Solutions.java 250 / 269 (Algorithms)
Java
361
star
3

chrome-hostadmin

HostAdmin for Firefox Chrome ...
C
213
star
4

websockify-nginx-module

Embed websockify into Nginx (convert any tcp connection into websocket)
C
138
star
5

docker-sshd

ssh into any docker container/pod without sshd
Go
40
star
6

myslot

The missing layout/keybinding/macro exportor for World of Warcraft
Lua
35
star
7

go-htpasswd

Apache htpasswd Parser for Go.
Go
33
star
8

IronLeveldb

A leveldb implementation in C#
C#
27
star
9

bottle-mysql

MySQL integration for Bottle.
Python
21
star
10

RaidLedger

A ledger for GDKP/gold run raid in World of Warcraft
Lua
15
star
11

Docker-AzureStorageEmulator

Docker Image of AzureStorageEmulator
Dockerfile
13
star
12

docker-wicket

Docker registry auth/index server for both v1 and v2
Go
10
star
13

BattleInfo

Enrich your battleground information
Lua
9
star
14

qrcode-wow

In game QRCode creator for World of Warcraft
Lua
6
star
15

FabricPing

network tools for service fabric
Go
5
star
16

fabric

Service Fabric Golang SDK (Unofficial)
Go
5
star
17

ConsistentSharp

Consistent hash for dotnet core. port from go version https://github.com/stathat/consistent
C#
3
star
18

phabrik

Native Go Impl of Service Fabric Protocol
Go
3
star
19

sshpiper-gh

ssh with your github identity
Go
3
star
20

Docker-AzCopy

Docker image for AzCopy
Dockerfile
2
star
21

sfrun

Run any .exe on Service Fabric like a hero
C#
2
star
22

pyinstaller.docker

Docker image for pyinstaller
2
star
23

welto

Lua
2
star
24

sshpiper-openpubkey

sshpiper openpubkey plugin
Go
2
star
25

azbastion

go version of az network bastion tunnel
Go
1
star
26

hostadmin.js

library to parse and toggle entries in hosts file
CoffeeScript
1
star
27

docker-tocmd

create the `docker run` of a container!
Go
1
star
28

FabricEmu

Service Fabric Emulator, run your stateful service fabric app without service fabric cluster
Go
1
star
29

xtcprelay

tcp over any data link layer, even mail based floppy
Go
1
star
30

csv2xls_sae

covert csv to xls all cell will be set to text to prevent from big number data losing
Python
1
star
31

remotesigner

crypto.Signer backed by a remote service, grpc, rest or even more
Go
1
star
32

azkeyvault

Golang crypto.Signer and crypto.Decrypter backed by Azure KeyVault
Go
1
star
33

sshpiper-chart

helm chart for sshpiper
Smarty
1
star