Skip to content

Instantly share code, notes, and snippets.

View phoenixlzx's full-sized avatar
🙃
Alive.

Phoenix Nemo phoenixlzx

🙃
Alive.
View GitHub Profile
@phoenixlzx
phoenixlzx / config.yml
Created June 11, 2014 12:22
SignShop Configuration
# If you need help with this config, view the SignShop Quick Reference PDF located in the SignShop folder
# You can also visit our Bukkit page at tiny.cc/SignShop
# There are a few basic options to modify how SignShop acts globally
# You can edit anything in this config and use "/signshop reload" to reload the config while the server is running
@phoenixlzx
phoenixlzx / apple.hosts
Last active August 29, 2015 14:02
Apple Accelerated hosts
# swdist
124.232.148.78 swdist.apple.com
182.118.12.165 swdist.apple.com
220.181.64.182 swdist.apple.com
124.95.150.197 swdist.apple.com
# itunes
221.228.64.48 itunes.apple.com
218.59.209.150 itunes.apple.com
58.215.107.24 itunes.apple.com

基于 Node.js 和 Express.js 的 RESTful API 服务端开发

开发环境

  • Node.js (0.10.28+)
    • Arch Linux: 直接使用包管理器安装
    • Ubuntu / Debian / etc: 使用 visionmedia/n
    • OS X / Windows: 使用官方提供的安装包
  • 编辑器
  • WebStorm
// ass2txt convert script
if (process.argv.length < 3) {
console.log('Usage: node ' + process.argv[1] + ' FILENAME');
process.exit(1);
}
var fs = require('fs')
, filename = process.argv[2];
fs.readFile(filename, 'utf8', function(err, data) {
if (err) throw err;
301 https://github.com/zxdrive/imouto.host
@phoenixlzx
phoenixlzx / nyaa.cat.nginx.conf
Created February 21, 2014 07:40
Nyaa.cat NGINX configuration
map $http_accept_language $lang {
default zh_CN;
~en en;
~ca ca;
}
server {
listen [::]:80;
@phoenixlzx
phoenixlzx / PKGBUILD
Created October 2, 2012 12:12
PKGBUILD for Vuze 4.7.2.0
pkgname=vuze
pkgver=4.7.2.0
pkgrel=2.1
pkgdesc="One of the most powerful bitTorrent client with GUI in the world, written in Java."
arch=('i686' 'x86_64')
url="http://azureus.sf.net/"
license=('GPL')
depends=('java-runtime' 'desktop-file-utils')
optdepends=('libgnomeui: for vuze GUI')
install=vuze.install