Skip to content

Instantly share code, notes, and snippets.

# .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
[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/");
# 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
# 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 ./
# 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
# 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
# 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)
# 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)
# base
devops (development, operations)
cicd (continuous integration, continuous deployment)
=> ref: https://www.bilibili.com/video/BV1zf4y127vu
# workflow
developer gitlab jenkins
|push---------->| |
| |webhook------->|
| | |trigger
# [note] learn
=> ref: https://www.bilibili.com/video/BV1m441197h9
=> ref: https://www.bilibili.com/video/BV1PV411774y