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
#复制以下内容到~/.vimrc中即可,如果文件不存在,则创建此文件 | |
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 | |
set termencoding=utf-8 | |
set encoding=utf-8 |
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
#!/bin/bash | |
# Install build dependencies | |
yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel | |
# Get GraphicsMagick source | |
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz | |
tar zxvf GraphicsMagick-1.3.9.tar.gz | |
# Configure and compile |
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
创建plist在:/Library/LaunchDaemons/com.mysql.mysql.plist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true /> | |
<key>Label</key> | |
<string>com.mysql.mysqld</string> | |
<key>ProgramArguments</key> |
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
var numbers = []; | |
var total = 0; | |
var isFind = false; | |
var checkNumber = function(number){ | |
if(/5800\s58/.test(number) && number.substr(-2) == number.substr(-1)){ | |
isFind = true; | |
alert('找到了' + number); | |
return true; | |
}else if(/5800/.test(number)){ |
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
$ sysctl kern.maxfiles | |
kern.maxfiles: 12288 | |
$ sysctl kern.maxfilesperproc | |
kern.maxfilesperproc: 10240 | |
$ sudo sysctl -w kern.maxfiles=1048600 | |
kern.maxfiles: 12288 -> 1048600 | |
$ sudo sysctl -w kern.maxfilesperproc=1048576 | |
kern.maxfilesperproc: 10240 -> 1048576 | |
$ ulimit -n | |
256 |
OlderNewer