- 確認
~/.ssh/config
的設定是正確的 - 用判斷錯誤的身份登入 GitHub
- 在 SSH keys 中刪掉錯誤身份的 ssh key
- 重新用
ssh -T [email protected]
來連線
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CUR_PATH=`pwd` | |
CI_PATH=${CUR_PATH}/PHPCI | |
LOG_PATH=${CUR_PATH}/.log | |
mkdir -p $LOG_PATH | |
if ps -ef | grep -v grep | grep "phpci:run-builds"; then | |
exit 0 | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
use Illuminate\Support\Facades\Auth; | |
class ExampleTest extends TestCase | |
{ | |
/** | |
* DatabaseTransactions :在測試其間對資料庫的所有操作會在測試完成後被滾回 |
@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
-
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
- Delete all untagged images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class Database | |
{ | |
public function __construct() | |
{ | |
$this->connect(); | |
} | |
abstract public function connect(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
class DepClass { | |
constructor (arg) { | |
console.log(arg); | |
} | |
say (word) { | |
console.log(word); | |
} |