V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  vivisidea  ›  全部回复第 21 页 / 共 28 页
回复总数  547
1 ... 13  14  15  16  17  18  19  20  21  22 ... 28  
2015-11-02 12:20:16 +08:00
回复了 xvid73 创建的主题 分享创造 tldr.py: 妈妈再也不用担心我使用命令行了
```
vivi@vivi-SSD:~$ seq 9 | sed 'H;g' | awk -v RS='' '{for(i=1;i<=NF;i++)printf("%dx%d=%d%s", i, NR, i*NR, i==NR?"\n":"\t")}'
1x1=1
1x2=2 2x2=4
1x3=3 2x3=6 3x3=9
1x4=4 2x4=8 3x4=12 4x4=16
1x5=5 2x5=10 3x5=15 4x5=20 5x5=25
1x6=6 2x6=12 3x6=18 4x6=24 5x6=30 6x6=36
1x7=7 2x7=14 3x7=21 4x7=28 5x7=35 6x7=42 7x7=49
1x8=8 2x8=16 3x8=24 4x8=32 5x8=40 6x8=48 7x8=56 8x8=64
1x9=9 2x9=18 3x9=27 4x9=36 5x9=45 6x9=54 7x9=63 8x9=72 9x9=81
```

cheat awk 里面看到有个 9x9 乘法表的 example 。。。
2015-11-02 12:17:37 +08:00
回复了 xvid73 创建的主题 分享创造 tldr.py: 妈妈再也不用担心我使用命令行了
@iambic
cheat 好评

xx@xx-SSD:~$ cheat find
# To find files by case-insensitive extension (ex: .jpg, .JPG, .jpG):
find . -iname "*.jpg"

# To find directories:
find . -type d

# To find files:
find . -type f

# To find files by octal permission:
find . -type f -perm 777

# To find files with setuid bit set:
find . -xdev \( -perm -4000 \) -type f -print0 | xargs -0 ls -l

# To find files with extension '.txt' and remove them:
find ./path/ -name '*.txt' -exec rm '{}' \;

# To find files with extension '.txt' and look for a string into them:
find ./path/ -name '*.txt' | xargs grep 'string'

# To find files with size bigger than 5 Mb and sort them by size:
find . -size +5M -type f -print0 | xargs -0 ls -Ssh | sort -z

# To find files bigger thank 2 MB and list them:
find . -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

# To find files modified more than 7 days ago and list file information
find . -type f -mtime +7d -ls

# To find symlinks owned by a user and list file information
find . -type l --user=username -ls

# To search for and delete empty directories
find . -type d -empty -exec rmdir {} \;

# To search for directories named build at a max depth of 2 directories
find . -maxdepth 2 -name build -type d

# To search all files who are not in .git directory
find . ! -iwholename '*.git*' -type f

# Find all files that have the same node (hard link) as MY_FILE_HERE
find . -type f -samefile MY_FILE_HERE 2>/dev/null
2015-11-02 12:11:50 +08:00
回复了 LU35 创建的主题 奇思妙想 下一代的下载技术应该是怎样的?
所有资源上云~全民共享一个大网盘,想要的资源都在上面

从网盘下载,直接就能达到网络限速上限~~再没有“下载人数越多,速度越快”设定,也避免了冷门资源下载不了的问题。。
2015-10-30 19:06:22 +08:00
回复了 zeroten 创建的主题 git git rebase -i 本分支时候什么情况会冲突?如何解决?
做了什么调整呢?理论上说仅执行这个命令什么都不改的话不应该冲突的
2015-10-25 11:42:11 +08:00
回复了 vivisidea 创建的主题 iCloud 关于 iCloud 的设定
翻了一下发现是 iCloud 版本太低了, 4.1 版本的照片设置没有下载照片库的选项。。升级到 5.0 就好了
2015-10-24 11:27:27 +08:00
回复了 honmaple 创建的主题 问与答 学历或学位是不是很重要
大厂找人,一般学历就筛选掉一大批了,价钱都差不多的情况下,厂里面为什么不选更好的学校?
@cppgohan

