Skip to content

Instantly share code, notes, and snippets.

View contropist's full-sized avatar
😆
Life is fantastic!

Contropist contropist

😆
Life is fantastic!
View GitHub Profile
@contropist
contropist / rclone.sh
Created February 26, 2019 05:32
rclone 挂载 开机启动脚本2
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
NAME_BIN="rclone"
### BEGIN INIT INFO
# Provides: rclone
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
Test Gist in Hexo
https://press.one/p/v?s=297e6ad0820a0ef83e7e3be5b80cf5dc9e570d883c7b83daff72b2096040c12ac701363f43a91216026150091bb0fb8a4dbd0521fcbeaeab2489932d4027511d1&h=36d2fa39f831ef58b3fdcdc4a1b59a42a9434bb408552207e9d538e1ee0dd334&a=77e5df6b17f82eb846d93aa1854063f3dbfb1b79&f=P1&v=2
@contropist
contropist / seafile-server
Created December 12, 2018 08:37
seafile-server
#!/bin/bash
### BEGIN INIT INFO
# Provides: seafile-server
# Required-Start: $remote_fs $syslog mysql
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Seafile server
# Description: Start Seafile server
### END INIT INFO
@contropist
contropist / seafile-client.service
Created December 12, 2018 08:36
seafile-client.service
[Unit]
Description=Seafile client
# Uncomment the next line you are running seafile client on the same computer as server
# After=seafile.service
# Or the next one in other case
# After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/seaf-cli start
@contropist
contropist / seahub.service
Created December 12, 2018 08:35
seahub.service
[Unit]
Description=Seafile hub
After=network.target seafile.service
[Service]
# change start to start-fastcgi if you want to run fastcgi
ExecStart=/seafile/seafile-server-latest/seahub.sh start
ExecStop=/seafile/seafile-server-latest/seahub.sh stop
User=root
Group=root
@contropist
contropist / seafile.service
Created December 12, 2018 08:34
seafile.service
[Unit]
Description=Seafile
# add mysql.service or postgresql.service depending on your database to the line below
After=network.target
[Service]
Type=oneshot
ExecStart=/seafile/seafile-server-latest/seafile.sh start
ExecStop=/seafile/seafile-server-latest/seafile.sh stop
RemainAfterExit=yes
@contropist
contropist / cloud.liangs.me.conf
Created December 12, 2018 07:50
Nginx configuration
server
{
listen 80;
listen 443 ssl http2;
server_name cloud.liangs.me;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/cloud.liangs.me;
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
#error_page 404/404.html;
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@contropist
contropist / license sublime text
Created January 20, 2017 16:12
license sublime text
—– BEGIN LICENSE —–
Anthony Sansone
Single User License
EA7E-878563
28B9A648 42B99D8A F2E3E9E0 16DE076E
E218B3DC F3606379 C33C1526 E8B58964
B2CB3F63 BDF901BE D31424D2 082891B5
F7058694 55FA46D8 EFC11878 0868F093
B17CAFE7 63A78881 86B78E38 0F146238
BAE22DBB D4EC71A1 0EC2E701 C7F9C648