Skip to content

Instantly share code, notes, and snippets.

@Guanchishan
Guanchishan / Dolt.sh
Last active May 8, 2024 07:29
Dolt.sh
#!/bin/sh
CONF=/etc/config/qpkg.conf
QPKG_NAME="Dolt"
QPKG_ROOT=`/sbin/getcfg $QPKG_NAME Install_Path -f ${CONF}`
# 該變量用来定义Apache服务器的根目录,與目前Dolt CLI服務似無關係,可去可留
APACHE_ROOT=`/sbin/getcfg SHARE_DEF defWeb -d Qweb -f /etc/config/def_share.info`
export QNAP_QPKG=$QPKG_NAME
export QPKG_NAME QPKG_ROOT
#!/bin/bash
GIT_VERSION="2.23.0"
yum install -y gcc wget make curl-devel expat-devel \
gettext-devel openssl-devel perl-devel zlib-devel
cd ~
if [ ! -f git-${GIT_VERSION}.tar.gz ]; then
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz
#!/bin/bash
BASE_DIR=$(dirname $0)
BUILD_SCRIPT_NAME="build-git.sh"
BUILD_SCRIPT="${BASE_DIR}/${BUILD_SCRIPT_NAME}"
if [ ! -d /share/Public/toolchain ]; then
mkdir /share/Public/toolchain
fi
### Keybase proof
I hereby claim:
* I am guanchishan on github.
* I am davidzdh (https://keybase.io/davidzdh) on keybase.
* I have a public key ASBGhtHsZ0rnvbZ9hZsn1oeYX-ZdiL0MAL9BbsxGArbE7wo
To claim this, I am signing this object:
{{Navbox subgroup|group1 =|list1 =|group2 =|list2 =}}<!--表格中小表格语法-->
{{#tag:ref|[[現代漢語]]讀音「mò qí xiè/ㄇㄛˋ ㄑㄧˊ ㄒㄧㄝˋ」,[[万俟姓|万俟]]是[[複姓]]。<ref>{{Cite book | author = 由中国社会科学院语言研究所词典编辑室 | title = 现代汉语词典·第六版 | location = 北京 | publisher = [[商务印书馆]] | date = 2012年6月 | pages = 916 | ISBN = 9787100084673 | accessdate = 2013-11-4 | url = | language = 简体中文 | quote = 【万俟】mò qí (名词)姓。 }}</ref>|group=注}}
{{Refscroll}}<!--带有滚动轴的来源罗列框-->
{{Location map+|Taiwan|width=200|float=right|caption=平潭位置圖|places=
{{Location map~|Taiwan|lat_deg=25|lat_min=30|lon_deg=119|lon_min=46|position=right|background=|label=平潭}}
{{Location map~|Taiwan|lat_deg=24|lat_min=49|lon_deg=120|lon_min=59|position=right|background=|label=新竹}}
{{Location map~|Taiwan|lat_deg=26|lat_min=9|lon_deg=119|lon_min=17|position=left|background=|label=<br />福州}}
}}
<!--封存于2014-11-30 11:03:16 (UTC+8)-->
{{Location map+|China relief|float=right|width=350|caption=2014年大中华地区参与冰桶挑战情况([[Template:2014年大中华地区参与冰桶挑战情况|查看]])|places=
{{Location map~|China relief|label=<!--北京--> |lat_deg=39|lat_min=54|lat_sec=57|lon_deg=116|lon_min=23|lon_sec=26|mark=Red pog.svg|position=top}}
{{Location map~|China relief|label=<!--太原--> |lat_deg=31|lat_min=27|lat_sec=0|lon_deg=111|lon_min=30|lon_sec=0|mark=Red pog.svg|position=top}}
{{Location map~|China relief|label=<!--杭州--> |lat_deg=29|lat_min=11|lat_sec=0|lon_deg=118|lon_min=21|lon_sec=0|mark=Red pog.svg|position=top}}
{{Location map~|China relief|label= <!--西安--> |lat_deg=34|lat_min=16|lat_sec=0|lon_deg=108|lon_min=54|lon_sec=0|mark=Red pog.svg|position=top}}
{{Location map~|China relief|label= <!--上海-->|lat_deg=31|lat_min=12|lat_sec=0|lon_deg=121|lon_min=30|lon_sec=0|mark=Red pog.svg|position=right}}
{{Location map~|China relief|label= <!--长沙-->|lat_deg=28|lat_min=11|lat_sec=46|lon_deg=112|lon_min=58|lon_sec=20|mark=Red pog.svg|position=bott