向鸟哥(laruence)致敬,向所有php大神致敬
PHP7正式版就要发布了,鸟哥2015在Qcon中演讲PHP7 – The New Engine for old good train .pdf 已经透露了许多性能提升。
今天才看了一些,虽然目前还不能get到很多点,但是内心还是很受鼓舞。附文一篇帮助了解。
关于鸟哥 ,再附一文与phper共勉
Questions? Leave a comment below or email: newbvirgil@gmail.com![]()
向鸟哥(laruence)致敬,向所有php大神致敬
PHP7正式版就要发布了,鸟哥2015在Qcon中演讲PHP7 – The New Engine for old good train .pdf 已经透露了许多性能提升。
今天才看了一些,虽然目前还不能get到很多点,但是内心还是很受鼓舞。附文一篇帮助了解。
关于鸟哥 ,再附一文与phper共勉
Questions? Leave a comment below or email: newbvirgil@gmail.com![]()
1 | Unix timestamp to datetime: |
1 | Datetime string to Unix timestamp: |
1 | Rows for today: |
1 | select * from table_name |
1 | UNIX时间戳转换为日期用函数: |
1 | 日期转换为UNIX时间戳用函数: |
1 | 查询当天的记录数: |
1 | select * from table_name where datediff(curdate(),from_unixtime(timestamp_colname,'%Y-%m-%d'))>=N; |
图片上传在web中也是经常用到,这里整理下
File Upload widget with multiple file selection, drag&drop support, progress bars, validation and preview images, audio and video for jQuery.
Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.
Notes from Bird’s Linux Private Kitchen (3rd edition), kept for quick review.
/etc/init.d/* (httpd, vsftpd)/etc/xinetd.d/* (telnet)Notes from Bird’s Linux Private Kitchen (3rd edition), kept for quick review.
:(){ :|:& };:+ is the defaultfg [%]num — pick a job numberfg - — switch to the other job in the rotationNotes from Bird’s Linux Private Kitchen (3rd edition), kept for quick review.
Notes from Bird’s Linux Private Kitchen (3rd edition), kept for quick review.
One-shot enable:
mount -o remount,usrquota,grpquota# matches /etc/mtab
Persist across boots — edit
/etc/fstab
UUID=XXXext4 defaults,usrquota,grpquota 0 0
umount
mount -a
mount | grep# confirm quota options
-auvg — scan filesystems that need quotas [a: from /etc/mtab; u: user; g: group]-mf — force check and write quota files笔记记录于《鸟哥的Linux私房菜-第三版》,以备多看。
单次生效:
mount -o remount,usrquota,grpquota 单独的filesystem #对应/etc/mtab
每次开机有效 编辑/etc/fstab
UUID=XXX单独的filesystem ext4 defaults,usrquota,grpquota 0 0
umount 单独的filesystem
mount -a
mount|grep 单独的filesystem #确认是否添加quota
Notes from Bird’s Linux Private Kitchen (3rd edition), kept for quick review.
Notes from Bird’s Linux Private Kitchen (3rd edition), kept for quick review.
Notes from Bird’s Linux Private Kitchen (3rd edition), kept for quick review.
Stallman:
“Free software” is a matter of liberty, not price. To understand the concept, you should think of “free speech”, not “free beer”. “Free software” refers to the users’ freedom to run, copy, distribute, study, change, and improve the software
Linus Torvalds: Linux
Kernel releases split into stable even minor versions (e.g. 2.6.x) for production and home use, and development odd minors (e.g. 2.5.x) when you need bleeding-edge features.
笔记记录于《鸟哥的Linux私房菜-第三版》,以备多看。
Stallman:
“Free software” is a matter of liberty, not price. To understand the concept, you should think of “free speech”, not “free beer”. “Free software” refers to the users’ freedom to run, copy, distribute, study, change, and improve the software
Linus Torvalds:linux
目前Linux核心的发展分为两种版本,分别是稳定版本的偶数版,如2.6.X,适合于商业与家用环境使用; 一种是发展中版本的奇数版如2.5.X 版,适合开发特殊功能的环境。