-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using github PAT from envvar GITHUB_PAT 错误: Failed to install 'unknown package' from GitHub: Timeout was reached: [api.github.com] Resolving timed out after 10000 milliseconds #3
Labels
Comments
:~$ ## https://www.flyvpn.com/download/linux-vpn
:~$ wget https://www.flyvpn.com/files/downloads/linux/flyvpn-x86_64-4.1.1.0.tar.gz
:~$ ## sudo tar -xzf flyvpn-x86_64-4.1.1.0.tar.gz
:~$ ## sudo tar -xzvf flyvpn-x86_64-4.1.1.0.tar.gz
:~$ sudo tar -zxvf flyvpn-x86_64-4.1.1.0.tar.gz
:~$ sudo rm -rf flyvpn-x86_64-4.1.1.0.tar.gz
:~$ sudo chmod a+x flyvpn
:~$ ## 查看flyvpn飞跃虚拟服务器基本功能
:~$ sudo ./flyvpn
flyvpn 4.1.1.0 (core:20210315-1730)
Can not open config file: /etc/flyvpn.conf
Usage: ./flyvpn -h
Usage: ./flyvpn {login|list|logout}
Usage: ./flyvpn connect "Shanghai 1*"
Default config file: /etc/flyvpn.conf
Config file options:
user your-account-name
pass your-password
:~$ ## 通过`sudo micro /etc/flyvpn.conf`设置用户名和密码,Ctrl+S储存后Ctrl+Q退出,如下
:~$ sudo micro /etc/flyvpn.conf
user Your-Account-Name
pass Your-Password
:~$ ## 查询所有虚拟服务器列表
:~$ sudo ./flyvpn list
:~$ ## 登录账户并链接虚拟服务器
:~$ sudo ./flyvpn login
:~$ sudo ./flyvpn connect 'Shaoxing #12' flyvpn 4.1.1.0 (core:20210315-1730)
Load config file: /etc/flyvpn.conf
Command: connect
Account: englianhu@gmail.com
=====================================================
Web Site: https://www.flyvpn.com
Login Result: OK
Login Message: You are a free trial user and you can use 3 free trials per day. Or you can upgrade to enjoy paid service.
Membership: Free VPN
Expiration: (expired)
=====================================================
Server: "Shaoxing #12"
Please choose protocol [udp/tcp/lwip/proxy]: udp
2022-08-26 08:49:27 [I] flyvpn state = 102, rx = 592, tx = 1683
2022-08-26 08:49:28 [I] flyvpn state = 200, rx = 869, tx = 2771
2022-08-26 08:49:28 [I] flyvpn protocol: udp
2022-08-26 08:49:28 [I] flyvpn opened tun: tun0
2022-08-26 08:49:28 [I] flyvpn setting ip addresses and routes ...
2022-08-26 08:49:29 [I] flyvpn server: Shaoxing #12, server virtual ip: 10.253.240.1, client virtual ip: 10.253.250.5
2022-08-26 08:49:29 [I] flyvpn tun: tun0
2022-08-26 08:49:29 [I] flyvpn dns: 114.114.114.114,223.5.5.5
2022-08-26 08:49:29 [I] flyvpn use vpn as default route gateway
2022-08-26 08:49:29 [I] flyvpn backup dns /etc/resolv.conf to /tmp/flyvpn-data/resolv.conf.backup
2022-08-26 08:49:29 [I] flyvpn update dns nameserver in /etc/resolv.conf
2022-08-26 08:49:29 [I] flyvpn done 欲知更多详情,请查阅 |
:~$ sudo ./flyvpn --help
flyvpn 4.1.1.0 (core:20210315-1730)
Usage: ./flyvpn -h
Usage: ./flyvpn {login|list|logout}
Usage: ./flyvpn connect "Shanghai 1*"
Default config file: /etc/flyvpn.conf
Config file options:
user your-account-name
pass your-password
For experts: ./flyvpn -c /etc/flyvpn.conf {login|list|connect|logout}
Config file advanced options:
cache_dir /tmp
connect server-name(wildcard supported)
protocol {udp|tcp|lwip|socks5|http|proxy}
use_vpn_dns {yes|no}
use_vpn_route {yes|no}
up_down your-script-file 通过
复制粘贴如下后,Ctrl+S储存后Ctrl+Q退出。 user englianhu@gmail.com #邮箱账户
pass ****** #密码
connect "Shaoxing #12" #连接服务器
protocol udp #协议类型设置 如果都设置好的话,日后只需要以下两行即可登录并连接,使用虚拟服务器。 :~$ sudo ./flyvpn login
:~$ sudo ./flyvpn connect |
Originally posted by @kanasethu in r-lib/devtools#1566 (comment) 倘若尚未有任何猫城筹码,需要新建个猫城新筹码如下。 > lib('usethis')
usethis
TRUE
> create_github_token()
• Call `gitcreds::gitcreds_set()` to register this token in the local Git credential store
It is also a great idea to store this token in any password-management software that you use
✔ Opening URL 'https://github.com/settings/tokens/new?scopes=repo,user,gist,workflow&description=DESCRIBE THE TOKEN\'S USE CASE'
> edit_r_environ()
• Modify '/home/englianhu/.Renviron'
• Restart R for changes to take effect
> rstudioapi::restartSession() |
sudo su - -c "R -e \"devtools::install_github('wrathematics/Rdym')\""
sudo su - -c "R -e \"devtools::install_github('gaborcsardi/praise')\""
sudo su - -c "R -e \"remotes::install_github('csgillespie/rprofile')\""
sudo su - -c "R -e \"remotes::install_github('jalvesaq/colorout')\""
sudo su - -c "R -e \"devtools::install_github('mpiktas/midasr')\""
sudo su - -c "R -e \"devtools::install_github('onnokleen/mfGARCH')\""
sudo su - -c "R -e \"devtools::install_github('business-science/tibbletime')\""
sudo su - -c "R -e \"devtools::install_github('DavisVaughan/furrr')\""
sudo su - -c "R -e \"devtools::install_github('lchiffon/REmap')\"" 目前再通过终端安装如上,即可顺利安装R程序包。如果猫城筹码尚在,只需要更新一下,如下。 > lib('devtools')
> lib('tidytuesdayR') ## tidytuesdayR::github_pat(1)
> github_pat(1)
[1] "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"
> Sys.getenv("GITHUB_PAT")
[1] "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"
> Sys.unsetenv("GITHUB_PAT")
> Sys.getenv("GITHUB_PAT")
[1] "" |
This was referenced Sep 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
引用:虚拟服务器 / 代理服务器(VPN / Proxy Server)
The text was updated successfully, but these errors were encountered: