失眠,因对明天不安
但是,失眠对身体影响太大,4-5点还没睡着,睡到3点也没精神
别忘了,之前耳朵已经出事
g
失眠,因对明天不安
但是,失眠对身体影响太大,4-5点还没睡着,睡到3点也没精神
别忘了,之前耳朵已经出事
1 2 |
|
解决 ssh: connect to host github.com port 22: Connection timed out
ssh: connect to host github.com port 22: Connection timed out
如果你电脑上的git能在大部分地方进行同步,但是在某处地方的网络下无法同步,并且运行git pull或git push长久没有反映,最后出现ssh: connect to host github.com port 22: Connection timed out,很可能是你的网络供应商(比如广电网)在出口防火墙上屏蔽了22端口,这意味着你将无法访问其他主机的22端口。
对此,github提供了一种解决方案,允许你使用443端口进行ssh连接,因为443端口是访问https网站所必须的,大部分防火墙都会允许通过,但如果使用代理服务器可能产生干扰。如果连443端口都被屏蔽,那你应该无法浏览这篇文章。
运行这段命令,看看是否有成功提示,如果成功,则可以使用这个解决方案。
1
|
|
简单地配置一下,让你每次ssh连接github都通过443端口。如果你使用Linux,在~/.ssh/config
内(新建config文件,无后缀),添加这些内容,指明ssh连接git@github.com或git@ssh.github.com走443端口。
1 2 3 4 |
|
或者这一段:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
我的:把config
文件复制到.ssh2和.ssh3文件夹
改ssh2-3文件夹名,测试:
1
|
|
ssh: connect to host ssh.github.com port 443: Connection refused
1
|
|
提示错误:
1 2 3 4 5 |
|
Error running ‘__rvm_make -j4’ ruby 2.6.9 Ubuntu 22.04
解决:
1 2 3 |
|
Ubuntu24.04安装
以后重装系统,记得把octopress、haydnyau、ssh2、ssh3文件夹、.gitconfig,打包备份,并上传网盘。
依赖:python2,ruby2.6.9
1 2 |
|
然后配置git,把之前的octopress-haydnyau和ssh2-ssh3文件夹和.gitconfig文件复制到主目录,改ssh文件夹名
1
|
|
ok
1 2 3 4 |
|
没有
到rvm官网(下面的命令可能有更新,看官网)
1
|
|
提示:
1 2 |
|
1 2 3 4 |
|
提示:
1 2 |
|
1 2 3 4 5 6 7 8 |
|
1 2 |
|
提示:
1
|
|
解决:
Failed to connect to raw.githubusercontent.com
到这个网址:https://www.ipaddress.com/
,输入:raw.githubusercontent.com
,查询,得到IP地址,选择其中一个或多个,修改本地HOSTS:Ubuntu下打开/etc/hosts,添加 IP地址:185.199.108.133 raw.githubusercontent.com
,重试,不行就重启再试。
1
|
|
提示:
1 2 3 |
|
1
|
|
重启命令行
1 2 |
|
提示错误:
1 2 3 4 5 |
|
解决:
Error running ‘__rvm_make -j4’ ruby 2.6.9 Ubuntu 22.04
1 2 3 |
|
1
|
|
1
|
|
把 /octopress/Gemfile
文件里的源改回最初的:source "https://rubygems.org/"
1 2 |
|
更改:You can use the sass-convert command to automatically fix most cases.
1 2 |
|
之后就都是常规操作。
1
|
|
1 2 |
|
1
|
|
确保安装正确
安装好Octopress 2.0之后,其他的依赖都安装好了,只需要:
1
|
|
确保安装正确,成功,曾试过因为系统自带了ruby3.0,导致ruby版本不对,失败的
好了。
看到张朝阳的物理课,查了下。
张朝阳,清华物理系,麻省理工博士,创立搜狐,中国互联网教父,位列中国富豪榜。
年少得志,生活潇洒风流,商海浮沉,抑郁过几年。
2021年末,57岁,讲授物理课,各种深奥晦涩的知识。
很多人三十来岁,已经连初中数学都不记得了。
他还能讲授深奥的物理和数学知识,在讲台上意气风发。
抑郁时,他从佛学明白: 心有所依处。
原文
列出可用的ruby版本以安装类型:
1
|
|
然后从已知的列表中安装,输入:
1
|
|
然后使用你已经安装的ruby版本:
1
|
|
你可以使一个特定的ruby版本成为你的默认系统版本:
1
|
|
要删除gem版本,保持gemsets:
1
|
|
删除ruby等:
1
|
|
要了解你的ruby环境以及它们的安装位置/别名:
1
|
|
octopress-2.0,ruby-2.3.1,ubuntu20.04,可以运行(修改这里后)
octopress-2.0,ruby-2.5.9,ubuntu20.04,可以运行(修改这里后)
octopress-2.0,ruby-2.6.9,ubuntu20.04,可以运行(修改这里后)
octopress-3.0,ruby-2.5.9,ubuntu20.04,可以运行(無需修改)
octopress-3.0,ruby-2.6.9,ubuntu20.04,可以运行(無需修改)
換了版本要重新安裝octopress3.0:
1
|
|
octopress-2.0-3.0,ruby-3.1.1,ubuntu20.04,都無法运行。
I just installed and Compass & Sass as described here.
I got the following warning when I ran compass watch
for the first time. What exactly does it mean? What should I do to fix it, do I need to do anything?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
To fix the error message, just change the line 87 from your “_deprecated-support.scss” file to this:
1 2 3 4 5 6 7 8 9 10 11 |
|
The file can be found at your /home/dong/.rvm/gems/ruby-2.3.1/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss
2022年3月21日下午,一架飞机在广西梧州滕县失事,132人,惨烈。
飞行数据显示,MU5735航班从昆明机场起飞后,一直在约8869米高度进行巡航。下午2点19分,飞机突然从巡航高度下降,同时飞行速度从约每小时845公里开始下降。机头垂直向下,2点21分,MU5735航班丢失ADS-B雷达信号,同地面失联。
人生无常,真的是,你永远不知道明天和意外谁先到来。
生死面前,都是小事。
珍惜。
有時會出現標題的錯誤,ssh無法連接服務器,試過網上的幾種方法都不行,其實是國內網絡經常封鎖github,過段時間就好了。
update:
GitGuardian检测到您的GitHub帐户中暴露了以下OpenSSH私钥。
GitGuardian has detected the following OpenSSH Private Key exposed within your GitHub account.
新建key即可。
1 2 3 4 5 6 7 8 9 10 11 |
|