使用公钥私钥来登陆而不是账号密码,公钥私钥需要简单的在本地生成一下。Github 的生成 SSH 公钥私钥的教程:Generating SSH keys
可能需要使用 -i 参数选择一下本地的私钥,一个示例的 ssh 连接如下:
| FROM debian:latest | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| build-essential \ | |
| wget \ | |
| python3 | |
| WORKDIR /build |
| /** | |
| * traceback for cpp | |
| * | |
| * Created on: 2018-01-27 | |
| * Author: owent | |
| * | |
| * Released under the MIT license | |
| * | |
| * @note Required flag -rdynamic or addr2line to get the function name when using gcc/clang in unix like system | |
| * @note Using addr2line -Cfpe <exe_path> [func_addr...] for more detail when using gcc/clang |
| # 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf | |
| # 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备 | |
| # Version 2.0 | |
| [General] | |
| # 日志等级: warning, notify, info, verbose (默认值: notify) | |
| loglevel = notify | |
| # 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS | |
| # 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理 | |
| # 设置中.) |
| #!/bin/bash | |
| # update_gfwlist.sh | |
| # Author : VincentSit | |
| # Copyright (c) http://xuexuefeng.com | |
| # | |
| # Example usage | |
| # | |
| # ./whatever-you-name-this.sh | |
| # | |
| # Task Scheduling (Optional) |
| #ifdef SHELL | |
| g++ -Wall -Werror -g -I../../cclib/rapidjson/include $0 && ./a.out | |
| exit 0 | |
| #endif | |
| // Output is: | |
| // {"project":"rapidjson","stars":11} | |
| // {"Name":"XYZ","Rollnumer":2,"array":["hello","world"],"Marks":{"Math":"50","Science":"70","English":"50","Social Science":"70"}} | |
| // {"FromEmail":"[email protected]","FromName":"Sender's name","Subject":"My subject","Recipients":[{"Email":"[email protected]"}],"Text-part":"this is my text"} |
使用公钥私钥来登陆而不是账号密码,公钥私钥需要简单的在本地生成一下。Github 的生成 SSH 公钥私钥的教程:Generating SSH keys
可能需要使用 -i 参数选择一下本地的私钥,一个示例的 ssh 连接如下:
| #include <boost/noncopyable.hpp> | |
| #include <pthread.h> | |
| #include <stdlib.h> | |
| // a superfluous check for pedantic people | |
| inline void CHECK_SUCCESS(int ret) | |
| { | |
| if (ret != 0) | |
| { | |
| abort(); |
| /* | |
| * linux 2.6.37-3.x.x x86_64, ~100 LOC | |
| * gcc-4.6 -O2 semtex.c && ./a.out | |
| * 2010 [email protected], salut! | |
| * | |
| * update may 2013: | |
| * seems like centos 2.6.32 backported the perf bug, lol. | |
| * jewgold to 115T6jzGrVMgQ2Nt1Wnua7Ch1EuL9WXT2g if you insist. | |
| */ |
| import numpy as np | |
| from scipy.sparse import csc_matrix | |
| def pageRank(G, s = .85, maxerr = .001): | |
| """ | |
| Computes the pagerank for each of the n states. | |
| Used in webpage ranking and text summarization using unweighted | |
| or weighted transitions respectively. |