Instantly share code, notes, and snippets.

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、翻译

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

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

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

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
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;
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');
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
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');
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

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] }
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 {