|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
COLOR magenta { # matches the date ^(... ..).*$ } COLOR cyan { # matches the time ^... .. (..:..:..).*$ # matches the word INFO ^.*(INFO|info).*$ } COLOR green { # matches the hostname ^... .. ..:..:.. ([^ ]+).*$ } COLOR yellow { # matches the "program" that wrote to syslog ^... .. ..:..:.. [^ ]+ ([^ ]+) } COLOR brightyellow { # matches all ip adresses ^.*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ ^.*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ ^.*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ # matches two ip adresses in one line ^.*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ ^.*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ ^.*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ # matches the word WARNING ^.*(WARNING|warning|WARN).*$ } COLOR brightred { # matches the word root ^.*(root).*$ # matches DENY ^.*(ppp-in DENY ppp0).*$ ^.*(eth-in DENY eth0).*$ # matches the word ERROR ^(ERROR|error|err).*$ ^.*(ERROR|error|err).*$ } COLOR brightblue { # matches the output from the "program" ^... .. ..:..:.. [^ ]+ [^ ]+ (.*) # matches the time ^.*([0-9]{2}:[0-9]{2}:[0-9]{2}).*$ } |
인터넷 속도
- 100 Mbps => 초당 11 MB 분당 660 MB 시간당 40기가
- 1 Gbps => 초당 135 MB 분당 8 GB 시간당 480 GB 그러나 현실은 일 제공 데이터 250 GB
- 2.5 Gbps => 초당 300MB 18 GB 시간당 1080 GB
랜선
- CAT.5 는 100 Mbps
- CAT.5e와 CAT.6은 1 Gbps
- CAT.7은 10 Gbps
영상
|
30 프레임 (단위 Mbps) |
60 프레임 (단위 Mbps) |
4K |
45 |
68 (9 MB) |
2K |
16 |
24 |
1080p |
8 |
12 |
4k HDR |
56 |
85 (11 MB) |
2k HDR |
16 |
24 |
1080p HDR |
8 |
12 |
hdd 속도 135 MB
ssd 속도 450 MB
그때 그때 사용하지 않는 것을 Disable 해서 쓴다.
- Auto Rename Tag
- Bootstrap 4, Font awesome4, Font Awesome5 Free & Pro snippets
- Bootstrap 5 Snippets
- C/C++
- C#
- C# Extensions
- CSS Peek
- Debugger for Chrome
- DotENV
- ES7 React/Redux/GraphQL/React-Native snippets
- Font Awesome Auto-complete & Preview
- Git History
- GitLens
- Git supercharged
- Go
- Highlight Matching Tag
- Html (C#)
- HTML CSS Support
- HTML Snippets
- Import Cost
- IntelliSense for CSS class names in HTML
- JQuery Code Snippets
- Korean Language Pack for Visual Studio Code
- Live Server
- Markdown All in One
- markdownlint
- npm
- npm intellisense
- NuGet Package Manager
- Path Autocomplete
- Path Intellisense
- Prettier – Code formatter
- Remote – SSH
- Remote – SSH: Editing Configuration Files
- solidity
- SVN
- Vim
- Visual Studio IntelliCode
- vscode-icons
- vscode-solution-explorer
- yarn
- ASP.NET Helper
- autoconf
- Azure Account
- Azure Databases
- Azure Resources
- Azure Storage
- Beautify
- Classic ASP Syntaxes and Snippets
- Django
- ESLint
- ETHover
- flask-snippets
- ftp-kr
- Go
- Graphviz Interactive Preview
- Inline Bookmarks
- JavaScript (ES6) code snippets
- jshint
- Jypyter
- MagicPython
- php cs fixer
- PHP Debug
- PHP IntelliSense
- phpcs
- PlaceHolder Images
- Pylance
- Python
- Python for VSCode
- Solidity Contract Flatterner
- Solidity Debugger
- Solidity Visual Developer
- solidity-solhint
- TSLint
- vscode-faker
client에서 할일
~/.ssh/id_rsa.pub 공개키 생성되면 접속할 서버에 ./ssh/authorized_keys 파일 안에 복사 해 넣는다.
관리자 권한으로 /etc/sudoers.d/init-users 파일 생성하여 다음과 같이 작성
|
# User rules for id id ALL=(ALL) NOPASSWD:ALL |
ICollection 사용
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
public ICollection<Student> m_listLandSiteDataText { get; set; } protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<int>( name: "CourseId", table: "Students", nullable: true); migrationBuilder.CreateIndex( name: "IX_Students_CourseId", table: "Students", column: "CourseId"); migrationBuilder.AddForeignKey( name: "FK_Students_Courses_CourseId", table: "Students", column: "CourseId", principalTable: "Courses", principalColumn: "CourseId", onDelete: ReferentialAction.Restrict); } |
Index와 ForeignKey 없이 생성
|
[ForeignKey("Course")] public int CourseId { get; set; } [ForeignKey("CourseId")] public int CourseId { get; set; } protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<int>( name: "CourseId", table: "Students", nullable: false, defaultValue: 0); } |
virtual 사용시
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
public int CourseId { get; set; } [ForeignKey("CourseId")] public virtual Course m_mvLandSiteDataImage { get; set; } protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<int>( name: "CourseId", table: "Students", nullable: false, defaultValue: 0); migrationBuilder.CreateIndex( name: "IX_Students_CourseId", table: "Students", column: "CourseId"); migrationBuilder.AddForeignKey( name: "FK_Students_Courses_CourseId", table: "Students", column: "CourseId", principalTable: "Courses", principalColumn: "CourseId", onDelete: ReferentialAction.Cascade); } |
vscode에 launch.json
|
{ // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. "version": "0.2.0", "configurations": [ { "name": "Launch Package geth", "type": "go", "request": "launch", "mode": "debug", "program": "${workspaceFolder}/cmd/geth/" // main.go 가 있는 폴더 path } ] } |
node를 실행
vscode에 launch.json
|
{ // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://localhost:3000", "webRoot": "${workspaceFolder}/src" } ] } |
터널링 구축
|
ssh -N -L 9221:localhost:9229 [remoteIP] |
node를 inspection 모드로 변경 & 웹 서버 실행
|
node --inspect & yarn start |
vscode에 launch.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
{ // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. "version": "0.2.0", "configurations": [ { "address": "localhost", "localRoot": "${workspaceFolder}", "name": "Attach to Remote", "port": 9229, "remoteRoot": "...", "request": "attach", "skipFiles": [ "<node_internals>/**" ], "type": "pwa-node" } ] } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
# Install Dependencies # ----------------------------------------------------------------------------------------------------------- # Build requirements: sudo apt install git build-essential libtool autotools-dev autoconf automake pkg-config bsdmainutils python3 libssl-dev libssl-dev # Install required dependencies sudo apt install libevent-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev # Install the BerkeleyDB from Ubuntu repositories: sudo apt install libdb-dev libdb++-dev libsqlite3-dev # Optional: upnpc sudo apt install libminiupnpc-dev # Optional ZMQ: sudo apt install libzmq3-dev # For GUI: sudo apt install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler # For QR Code support sudo apt install libqrencode-dev # Install Bitcoin # ----------------------------------------------------------------------------------------------------------- git clone https://github.com/bitcoin/bitcoin.git # Move into project directory cd bitcoin # Config # ----------------------------------------------------------------------------------------------------------- # Generate config script ./autogen.sh # If debugging symbols not required, amend compile flags: ./configure --with-incompatible-bdb CXXFLAGS="-O2" # ...lot's of checking... # Make # ----------------------------------------------------------------------------------------------------------- make # Install - sudo is required to install binaries in /usr/local/bin sudo make install |
|
|