MOVE TO HERE
首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:
首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:
#include <iostream> | |
#include <stdio.h> | |
#include <string.h> | |
#include <openssl/rsa.h> | |
#include <openssl/pem.h> | |
#include <openssl/err.h> | |
#define CRYPTO_RSA_KEY_LEN_4096 4096 | |
#define CRYPTO_RSA_KEY_LEN_2048 2048 | |
#define CRYPTO_RSA_KEY_LEN_1024 1024 |
use std::str; | |
fn main() { | |
// -- FROM: vec of chars -- | |
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
// to String | |
let string1: String = src1.iter().collect::<String>(); | |
// to str | |
let str1: &str = &src1.iter().collect::<String>(); | |
// to vec of byte |
This approach, based on [0] and [1] lets me reverse-tunnel through the local machine, to get github (and other) access on protected machines, such as HPC compute systems.
I put these lines in my local ~/.ssh/config
file
Host somehpcsocks
ProxyCommand ssh -D 2020 localhost nc -q 1 localhost 22
I'm writing this gist for my own records but it might help someone else too.
Support for Catalina has improved a lot since the update was first rolled out.
Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume
option.