-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
22 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
_data/dd_exe_progress_if_volume_0b1a0cbe_11da_11c0_ab53_003045c00008_of_pen.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 6584 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
dd if=/dev/sda of=~/backup-disk-YY-MM-DD.img | ||
summary: |- | ||
Back Up a disk to an image in your home directory | ||
备份硬盘 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 10098 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
dd if=/dev/urandom of=/dev/somedisk | ||
summary: |- | ||
Completly blank a disk | ||
把硬盘送人前 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 9066 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
fileName() { echo "$1" | grep -o "[^/]*$"; } | ||
summary: |- | ||
Alternative for basename using grep to extract file name | ||
另一种basename 的实现 |
8 changes: 0 additions & 8 deletions
8
_data/knock_host_3000_4000_5000_ssh_p_port_user_host_knock_host_5000_4000_3.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 3385 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
ls -ldct /lost+found |awk '{print $6, $7}' | ||
summary: |- | ||
When was your OS installed? | ||
查看系统安装时间 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 5094 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
mysqldump -u UNAME -p DBNAME TABLENAME> FILENAME | ||
summary: |- | ||
dump a single table of a database to file | ||
把表导出到文件里边 |
5 changes: 2 additions & 3 deletions
5
_data/socat_tcp_listen_locport_fork_tcp_xxx_xxx_xxx_xxx_yyy_sourceport_srcp.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 7130 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
socat TCP-LISTEN:locport,fork TCP:XXX.XXX.XXX.XXX:YYY,sourceport=srcport | ||
summary: |- | ||
Create a tunnel from a remote server to the local machine using a specific source port | ||
端口映射隧道 |
5 changes: 2 additions & 3 deletions
5
_data/ssh_host_cd_repo_dir_git_diff_name_only_head_cpio_o_hnewc_quiet_cpio_.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 13114 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
ssh HOST '(cd REPO_DIR && git diff --name-only HEAD | cpio -o -Hnewc --quiet)' | cpio -iduv --quiet -Hnewc | ||
summary: |- | ||
Copy uncommitted changes from remote git repository | ||
从远端复制未提交的改动 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 2267 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
sudo dmidecode -t 5,16 | ||
summary: |- | ||
Lists the supported memory types and how much your board can support. | ||
列出支持的内存类型 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 12003 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
svn revert . | ||
summary: |- | ||
Revert all modified files in an SVN repo | ||
撤销svn改动 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 13442 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
tar cvf my_txt_files.tar `find . -type f -name ".txt"` | ||
summary: |- | ||
Create a tar archive with all files of a certain type found in present dir and subdirs | ||
从一个列表创建tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
commandlinefu_id: 13264 | ||
translator: | ||
weibo: '' | ||
hide: true | ||
weibo: tgic | ||
command: |- | ||
wmic OS get OSArchitecture /value | grep -Eo '[^=]*$' | ||
summary: |- | ||
get Windows OS architecture using Cygwin | ||
获取windows 架构 [cygwin] |