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 / pep20_by_example.py
Created August 14, 2016 20:06 — forked from evandrix/pep20_by_example.py
PEP 20 (The Zen of Python) by example
#!/usr/bin/env python
"""
=====================================
PEP 20 (The Zen of Python) by example
=====================================
Usage: %prog
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com
@contropist
contropist / ACM学习计划
Created September 23, 2016 19:56 — forked from dodola/ACM学习计划
ACM学习计划
ACM大量习题题库
ACM大量习题题库
现在网上有许多题库,大多是可以在线评测,所以叫做Online Judge。除了USACO是为IOI准备外,其余几乎全部是大学的ACM竞赛题库。
USACO
http://ace.delos.com/usacogate
美国著名在线题库,专门为信息学竞赛选手准备
@contropist
contropist / gist-blog.md
Created September 28, 2016 08:47 — forked from kevin-isky/gist-blog.md
Gist 配合 roughdraft.io 写东西

一直都喜欢用markdown记录东西,即使平时用的某云笔记并不支持markdown,也还是习惯保持markdown格式的记录。最近Medium比较火,就试着把之前写好的一篇文章发到Medium上去,结果Medium并不支持Markdown,可是在Medium上写作的Geek们自然有办法:

就是在这里看到了Github的Gist原来可以这么玩,忽然好奇Gist是不是还有其他好玩的玩儿法。一发不可收拾,果然找到了各种花样玩儿法:

总得来说还是对Gist写东西比较感兴趣,有版本控制,能够设置成别人可见或不可见,还支持协作。Gist写好之后可以通过roughdraft.io发布出来,读起来很方便。

@contropist
contropist / Test Gist in Hexo
Created October 3, 2016 07:26
Test Gist in Hexo
//For Blog Test.
@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
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 / 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;
@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 / 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-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