### 问题 开启2FA后提示验证失败。 ``` Username for 'https://github.com': Password for 'https://username@github.com': remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/your/repository.git/' ``` 需要注意的是,只有使用`HTTPS`才会这样,使用`SSH`是使用`SSH KEY`进行验证的。 ### 原因 github开启2FA后,不再使用原来的密码进行验证,而是使用`ACCESS_TOEKN`,因此我们需要[新增](https://github.com/settings/tokens/new "新增")一条`TOKEN`,如果你只是进行常规git操作只需要勾选`repo`下的权限即可,添加成功后在git下输入密码时输入新添的`TOKEN`即可。 ### 文章引用 [Creating a personal access token for the command line](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line "Creating a personal access token for the command line")
### 运行环境 1. `PHP >= 5.4` 然而如果你的 `PHP` 版本小于 `7.1`,这段代码还是跑不了,会报`PHP Fatal error: Cannot access empty property`,要将以下语句移除才能运行起来 ```text null => '我是null', $prop = null; var_dump($dynamicVar->$prop); ``` 我猜测应该是 `PHP 7.1` 加强了对 `nullable` `void` 的支持,所以导致了属性可以为 `null` 的诡异写法。 ```php $value) { $this->$var = $value; } } } $dynamicVar = new DynamicObj([ null => '我是null', 0 => '我是数字', '1' => '我也是数字', '0我是_- 非法属性名☺' => '。。。', 0x123456 => 'hex test', ]); var_dump($dynamicVar); $prop = null; var_dump($dynamicVar->$prop); var_dump($dynamicVar->{'0我是_- 非法属性名☺'}); var_dump($dynamicVar->{0x123456}); $json = json_encode($dynamicVar); var_dump($json); var_dump(json_decode($json)); var_dump(json_decode($json, true)); ``` - 阅读剩余部分 -
- 阅读剩余部分 -
### 起因 在将服务器PHP版本升级至5.6之后,发现微信公众号不回复信息了,也没发现有报错信息。搞了好久,终于在 `register_shutdown_function` 中的 handler 里捕获到了如下错误信息: ```text 8192Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead.Unknown0 ``` 大致是说 `$HTTP_RAW_POST_DATA` 这个变量已经在PHP 5.6 中弃用且会在未来的版本中移除。 - 阅读剩余部分 -
### FBI WARNING 本文不对具体细节做介绍,如果这篇文章对你有用,请做好相应的功课。 ### 关键词 `CloudFlare` `5秒盾` `浏览器安全检查中` `Checking your browser before accessing xxx.com` `jschl_answer` - 阅读剩余部分 -
[Command-line interface description language](http://docopt.org/ "Command-line interface description language") [Command-Line Syntax Key](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc771080%28v%3Dws.11%29 "Command-Line Syntax Key") [Utility Argument Syntax](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_01 "Utility Argument Syntax") [GNU Coding Standards](http://www.gnu.org/prep/standards/standards.html "GNU Coding Standards") [Command Line Standard](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-powershell-1.0/ee156811%28v%3Dtechnet.10%29 "Command Line Standard")
空空如也
个人接活
域名出售
服务器推荐