duzhuo's-blog

学无止境

Systemd 应用

搬运自:Systemd 入门教程:命令篇Systemd 入门教程:实战篇

Systemd 是 Linux 系统工具,用来启动守护进程,已成为大多数发行版的标准配置。

本文介绍它的基本用法,分为上下两篇。今天介绍它的主要命令,下一篇介绍如何用于实战。

1. 由来

历史上,Linux 的启动一直采用init进程。

下面的命令用来启动服务。

$ sudo /etc/init.d/apache2 start
# 或者
$ service apache2 start

这种方法有两个缺点。

一是启动时间长。init进程是串行启动,只有前一个进程启动完,才会启动下一个进程。

阅读全文 »

simple-practicemode

Intro

基于csgo-practice-mode,删减了部分内容,更好地适配csgowiki-pack

Feature

  • 不再与csgo-pug-setupget5兼容。simple-practicemode是一个单独且纯粹的跑图插件。
  • 删除原跑图插件的本地道具仓库功能,.nades.cats相关功能取消。因为csgowiki-pack已经具有部分道具合集的功能。
  • 重构botmimic插件,使其适配sourcemod v1.11语法,重构后的插件名/Libary名称为botmimic_fix
  • 新增计时器面板功能,.timers。timers开启,整合了三种计时器类型。
  • 新增。command指令触发方式,方便中文输入法用户避免频繁切换输入法。
  • 更全面友好的汉化内容。

Compiling

necessary .inc needed

compiled files:

  • botmimic_fix.smx
  • csutils.smx
  • practicemode.smx
阅读全文 »

提问的智慧

PRs Welcome

How To Ask Questions The Smart Way

Copyright © 2001,2006,2014 Eric S. Raymond, Rick Moen

本指南英文版版权为 Eric S. Raymond, Rick Moen 所有。

原文网址:http://www.catb.org/~esr/faqs/smart-questions.html

Copyleft 2001 by D.H.Grand(nOBODY/Ginux), 2010 by Gasolin, 2015 by Ryan Wu

本中文指南是基于原文 3.10 版以及 2010 年由 Gasolin 所翻译版本的最新翻译;

协助指出翻译问题,发 issue,或直接发 pull request 给我。

本文另有繁體中文版

阅读全文 »

县及县以上行政区划代码

Join the chat at https://gitter.im/cn/GB2260
GB/T 2260

中华人民共和国国家标准 GB/T 2260 行政区划代码

数据来源:

  1. http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/
  2. http://www.mca.gov.cn/article/sj/tjbz/a/

你可以利用国家标准数据构建自己项目的数据库。

Badges

Badges with spec versions:

Spec v0.2

Badge: https://img.shields.io/badge/GB%2FT%202260-v0.2-blue.svg
Link: https://github.com/cn/GB2260/blob/v0.2/spec.md
阅读全文 »

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate
阅读全文 »
0%