ziggle

Hail Hydra


  • Home

  • Archives

  • Search

jenkins-config

Posted on 2017-12-05

jenkins agent 配置

Read more »

发布proget私库

Posted on 2017-11-29

发布proget私库

1. 生成 .nupkg 文件

项目根目录运行

1
nuget pack .\[library-project.csproj] -Build -Properties owners=ziggle;version="1.0.0"

示例

2. push包到proget

1
nuget push  .\[library-project.1.0.0.nupkg]  -source https://api.nuget.org/v3/index.json -apikey [your-secoret-key]

3. netcore 使用步骤

3.1 pack & push

1
2
3
4
{
"pack": "dotnet pack -c Release",
"push" : "dotnet nuget push [library-project.1.0.0.nupkg] -source https://api.nuget.org/v3/index.json -apikey [your-secoret-key]"
}

参考

nuget

netcore

hexo document tag plugins

Posted on 2017-11-28

使用引用

1
2
3
{% blockquote [author[, source]] [link] [source_link_title] %}
content
{% endblockquote %}

样例

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit lacus ut purus iaculis feugiat. Sed nec tempor elit, quis aliquam neque. Curabitur sed diam eget dolor fermentum semper at eu lorem.

加入Image

1
2
3
{% img [class names] /path/to/image [width] [height] [title text [alt text]] %}

{% asset_img example.jpg This is an example image %} # 通过这种方式,图片将会同时出现在文章和主页以及归档页中。

加入 jsFiddle

1
{% jsfiddle shorttag [tabs] [skin] [width] [height] %}

显示文章预览

1
Next 使用 <!-- more -->

超链接

  • 文字

    1
    [链接文章](链接地址 "链接标题")
  • 图片

    1
    ![图片说明](图片链接 "图片标题")
  • 视频

    1
    2
    <script src="/js/youtube-autoresizer.js"></script>
    <iframe width="640" height="360" src="https://www.youtube.com/embed/HfElOZSEqn4" frameborder="0" allowfullscreen></iframe>
  • 引用
    使用 > 表示文字引用

    野火烧不尽,春风吹又生

  • 绘制表格

绘制表格格式如下,| 控制分列,- 控制分行,: 控制对齐方式。

1
2
3
4
5
| Item     | Value     | Qty   |
| :------- | --------: | :---: |
| Computer | 1600 USD | 5 |
| Phone | 12 USD | 12 |
| Pipe | 1 USD | 234 |

Item Value Qty
Computer 1600 USD 5
Phone 12 USD 12
Pipe 1 USD 234

强调

字体倾斜

字体倾斜

字体加粗

字体加粗_

分割线



删除线

删除线

图片连接:
链接:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
*字体倾斜*

_字体倾斜_

**字体加粗**

__字体加粗___

>分割线

____ 或者 ***

> 删除线

~~删除线~~

iis express custom hostname

Posted on 2017-11-28

使用vs 2017 iisexpress 调试web项目是如果项目绑定某个域名

这时候就需要编辑

1
$(solutionDir)\.vs\config\applicationhost.config

找到文件中site 节点

1
2
3
4
5
6
7
8
<site name=”MyWebApp” id=”2”>
<application path=”/“ applicationPool=”Clr4IntegratedAppPool”>
<virtualDirectory path="/" physicalPath="rpoject root path" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:12345:customerhostname" />
</bindings>
</site>

然后配置项目属性 更改project url .

paraller

Posted on 2017-11-27

Paraller 并发请求

1
2
3
4
5
6
7
8
9
var url = "http://112.124.121.109:11250/order/1230a611-e189-4296-a50d-b48910bc1850";
var client = new HttpClient();
Enumerable.Range(1, 10).AsParallel().ToList().ForEach(async (item) =>
{
var watch = Stopwatch.StartNew();
var res = await client.GetStringAsync(url);
watch.Stop();
Console.WriteLine($"{watch.ElapsedMilliseconds} : {item}");
});
1…2122
ziggle

ziggle

Hail Hydra !

110 posts
45 tags
RSS
GitHub
© 2021 ziggle
Powered by Hexo
|
Hail Hydra—