Skip to content

Instantly share code, notes, and snippets.

View c2h2's full-sized avatar

Yiling Cao c2h2

View GitHub Profile
@c2h2
c2h2 / unicorn
Created August 14, 2012 09:32
/etc/init.d script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by [email protected] http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@c2h2
c2h2 / unicorn
Created August 14, 2012 09:32
/etc/init.d script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by [email protected] http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名

@c2h2
c2h2 / setup-lamp-ubuntu.sh
Last active April 2, 2019 03:55 — forked from AshikNesin/setup-lamp-ubuntu.sh
Setup LAMP Stack Ubuntu 16
# Install Apache
sudo apt-get update
sudo apt-get install apache2 -y
# Install PHP7
sudo apt-get -y install php7.2 libapache2-mod-php7.2
sudo apt-get install php7.2-cli php7.2-common libapache2-mod-php7.2 php7.2 php7.2-mysql php7.2-fpm -y
# Other packages which might be useful
@c2h2
c2h2 / wiki-crawler.md
Created December 8, 2020 10:27 — forked from jsaneu/wiki-crawler.md
MediaWiki Crawler

Gets the website

wget -nH --reject-regex 'Especial|Special|Ayuda|Help|action|printable|Archivo:' --recursive --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains domain.com --no-parent http://domain.com/wiki

Remove external links regexp

Find: (<a[^>]*href="http)[^"]*("[^>]*>)([^"]*)(</a>)

Replace: $3

@c2h2
c2h2 / frps
Created May 25, 2023 17:24 — forked from KyonLi/frps
frps init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: frps
# Required-Start: $local_fs $network
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: frps service deamon
# Description: frps service daemon