jack@DESKTOP-9TGTFK1:~/ss$ sslocal -c ssclient.json INFO: loading config from shadowsocks.json 2019-12-02 21:02:09 INFO loading libcrypto from libcrypto.so.1.1 Traceback (most recent call last): File "/usr/local/bin/sslocal", line 11, in <module> load_entry_point('shadowsocks==2.8.2', 'console_scripts', 'sslocal')() File "/usr/local/lib/python3.6/dist-packages/shadowsocks/local.py", line 39, in main config = shell.get_config(True) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/shell.py", line 262, in get_config check_config(config, is_local) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/shell.py", line 124, in check_config encrypt.try_cipher(config['password'], config['method']) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/encrypt.py", line 44, in try_cipher Encryptor(key, method) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/encrypt.py", line 83, in __init__ random_string(self._method_info[1])) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/encrypt.py", line 109, in get_cipher return m[2](method, key, iv, op) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/crypto/openssl.py", line 76, in __init__ load_openssl() File "/usr/local/lib/python3.6/dist-packages/shadowsocks/crypto/openssl.py", line 52, in load_openssl libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,) File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__ func = self.__getitem__(name) File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup jack@DESKTOP-9TGTFK1:~/ss$
gitalk: enable: true github_id: jack-zheng # GitHub repo owner repo: hexo-comments # 新建的用于存放评论的repo client_id: d44xxxxxxe3a # GitHub Application Client ID client_secret: 9b3c4xxxxxb708ef # GitHub Application Client Secret admin_user: jack-zheng # GitHub repo owner and collaborators, only these guys can initialize gitHub issues distraction_free_mode: true # Facebook-like distraction free mode # Gitalk's display language depends on user's browser or system environment # If you want everyone visiting your site to see a uniform language, you can set a force language value # Available values: en | es-ES | fr | ru | zh-CN | zh-TW language:
PS: 用这种方案的话,默认只有 github 的用户才能评论,不过看这种文章的应该都是github用户,所以问题不大 PPS: 网上很多文章都会要你去配置 swig 文件,最新版的 next 已经不需要这个步骤了
# Rebase 0dcdaac..dc0a087 onto 0dcdaac (3 commands) # # Commands: # p, pick <commit> = use commit # r, reword <commit> = use commit, but edit the commit message # e, edit <commit> = use commit, but stop for amending # s, squash <commit> = use commit, but meld into previous commit # f, fixup <commit> = like "squash", but discard this commit's log message # x, exec <command> = run command (the rest of the line) using shell # b, break = stop here (continue rebase later with 'git rebase --continue') # d, drop <commit> = remove commit # l, label <label> = label current HEAD with a name # t, reset <label> = reset HEAD to a label # m, merge [-C <commit> | -c <commit>] <label> [# <oneline>] # . create a merge commit using the original merge commit's
# This is a combination of 3 commits. # This is the 1st commit message:
edit01
# This is the commit message #2:
edit02
# This is the commit message #3:
edit03
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Wed Jul 8 17:10:52 2020 +0800 # # interactive rebase in progress; onto 0dcdaac # Last commands done (3 commands done):
带 # 号的行不会显示,只需要修改之前我们自己添加的那些行就行了,这里修改为
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
merge commit edit01-03
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Wed Jul 8 17:10:52 2020 +0800 # # interactive rebase in progress; onto 0dcdaac # Last commands done (3 commands done): # squash c6feb2a edit02 # squash dc0a087 edit03 # No commands remaining. # You are currently rebasing branch 'testrebase2' on '0dcdaac'. # # Changes to be committed: # modified: README.md #
# or you can config it by typing terminal git config --global http.proxy socks5://127.0.0.1:1080 git config --global https.proxy socks5://127.0.0.1:1080 git config --global http.sslVerify false
其他一些比较个人的配置去 next 目录下的 _config.yml 里面配置,像什么头像啦,github 三角标什么的都要有的。
一些坑
如果你只是将 next clone 下来没有删掉 .git 就 add 的话会有 warning 给出来
1 2 3 4 5 6 7 8 9 10 11 12 13
git add .gitignore _config.yml themes/warning: adding embedded git repository: themes/nexthint: You've added another git repository inside your current repository. hint: Clones of the outer repository will not contain the contents of hint: the embedded repository and will not know how to obtain it. hint: If you meant to add a submodule, use: hint: hint: git submodule add <url> themes/next hint: hint: If you added this path by mistake, you can remove it from the hint: index with: hint: hint: git rm --cached themes/next hint: hint: See "git help submodule" for more information.