Skip to content

Instantly share code, notes, and snippets.

🙃
Not Good but Alive.

Phoenix Nemo phoenixlzx

View GitHub Profile
View install-dsm-6-on-proxmox-5.md

DRAFT

Prerequisites

Procedure

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

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

7、翻译

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

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

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

@phoenixlzx
phoenixlzx / shaper.sh
Created Jul 26, 2017 — forked from jterrace/shaper.sh
A utility script for traffic shaping with tc
View shaper.sh
#!/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 Nov 18, 2016
NyaaCat bloodmoon plugin mob.yml generator
View bloodmoon_mob_yaml_generator.js
'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 Jan 31, 2016
Essentials worth.txt generator from items.csv
View ess_worth.js
'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 Jan 26, 2016
Deploy Jekyll on VPS using git-hook
View deploy-jeyll-on-vps.md

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 Nov 24, 2015
JavaScript to get all player skins from your server's whitelist.json
View getskins.js
'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 Jan 17, 2019
Project NyaaTracker
View nt.md

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 Aug 29, 2015
exp.js for NyanWorld
View exp.js
// 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 Nov 23, 2018
SNIProxy configuration
View sniproxy.conf
# 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 {
You can’t perform that action at this time.