System information System: Proxy: no Current User: git Using RVM: no Ruby Version: 2.7.2p137 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.3 Redis Version: 6.0.14 Git Version: 2.32.0 Sidekiq Version:5.2.9 Go Version: unknown
GitLab information Version: 14.0.1-ee Revision: 38151bb98b6 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.4 URL: https://code.xxx.com HTTP Clone URL: https://code.xxx.com/some-group/some-project.git SSH Clone URL: git@code.xxx.com:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers:
➜ todo mkdir dist ➜ todo mkdir src ➜ todo touch tsconfig.json ➜ todo vi tsconfig.json ➜ todo tree . ├── dist ├── package.json ├── src └── tsconfig.json
3. src目录下创建index.ts
1 2 3 4
console.clear(); console.log("你好,Typescript");
项目目录下编译
1 2 3 4 5 6 7 8 9 10 11
➜ todo tsc
➜ todo tree . ├── dist │ └── index.js ├── package.json ├── src │ └── index.ts └── tsconfig.json
➜ two-fer lein uberjar Compiling two-fer.core Created /Users/yangandrew/work/clojure/two-fer/target/uberjar/two-fer-0.1.0-SNAPSHOT.jar Created /Users/yangandrew/work/clojure/two-fer/target/uberjar/two-fer-0.1.0-SNAPSHOT-standalone.jar
➜ two-fer java -jar /Users/yangandrew/work/clojure/two-fer/target/uberjar/two-fer-0.1.0-SNAPSHOT-standalone.jar foo boo One for foo, one for me.
➜ two-fer java -jar /Users/yangandrew/work/clojure/two-fer/target/uberjar/two-fer-0.1.0-SNAPSHOT-standalone.jar One for you, one for me.
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import sys
def twofer(name): return "One for %s, one for me." % name
ERROR method chacha20-ietf-poly1305 not supported 解决
大部分文章都说按以下命令就能解决这个问题
1 2 3
yum install libsodium -y
然而这样真没什么用,正确的解决办法是重新安装shadowsocks来解决这个问题
1 2 3 4 5 6 7 8 9 10 11 12
pip install https://github.com/shadowsocks/shadowsocks/archive/master.zip -U Collecting https://github.com/shadowsocks/shadowsocks/archive/master.zip Downloading https://github.com/shadowsocks/shadowsocks/archive/master.zip (115kB) 100% |████████████████████████████████| 122kB 871kB/s Installing collected packages: shadowsocks Found existing installation: shadowsocks 2.8.2 Uninstalling shadowsocks-2.8.2: Successfully uninstalled shadowsocks-2.8.2 Running setup.py install for shadowsocks ... done Successfully installed shadowsocks-3.0.0 You are using pip version 8.1.2, however version 19.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.