본문 바로가기
728x90
반응형

전체 글303

GitLab CI/CD] 1. GitLab Runner 설치 등록하기 Classic ASP를 사용하는 경우, EditPlus에 FTP설정하여 테스트서버의 ASP파일에 직접 접속하여 수정하는 경우가 있다. 로컬에서 수정하고, GitLab에 deploy시, 테스트서버에 자동 배포되도록 GitLab CI/CD를 설정해보자. GitLab CI/CD를 사용하기 위해서는, 소스 프로젝트에 runner가 등록되어 있어야 한다. GitLab Runner란? GitLab CI/CD에서 발생하는 Job을 실행하는 Agent 1. 사내 GitLab 서버(Linux Centos)에 GitLab Runner를 설치 # gitlab-runner 설치파일 다운로드 sudo curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner -do.. 2022. 8. 24.
SSH 작동 원리, 암호화 기술 SSH란? Secure Shell Protocol, 사용자가 원격 서버에 접속할 수 있도록 허용해주는 remote administration protocol이다. SSH 작동원리 SSH명령어는 3부분으로 구성된다. ssh {user}@{host} SSH key 명령어는 시스템에 encrypted Secure Shell Connection을 open하고 싶다고 지시한다. {user}는 접근하고자 하는 계정이다. system administrator와 동일한 권한을 사용하려면 root user로 접근할 수 있다. {host}는 접근하고자 하는 server이다. IP Address 또는 domain name일 수 있다. enter를 치면, 계정의 password를 확인하는 prompt가 뜬다. Encrypti.. 2022. 8. 11.
C#] Polymorphic Serialization and Deserialization with System.Text.Json 출처 : https://code-maze.com/csharp-polymorphic-serialization-and-deserialization/ System.Text.Json이란? .NET개발자가 JSON format을 handling할 수 있는 powerful한 package이다. System.Text.Json 소개 C#] System.Text.Json vs Newtonsoft.Json 차이점 비교 MS는 2019년 .Net Core 3.0과 함께 System.Text.Json namespace를 release했다. Newtonsoft.Json 에서 System.Text.Json으로 migration을 고려하게 되었다. Newtonsoft.Json과 비교하며, migration 장단점을 확인.. big.. 2022. 8. 10.
C#] System.Text.Json vs Newtonsoft.Json 차이점 비교 MS는 2019년 .Net Core 3.0과 함께 System.Text.Json namespace를 release했다. Newtonsoft.Json 에서 System.Text.Json으로 migration을 고려하게 되었다. Newtonsoft.Json과 비교하며, migration 장단점을 확인해보자. Why a new System.Text.Json library? Nowtonsoft.Json은 오랫동안 .Net developer에게 JSON의 serializing, deserializing용도로 친숙하게 사용되었다. System.Text.Json이 새롭게 소개된 배경에는 performance, security가 있다. System.Text.Json은 .Net Core 3.X 부터는 runtime에 포.. 2022. 7. 28.
C#] Benefits of Polymorphism, 다형성 장점 아래 예로 살펴보자. abstract class Animal // Base class (parent) { // Abstract method (does not have a body) public abstract void animalSound (); } class Pig : Animal // Derived class (child) { public override void animalSound() { Console.WriteLine("The pig says: wee wee"); } } class Dog : Animal // Derived class (child) { public override void animalSound() { Console.WriteLine("The dog says: bow wow"); .. 2022. 7. 27.
C#] Inheritance, Polymorphism, Abstraction, Interface Inheritance 자식 클래스 Derived Class (child) - the class that inherits from another class 부모 클래스 Base Class (parent) - the class being inherited from To inherit from a class, use the : symbol new class 생성 시, existing class의 method, fields를 재사용하기 위한 목적이다. class Vehicle // base class (parent) { public string brand = "Ford"; // Vehicle field public void honk() // Vehicle method { Console.WriteLine("Tuu.. 2022. 7. 21.
728x90
반응형