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 / 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
@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;
301 https://github.com/zxdrive/imouto.host
// 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;

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

开发环境

  • Node.js (0.10.28+)
    • Arch Linux: 直接使用包管理器安装
    • Ubuntu / Debian / etc: 使用 visionmedia/n
    • OS X / Windows: 使用官方提供的安装包
  • 编辑器
  • WebStorm
@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
@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 / sniproxy.conf
Last active November 23, 2018 11:26
SNIProxy configuration
# sniproxy example configuration file
# lines that start with # are comments
# lines with only white space are ignored
user daemon
# PID file
pidfile /var/run/sniproxy.pid
resolver {
@phoenixlzx
phoenixlzx / exp.js
Last active August 29, 2015 14:03
exp.js for NyanWorld
// exp.js table designed by phoenixlzx <i@phoenixlzx.com>
// level 1 - 10 | exp 0 - 324
// for (i = 1; i <= 10; i++) { exp[i] = i == 1 ? 0 : (i * 6 + exp[i-1]) }
// level 11 - 20 | exp 434 - 1874
// for (i = 11; i <= 20; i++) { exp[i]= i * 10 + exp[i-1] }
// level 21 - 40 | exp 2189 - 11024
// for (i = 21; i <= 40; i++) { exp[i] = i * 15 + exp[i-1] }
// level 41 - 50 | exp 12008 - 21944
// for (i = 41; i <= 50; i++) { exp[i] = i * 24 + exp[i-1] }
@phoenixlzx
phoenixlzx / nt.md
Last active October 3, 2023 03:38
Project NyaaTracker

NyaaTracker is an open and free bittorrent tracker for everyone.

Usage

Simply add one of the following tracker address to your torrent file and all set:

  • http://t.nyaatracker.com:80/announce
  • udp://t.nyaatracker.com:80/announce

Features