This file contains 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
# .net standard | |
=> ref: https://github.com/dotnet/standard/blob/master/docs/versions.md | |
=> ref: https://github.com/dotnet/standard/tree/master/docs/versions | |
# .net framework | |
v4.8 is recommended | |
=> ref: https://dotnet.microsoft.com/download/dotnet-framework | |
# .net core | |
v3.1 is LTS |
This file contains 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
[ApiController] | |
[Route("api/[controller]/[action]")] | |
public class AsyncController : ControllerBase | |
{ | |
[HttpGet] | |
public async void Test() | |
{ | |
Console.WriteLine("thread id: {0}", Thread.CurrentThread.ManagedThreadId); | |
await new HttpClient().GetAsync("https://www.google.com/"); |
This file contains 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
# base | |
'iis express' is used in development | |
'iis' is used in production | |
# iis express | |
%userprofile%\Documents\IISExpress\config\applicationhost.config | |
%userprofile%\Documents\IISExpress\config\aspnet.config | |
%userprofile%\Documents\IISExpress\config\redirection.config | |
<project>\.vs\<project>\config\applicationhost.config |
This file contains 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
# base | |
one workspace can contain multi projects | |
# common | |
ng // list available commands | |
ng version | |
ng new --help | |
ng new <workspace-name> | |
ng new <workspace-name> --defaults | |
ng new <workspace-name> --directory ./ |
This file contains 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
# package | |
cat /etc/apt/sources.list | |
apt-get --help // advanced package tool | |
apt-get update | |
apt-get install iputils-ping wget gnupg2 | |
apt --help | |
dpkg -- help // debian package | |
dpkg -i <xxx.deb> | |
dpkg -i *.deb |
This file contains 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
# base | |
CDH is Cloudera Distribution Hadoop | |
HDP is Hortonworks Data Platform | |
CDP is Cloudera Data Platform | |
=> ref: https://www.facebook.com/athemaster.com.tw/posts/1549152648578324 | |
# zeppelin | |
jps | grep ZeppelinServer | |
cat /var/run/zeppelin/zeppelin-zeppelin-sandbox-hdp.hortonworks.com.pid | |
cat /var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.7.0/package/scripts/service_check.py |
This file contains 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
# base | |
package // 套件/包 (a folder which contains package.json) | |
module // 模塊 (a file) | |
version | |
x.y.z | |
~x.y.z // x.y._ | |
^x.y.z // x._._ | |
# module spec | |
CommonJS (CJS) |
This file contains 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
# base | |
observer pattern | |
iterator pattern | |
functional programming | |
asynchronous programming | |
stream | |
# sop | |
'create' stream (stream is as known as 'observable') | |
'combine' stream (use 'operator' to combine stream) |
This file contains 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
# base | |
devops (development, operations) | |
cicd (continuous integration, continuous deployment) | |
=> ref: https://www.bilibili.com/video/BV1zf4y127vu | |
# workflow | |
developer gitlab jenkins | |
|push---------->| | | |
| |webhook------->| | |
| | |trigger |
This file contains 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
# [note] learn | |
=> ref: https://www.bilibili.com/video/BV1m441197h9 | |
=> ref: https://www.bilibili.com/video/BV1PV411774y |