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
# 2023-11-27 MIT LICENSE | |
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com. | |
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town. | |
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same! | |
Send me your ChatGPT text adventure game on X, I'd love to try it! |
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
http://23.226.79.61/ | |
https://gist.github.com/chappyhome/9563393 | nginx download accesskey accesskey_signature | |
https://www.google.com.hk/search?q=php5.3++%E5%8A%A8%E6%80%81new+class&oq=php5.3++%E5%8A%A8%E6%80%81new+class&aqs=chrome..69i57.14291j0j1&sourceid=chrome&ie=UTF-8 | php5.3 动态new class - Google 搜索 | |
http://blog.csdn.net/fenglailea/article/details/9853645 | php5.3 PHP5.4 PHP5.5 新特性/使用PHP5.5要注意的 - 風.FOX - 博客频道 - CSDN.NET | |
http://blog.csdn.net/baiwz/article/details/9077825 | PHP 5.3中的新特性 - 白文召的专栏 - 博客频道 - CSDN.NET | |
https://www.google.com.hk/search?newwindow=1&safe=strict&q=yum++remi+++php5.5&oq=yum++remi+++php5.5&gs_l=serp.3...11734776.11743332.0.11744507.18.17.0.1.1.0.164.2002.0j15.15.0....0...1c.1j4.37.serp..3.15.1869.3JXrzsZdkoM | yum remi php5.5 - Google 搜索 | |
http://www.php100.com/html/php/rumen/2013/0909/6094.html | 在centos上安装php5.5+MySQL 5.5.32 | |
http://nginx.org/en/linux_packages.html#stable | nginx: Linux packages | |
http://www.oschina.net/question/157182_61259 | PHP5.5 将会带来哪些新特征 - 开源中国社区 |
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
2. 在/etc/security/limits.conf文件中设置最大打开文件数, 下面是一行提示: | |
# | |
添加如下这行。 | |
* - nofile 8192 | |
这行设置了每个用户的默认打开文件数为2048。 注意"nofile"项有两个可能的限制措施。就是项下的hard和soft。 要使修改过得最大打开文件数生效,必须对这两种限制进行设定。 如果使用"-"字符设定, 则hard和soft设定会同时被设定。 | |
硬限制表明soft限制中所能设定的最大值。 soft限制指的是当前系统生效的设置值。 hard限制值可以被普通用户降低。但是不能增加。 soft限制不能设置的比hard限制更高。 只有root用户才能够增加hard限制值。 | |
当增加文件限制描述,可以简单的把当前值双倍。 例子如下, 如果你要提高默认值1024, 最好提高到2048, 如果还要继续增加, 就需要设置成4096。 | |
另外一种情况是在创建索引的时候,也有两种可能,一种是合并因子太小,导致创建文件数量超过操作系统限制,这时可以修改合并因子,也可以修改操作系统的打开文件数限制;另外一种是合并因子受虚拟机内存的限制,无法调整到更大,而 需要索引的doc 数量又非常的大,这个时候就只能通过修改操作系统的打开文件数限制来解决了。 | |
在此基础上,我还修改了以下一个配置文件 |
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
When you start develop new site, you may run from little one with tiny database. | |
For django best start from sqlite and after some time, if you project begin grow you move to more serious database engine (MySQL, Postgre SQL etc). | |
Sadly, django does not have any ready tools to move from one to another database. | |
You may try | |
python ./manage.py dumpdata > data.json | |
and | |
python ./manage.py loaddata data.json |
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
利用rsync自动同步服务器与本地代码的python脚本 | |
四 07 二月 2013 | |
tags: Python | |
菜鸟表示写web时 每次修改完后把文件往VPS上丢很麻烦 | |
用ssh sshfs scp都太慢 小东西又懒得用git | |
sublimetext上得sftp不支持中文 emacs干脆就只能ssh | |
于是用linux自带的rsync写了个同步脚本 | |
可以手动或自动往服务器上差异性同步 不用scp一堆东西 也不用忍受ssh那个渣速度 |
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
jquery validator addMethod 方法的使用 | |
(2013-04-01 08:32:25) | |
转载▼ | |
jQuery.validate是一款非常不错的表单验证工具,简单易上手,而且能达到很好的体验效果,虽然说在项目中早已用过,但看到这篇文章写得还是不错的,转载下与大家共同分享。 | |
一、用前必备 | |
官方网站:http://bassistance.de/jquery-plugins/jquery-plugin-validation/(注意下载最新版) | |
API: http://jquery.bassistance.de/api-browser/plugins.html当前版本:1.5.5 | |
需要JQuery版本:1.2.6+, 兼容 1.3.2<script src="../js/jquery.js" type="text/javascript"></script> | |
< script src="../js/jquery.validate.js" type="text/javascript"></script> |
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
ffmpeg-php在CentOS上的快速安装 | |
3 Replies | |
本博客所有原创文章采用知识共享署名-非商业性使用-相同方式共享,转载请保留链接http://chaoqun.17348.com/2008/07/ffmpeg-php-install-on-centos | |
最近的一个项目,要批量获取音频文件(包括mp3、wma等格式)的播放时长,由于项目整体是Lamp结构的,所以最佳的方案就是能找到这么一个PHP扩展能提供这样的功能接口。 | |
我们用到的开源项目是http://ffmpeg-php.sourceforge.net/,ffmpeg的php扩展,下面是ffmpeg-php在linux下的快速安装。 |
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
docker exec -it [container-id or name] bash |
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
xattr -rc /Applications/Kitematic\ \(Beta\).app |
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
docker run --name db -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:latest |
NewerOlder