Skip to content

Instantly share code, notes, and snippets.

View leooooonren's full-sized avatar
🤒
Out sick

Leon Ren leooooonren

🤒
Out sick
View GitHub Profile
@baymaxium
baymaxium / content.md
Created October 18, 2017 09:40
如何使用Kubernetes GPU集群自动化深度学习训练?
:%s/r//g 删除DOS方式的回车^M
:%s= *$== 删除行尾空白
:%s/^(.*)n1/1$/ 删除重复行
:%s/^.{-}pdf/new.pdf/ 只是删除第一个pdf
:%s/<!--_.{-}-->// 又是删除多行注释(咦?为什么要说「又」呢?)
:g/s*^$/d 删除所有空行 :这个好用有没有人用过还有其他的方法吗?