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
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 |
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
拔出記憶卡,放到其他台電腦裡,修改第一個分割區裡的cmdline.txt,裡頭只有一行,原本內容大概如下: | |
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait | |
在最後面加上「init=/bin/sh」。 | |
然後放回Raspberry Pi開機,應該很快就會出現「#」提示字元,然後輸入底下的指令: | |
# su (變成超級使用者) | |
# passwd pi (重新設定帳號pi的密碼) | |
# sync (清空緩衝區,確保設定儲存生效) |
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
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
server { | |
listen 80; | |
server_name download.deliverkindle.com; | |
#charset koi8-r; | |
access_log /var/log/nginx/download.access.log main; | |
location /static/ { | |
alias /data/htdocs/static/; |
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
Latest svn revision will not compile against php 5.4 | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie___construct': | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: 'list_entry' undeclared (first use in this function) | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: (Each undeclared identifier is reported only once | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: for each function it appears in.) | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: 'le' undeclared (first use in this function) | |
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:353: error: expected ';' before 'new_le' |
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下的快速安装。 |
NewerOlder