第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
export WERCKER_STEP_ROOT="/pipeline/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e" | |
export WERCKER_STEP_ID="hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e" | |
export WERCKER_STEP_OWNER="arjen" | |
export WERCKER_STEP_NAME="hugo-build" | |
export WERCKER_REPORT_NUMBERS_FILE="/report/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e/numbers.ini" | |
export WERCKER_REPORT_MESSAGE_FILE="/report/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e/message.txt" | |
export WERCKER_REPORT_ARTIFACTS_DIR="/report/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e/artifacts" | |
export WERCKER_HUGO_BUILD_PROD_BRANCHES="master" | |
export WERCKER_HUGO_BUILD_DEV_FLAGS="" | |
export WERCKER_HUGO_BUILD_FORCE_INSTALL="false" |
package main | |
import ( | |
"fmt" | |
"text/template" | |
"github.com/astaxie/beego" | |
) | |
func main() { |
goroutine 146 [running]: | |
runtime/pprof.writeGoroutineStacks(0x50b6500, 0xc4217a80e0, 0x0, 0xc4209c7ad0) | |
/usr/local/opt/go/libexec/src/runtime/pprof/pprof.go:608 +0xa7 | |
runtime/pprof.writeGoroutine(0x50b6500, 0xc4217a80e0, 0x2, 0x30, 0x49aed40) | |
/usr/local/opt/go/libexec/src/runtime/pprof/pprof.go:597 +0x44 | |
runtime/pprof.(*Profile).WriteTo(0x519f0a0, 0x50b6500, 0xc4217a80e0, 0x2, 0xc4217a80e0, 0x51cad40) | |
/usr/local/opt/go/libexec/src/runtime/pprof/pprof.go:310 +0x3ab | |
net/http/pprof.handler.ServeHTTP(0xc421793931, 0x9, 0x50bf700, 0xc4217a80e0, 0xc4217a2200) | |
/usr/local/opt/go/libexec/src/net/http/pprof/pprof.go:237 +0x1b8 | |
net/http/pprof.Index(0x50bf700, 0xc4217a80e0, 0xc4217a2200) |
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
{
"172.123.4.6":{"user":"abc"},
"172.123.5.6":{"user":"abc"},
"172.123.1.6":{"user":"abc"},
}
from invoke import Responder
package sortslice | |
import ( | |
"container/heap" | |
"sort" | |
"sync" | |
) | |
type Item interface { | |
Compare(other Item) int |
func clearExpiredTx(txs types.Transactions, now time.Time) types.Transactions { | |
for i := 0; i < len(txs); i++ { | |
if !txs[i].Expired(now) { | |
continue | |
} | |
if len(txs) == 1 { | |
return nil | |
} | |
var last *types.Transaction |
This is way more complicated than it should be. The following conditions need to be met :
In this particular case, I'm interested in bringing in the 'default' template of jsdoc as a sub-directory in my project so I could potentially make changes to the markup it genereates while also being able to update from upstream if there are changes. Ideally their template should be a separate repo added to jsdoc via a submodule -- this way I could fork it and things would be much easier.... but, it is what it is.
After much struggling with git, subtree and git-subtree, I ended up finding this http://archive.h2ik.co/2011/03/having-fun-with-git-subtree/ -- it basically sets up separate branches from tracking remote, the particular sub-directory, and uses git subtree contrib module to pull it all togther. Following are
You can create a new empty branch like this: | |
$ git checkout --orphan NEWBRANCH | |
--orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry. | |
The --orphan command keeps the index and the working tree files intact in order to make it convenient for creating a new history whose trees resemble the ones from the original branch. | |
Since you want to create a new empty branch that has nothing to do with the original branch, you can delete all files in the new working directory: |
package main | |
import ( | |
"crypto/ecdsa" | |
"crypto/rand" | |
"fmt" | |
"os" | |
"github.com/ethereum/go-ethereum/crypto" | |
) |