solana-keygen recover 'prompt:?key=0/0' --outfile ~/.config/solana/id.json
it will ask you for seed phrase like this: Enter your seed phrase here
[recover] seed phrase:
// Website you intended to retrieve for users. | |
const upstream = 'api.openai.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = upstream | |
// Countries and regions where you wish to suspend your service. |
solana-keygen recover 'prompt:?key=0/0' --outfile ~/.config/solana/id.json
it will ask you for seed phrase like this: Enter your seed phrase here
[recover] seed phrase:
// Node v6.9.0 | |
// | |
// TEST FILE (cut down for simplicity) | |
// To ensure Golang encrypted string can be decrypted in NodeJS. | |
// | |
let crypto; | |
try { | |
crypto = require('crypto'); |
2020年初因为新冠肺炎爆发,所以在家办公,公司给配置了L2TP的VPN,但是我不想所有流量都走VPN(VPN比较慢而且也节省流量),于是想到用路由表给VPN分流。
具体的方案就是公司内网的流量走VPN,外网流量走默认网关。
我是在macOS上操作的,其他平台应该也差不多。
假设:
公司内网 192.168.10.0/24
家里网络 192.168.1.0/24
你已经配置好VPN并且可以使用了。
package ciphers | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/sha512" | |
"crypto/x509" | |
"encoding/pem" | |
"log" | |
) |
##解决OSX外接显示器模糊的问题
由于OSX无法识别一部分外接显示器的EDID信息, 默认以TV模式进行输出, 因此会导致外接显示器时文字渲染模糊
可以在关于本机>系统报告>硬件>图形卡/显示器中查看, 如果外接显示器显示了[电视 - 是], 即符合症状
在 EL Capitan 版本, 增加了一个叫做 System Integrity Protection (簡稱 SIP ,或稱 rootless, 在 iOS 9 裡面也有) 的保護機制,SIP 最主要功能就是防止對系統程式的 code injection,還有使用未被 Apple 認可的 kext。 如果要获取读写权限, 需要开机的时候按住 CMD+R 然后在终端输入 csrutil disable, 在重启就可以关闭 SIP 了。
import os | |
import struct | |
import socket | |
state_table = ( | |
"EMPTY SLOT", | |
"ESTABLISHED", | |
"SENT", | |
"RECV", | |
"WAIT1", |