[mysqld]
user = nobody
port = 3306
socket = /tmp/mysql.sock
basedir = /usr/local/mysql
datadir = /data/mysql
character-set-server = utf8mb4

我直接点的下载看到有阿
@wwek
utf8mb4 好评,之前的一个库,原来是 utf8 编码, emoji 字符还不流行
到后来 emoji 流行起来了, db 存 emoji 字符就报错,为这个重建一次数据库真是浪费人工。。
2015-10-23 13:34:59 +08:00
回复了 powtop 创建的主题 Linux linux 服务器系统盘老是爆满,不得不喷下腾讯云,系统盘才 8G
@powtop

可以自己写个 logrotate 脚本定期清理 /迁移 /压缩一下日志文件
/etc/logrotate.d

debian 系,其他的系统应该也有类似的
2015-10-23 12:13:17 +08:00
回复了 powtop 创建的主题 Linux linux 服务器系统盘老是爆满,不得不喷下腾讯云,系统盘才 8G
这。。
系统盘给小一点是为了方便维护镜像(创建 /迁移 /恢复。。)

如果直接给你 500G 到时候挂了恢复都恢复半天。。
2015-10-23 12:08:46 +08:00
回复了 GeekCat 创建的主题 问与答 WD 蓝盘是否可以用于 NAS?
@GeekCat

黑盘——主打性能
绿盘——主打节能和容量,转速低(主要用来作为仓库盘)
蓝盘——主打平衡,在黑盘和绿盘之间的平衡
红盘——主打 NAS 和容量

哦,蓝盘性能好像比红盘要好一些,我是从性能上说,红盘应该是足够的

另外蓝盘容量都不太大,你装高清视频的话我建议上 4T 。。
红盘 4T x 东上有到过 9xx (现在 1399 ),感觉还是挺划算的,可以关注下等降价
2015-10-23 11:52:26 +08:00
回复了 GeekCat 创建的主题 问与答 WD 蓝盘是否可以用于 NAS?
而且红盘就足够看高清了,定位也是 NAS 存储

我自己用的是 DS215j+红盘 4T ,看 1080 完全没问题
2015-10-23 11:50:03 +08:00
回复了 GeekCat 创建的主题 问与答 WD 蓝盘是否可以用于 NAS?
没人能做这种保证吧。。。硬盘这种东西很看 rp 的
2015-10-22 13:07:17 +08:00
回复了 windirt 创建的主题 iPhone 更换大容量闪存的风险考虑过吗?
iPhone5 能升级么,反正过保了,现在 16G 用着真是憋屈
2015-10-21 19:03:23 +08:00
回复了 goodryb 创建的主题 信息安全 记住几个主要密码,其它的全部用 LastPass 是否可行
涉及到钱的账号密码自己记住(包括间接涉及的,比如 xx 宝的安全邮箱之类的)

别的就随意了,用下来 lastpass 还是很好用的,特别是有时候去一些小众论坛 /网盘下载个什么东西的时候, lastpass 居然提示“ 1 ”,自己都不记得哪年有注册过阿……哈哈哈哈
这波韭菜又可以收割了?
2015-10-21 18:40:26 +08:00
回复了 break 创建的主题 程序员 提高程序员效率的工具和途径有哪些
工资 +50%
2015-10-21 13:36:19 +08:00
回复了 texnician 创建的主题 程序员 如果公司提供的显示器太烂,有多少人会自备高端显示器?
我几年前自费换了 SSD ,加了 4G 内存,显示器没啥要求~~
2015-10-21 12:13:59 +08:00
回复了 qindfvip 创建的主题 程序员 广州哪里可以清静的码码
大学城 内环,但是没 wifi 你觉得 ok 么。。。
1 ... 13  14  15  16  17  18  19  20  21  22 ... 28  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2947 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 47ms · UTC 15:18 · PVG 23:18 · LAX 08:18 · JFK 11:18
Developed with CodeLauncher
♥ Do have faith in what you're doing.