Git 设置代理 加快clone速度

国内访问Github本身就挺难的,但是加上长城宽带简直男上加男

当然直接修改~/.gitconfig文件也可以当然直接修改~/.gitconfig文件也可以

info:Shell走代理的方法:传送门
注意: 代理地址不要加引号,会导致gclient下载出错
1.https.proxy设置是无用的, 只需要设置http.proxy(带查证)
2.使用socks5h://更好, 查询远端DNS

Git设置代理

#设置http代理
git config --global http.proxy socks5://127.0.0.1:1080
#设置https代理
git config --global https.proxy socks5://127.0.0.1:1080
#关闭ssl验证
git config --global http.sslVerify false
git config --global https.sslVerify false

#只对github.com
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

Git 取消代理设置

#取消http代理
git config --global --unset http.proxy
#取消https代理
git config --global --unset https.proxy
#开启ssl验证
git config --global http.sslVerify true
git config --global https.sslVerify true

#取消只对github.com代理
git config --global --unset http.https://github.com.proxy

Git clone 报 fatal: protocol 'https' is not supported 错误

Git clone 报 fatal: protocol 'https' is not supported 错误

Git 错误提示信息Git 错误提示信息

Git 错误提示信息Git 错误提示信息

看到 fatal: repository ' ' does not exist

再联想到ctrl + v时候 bash 不自然的错位,怀疑是不是粘贴进去些奇怪的东西。

在记事本中重新粘贴一下

多了些奇怪的的东西多了些奇怪的的东西

好吧。。。

尝试使用shift + insert重新粘贴一下地址。

OK,一切正常了。

Git正常克隆Git正常克隆

自动生成markdown表格的网站

Typecho支持表格,想想当初像傻子一样在ide里手撸 table 画表格。真是蛋疼。

但后来发现markdown画表格,和手撸 HTML 半斤八两,区别无外乎一个蛋疼还是一对蛋疼。

然后,我发现了一个拯救我的网站:Tables Generator

Tables GeneratorTables Generator

可视化,自动生成,真幸福。。。

可视化表格绘制可视化表格绘制

生成的markdown表格生成的markdown表格

表格示例

TablesAreCool
col 1 isleft-aligned$1600
col 2 iscentered$12
col 3 isright-aligned$1

PS:至于左右对齐就无视好了。

NextCloud安装时数据库报错

NextCloud安装时使用MySQL报错。报错日志如下:

NextCloud安装时报错日志NextCloud安装时报错日志

错误:
An exception occurred while executing 'SELECT `uid`, `displayname` FROM `oc_users` WHERE `uid_lower` = ?' with params ["admin"]: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_users' doesn't exist

起初觉得可能是因为binlog_format设置问题,修改之后发现问题并没有解决。

尝试使用内置的SQLite安装。

使用SQLite安装,仍报错使用SQLite安装,仍报错

去官方社区逛了一圈发现。。。

官方提示NextCloud,并不能安装在Windows上官方提示NextCloud,并不能安装在Windows上

Error:
  • Nextcloud Server does not support Microsoft Windows. We recommend usinga virtual machine or docker image on Windows Server.
  • Nextcloud服务器并不能支持在 Microsoft Windows 上运行。我们建议在 Windows Server 上使用虚拟机或 docker 映像
info: PS:我真蠢...