- 更新
2024-04-16
- 作者
@voluntas
- バージョン
2024.1
- URL
概要
2024-04-16
@voluntas
2024.1
概要
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
/* | |
* Copyright 2015 Databricks, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may | |
* not use this file except in compliance with the License. You may obtain | |
* a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
from pyramid.config import Configurator | |
def hello(request): | |
return dict(message="Hello, world!") | |
def main(global_conf, **settings): | |
config = Configurator(settings=settings) | |
config.include("pyramid_jinja2") |
Usage | |
====== | |
.. wiki-table:: | |
:header-rows: 1 | |
:widths: 2 3 5 | |
|id|header1|header2| | |
|1|hello|world| | |
|2|foo|:strong:`bar`| |
#! /usr/bin/env python | |
import argparse | |
import sys | |
import time | |
import uuid | |
from urllib2 import HTTPError | |
from cloudera.director.common.client import ApiClient | |
from cloudera.director.v10 import (AuthenticationApi, ClustersApi, InstanceTemplatesApi) |
# -*- coding: utf-8 -*- | |
import requests | |
from pyquery import PyQuery as pq | |
import parser | |
import re | |
import datastore | |
url_re = re.compile(".*/(\d+)/.*", re.M) |
#coding:utf-8 | |
import urllib | |
import BeautifulSoup | |
import urlparse | |
import time | |
def main(): | |
urlList = open("seed.txt","r").read().splitlines() | |
allowDomainList = set(open("allowDomain.txt","r").read().splitlines()) |