代码改变世界

test

2018-06-01 19:43 by 阿普的博客, 143 阅读, 0 推荐, 收藏, 编辑
摘要:te t 阅读全文

crontab 相关

2018-02-26 11:14 by 阿普的博客, 248 阅读, 0 推荐, 收藏, 编辑
摘要:1,crontab命令 功能说明:设置计时器。 语 法:crontab [-u <用户名称>][配置文件] 或 crontab [-u <用户名称>][-elr] 补充说明:cron是一个常驻服务,它提供计时器的功能,让用户在特定的时间得以执行预设的指令或程序。只要用户会编辑计时器的配置文件,就可以 阅读全文

使用curl 上传文件,multipart/form-data

2017-10-12 15:25 by 阿普的博客, 25741 阅读, 0 推荐, 收藏, 编辑
摘要:使用curl 上传文件,multipart/form-data 1. 不使用-F,curl内置multipart/form-data功能; 2. 文件内容与真实数据无关,用abc代替数据,依然可以上传成功; 3. name 为服务端获取文件的字段; 4. 换行和 的数量需要一致。 阅读全文

[python] 高效使用assert

2014-12-06 20:18 by 阿普的博客, 225 阅读, 0 推荐, 收藏, 编辑
摘要:Places to consider putting assertions:checking parameter types, classes, or valueschecking data structure invariantschecking "can't happen" situations... 阅读全文

mac 查看系统时区

2014-10-09 16:53 by 阿普的博客, 1326 阅读, 0 推荐, 收藏, 编辑
摘要:sudo systemsetup -gettimezonehttps://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man8/systemsetup.8.html 阅读全文

ssh 远程登录出错:Gtk-WARNING **: cannot open display stackoverflow

2014-10-09 13:06 by 阿普的博客, 3626 阅读, 0 推荐, 收藏, 编辑
摘要:unset SSH_ASKPASS 阅读全文

shell 数组

2014-10-02 18:30 by 阿普的博客, 262 阅读, 1 推荐, 收藏, 编辑
摘要:数组赋值:(1)array=(var1 var2 var3 ... varN)(2)array=([0]=var1 [1]=var2 [2]=var3 ... [n]=varN)(3)array[0]=var1 arrya[1]=var2 ... array[n]=varN计算数组元素个数:${#a... 阅读全文

时间戳、当地时间的转换

2014-08-14 11:10 by 阿普的博客, 594 阅读, 0 推荐, 收藏, 编辑
摘要:Unix时间戳、当地时间、时区 阅读全文

linux process 相关命令

2014-08-08 16:40 by 阿普的博客, 650 阅读, 0 推荐, 收藏, 编辑
摘要:1、显示指定用户信息:ps-uroot2、显示所有进程信息,连同命令行:ps-ef3、ps与grep常用组合用法,查找特定进程:ps-ef|grepssh4、把所有进程显示出来,并输出到ps001.txt文件:ps-aux>ps001.txt 阅读全文

nginx install in centos

2014-07-26 14:38 by 阿普的博客, 168 阅读, 0 推荐, 收藏, 编辑
摘要:1、在nginx下载rpm包,如nginx-release-centos-6-0.el6.ngx.noarch.rpm ,并安装(可用yum直接安装);注:rpm包只是提供一个nginx源。2、使用sudo yum install nginx,正式安装nginx;3、安装完成后,访问127.0.0.... 阅读全文