Skip to content

Instantly share code, notes, and snippets.

var isStop = false;
var thread = new Thread(() =>
{
while (!isStop)
{
Thread.Sleep(1000);
Console.WriteLine("Thread = {0} 正在運行", Thread.CurrentThread.ManagedThreadId);
}
});
@hochun836
hochun836 / [c] cmd
Last active October 31, 2023 06:05
# base
GNU
MinGW (Minimalist GNU for Windows)
GCC (GUN Compiler Collection)
gcc (GUN C Compiler)
g++ (GUN C++ Compiler)
VC++ (Microsoft Visual C++) aka. IDE
=> ref: https://zh.wikipedia.org/zh-tw/Microsoft_Visual_C%2B%2B
# base
hypertext transfer protocol (http)
hypertext transfer protocol secure (https)
transport layer security (tls)
# http version
http 0.9
http 1.0
http 1.1
http 2.0
# base
TODO
# sqlplus
sqlplus <user>/<password>@<server>
# base
jpeg (joint photographic experts group)
mpeg (moving picture experts group)
ffmpeg (fast forward mpeg)
# video vs. audio (TODO)
video (視訊, 視頻, 看)
audio (音訊, 音頻, 聽)
H.264 (aka. AVC) (Advanced Video Coding)
# base
--- 1 ---> --- 4 --->
hangfire client job storage hangfire server
<--- 2 --- <--- 3 ---
|
|
|
hangfire dashboard
# c# version
=> ref:
# value type (值類型)
a variable of a value type contains an instance of the type
by default, on assignment, passing an argument to a method, and returning a method result, variable values are copied
=> ref: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/value-types
NOTE: a value type can be one of the two following kinds
- a structure type, which encapsulates data and related functionality
# base
jboss as (jboss application server): ce (community edition)
jboss eap (jboss enterprise application platform): ee (enterprise edition)
wildfly: wildfly 8 is after jboss as 7
=> ref: https://www.itread01.com/content/1549218800.html
# file structure
%JBOSS_HOME%\bin\standalone.bat // entry point
%JBOSS_HOME%\bin\standalone.conf
%JBOSS_HOME%\standalone\configuration\standalone.xml
# base
devops (development, operations)
cicd (continuous integration, continuous deployment)
cicd in gitlab = gitlab + .gitlab-ci.yml + gitlab-runner.exe
*** .gitlab-ci.yml ***
pipeline > stage > job > script
one pipeline can contains multi stages
one stage can contains multi jobs
one job can contains one script list
# base
*** file structure ***
.sln (a solution file) means a solution
.proj (a project file) means a project
.csproj (c#)
.vbproj (vb.net)
.dbproj (database)
one solution can contain multi projects
*** nuget ***