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 / install-dsm-6-on-proxmox-5.md
Created April 29, 2018 12:58 — forked from Neonox31/install-dsm-6-on-proxmox-5.md
Install DSM 6.X on Proxmox 5.0.X

DRAFT

Prerequisites

Procedure

  • Create the proxmox VM as the following :
  • OS Type : Linux 4.x

Origin: https://www.ikde.org/discuss/how-to-translate-kde/

7、翻译

以下内容比较零散,作为指导和参考。

中英混合:中英混合时在英文两侧加入空格。

标点:常见使用全角的标点都使用全角,括号使用半角,并在括号周围留空格,例外包括括号后紧跟其他标点,或者是为了快捷键字符的括号。引号无论内容是单引号还是双引号,优先使用双引号,嵌套时才使用单引号。

@phoenixlzx
phoenixlzx / shaper.sh
Created July 26, 2017 17:33 — forked from jterrace/shaper.sh
A utility script for traffic shaping with tc
#!/bin/bash
#
# shaper.sh
# ---------
# A utility script for traffic shaping using tc
#
# Usage
# -----
# shape.sh start - starts the shaper
# shape.sh stop - stops the shaper
@phoenixlzx
phoenixlzx / bloodmoon_mob_yaml_generator.js
Last active November 18, 2016 04:40
NyaaCat bloodmoon plugin mob.yml generator
'use strict';
var yaml = require('js-yaml');
var fs = require('fs');
var waves = 6,
wave_easy = 3,
wave_normal = 5;
var div = 3;
var maxmobs = 20;
@phoenixlzx
phoenixlzx / ess_worth.js
Last active January 31, 2016 14:04
Essentials worth.txt generator from items.csv
'use strict';
/*
* 2016 Phoenix Nemo <i@phoenixlzx.com>
* This script converts Essentials items.csv to worth.txt file
* don't forget to edit prices yourself!
**/
var fs = require('fs');
var yaml = require('js-yaml');
@phoenixlzx
phoenixlzx / deploy-jeyll-on-vps.md
Created January 26, 2016 02:41
Deploy Jekyll on VPS using git-hook

Install dependencies

$ apt-get install git nginx # or using any other package manager and web server

Create directories and repositories:

cd $HOME
@phoenixlzx
phoenixlzx / getskins.js
Created November 24, 2015 14:36
JavaScript to get all player skins from your server's whitelist.json
'use strict';
/*
* Script to get all player skins from your server whitelist.
* $ npm install request
* $ mkdir -p ./skins/Alex ./skins/Steve
* $ node getskins.js
**/
var fs = require('fs');
@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

@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 / 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 {