{"id":183,"date":"2011-10-03T23:36:35","date_gmt":"2011-10-03T23:36:35","guid":{"rendered":"http:\/\/anyons.net\/dev\/?p=183"},"modified":"2022-07-12T14:49:08","modified_gmt":"2022-07-12T05:49:08","slug":"system-power-states","status":"publish","type":"post","link":"https:\/\/anyons.net\/?p=183","title":{"rendered":"System Power States"},"content":{"rendered":"<p>\ucd9c\ucc98 : <a href=\"http:\/\/www.jiniya.net\/wp\/archives\/4511\">http:\/\/www.jiniya.net\/wp\/archives\/4511<\/a><\/p>\n<table>\n<tbody>\n<tr>\n<th>Power state<\/th>\n<th>ACPI state<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>Working<\/td>\n<td>S0<\/td>\n<td>The system is fully usable. Devices that are not in use can save power by entering a lower power state.<\/td>\n<\/tr>\n<tr>\n<td>Sleep<\/td>\n<td>S1 S2 S3<\/td>\n<td>The system appears to be off. Power consumption is reduced to one of several levels, depending on\u00a0how the system is to be used. The lower the level of power consumption, the more time it takes the system to\u00a0return to the working state.<\/td>\n<\/tr>\n<tr>\n<td>Hibernation<\/td>\n<td>S4<\/td>\n<td>The system appears to be off. Power consumption is reduced to the lowest level. The system saves the contents of memory to a hibernation file, preserving the state of the operating system, applications, and open documents.<\/td>\n<\/tr>\n<tr>\n<td>Soft Off<\/td>\n<td>S5<\/td>\n<td>The system appears to be off. Some components remain powered so the computer can wake from input from the keyboard, LAN, or a USB device. The working context can be restored if it is stored on\u00a0nonvolatile media.<\/td>\n<\/tr>\n<tr>\n<td>Mechanical Off<\/td>\n<td>G3<\/td>\n<td>The system is completely off and consumes no power. The system returns to the working state only after a full reboot.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\ub3d9\uc791 \uc0c1\ud0dc(S0), \uc218\uba74 \uc0c1\ud0dc(S1, S2, S3), \ud558\uc774\ubc84\ub124\uc774\uc158 \uc0c1\ud0dc(S4), \uc18c\ud504\ud2b8 \uc624\ud504 \uc0c1\ud0dc(S5), \uadf8\ub9ac\uace0 \uc644\uc804 \uc624\ud504 \uc0c1\ud0dc(G3)<\/p>\n<p>\ud558\uc774\ubc84\ub124\uc774\uc158\uc744 \uc2dc\ud0a4\ub294 \ubc29\ubc95<\/p>\n<pre class=\"lang:c++ decode:true\">SetSystemPowerState(FALSE, FALSE);<\/pre>\n<p>\uc804\uc6d0\uc744 \uaebc\ubc84\ub9b4 \uad8c\ud55c\uc774\uc694. \uadf8\ub807\ub2e4\uba74 \ub2f9\uc5f0\ud788 \ud574\ub2f9 \uad8c\ud55c\uc744 \ud68d\ub4dd<\/p>\n<pre class=\"lang:c++ decode:true\">static BOOL WINAPI\n_EnableShutDownPriv()\n{\nBOOL ret = FALSE;\nHANDLE process = GetCurrentProcess();\nHANDLE token;\n\nif(!OpenProcessToken(process\n, TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY\n, &amp;token))\nreturn FALSE;\n\nLUID luid;\nLookupPrivilegeValue(NULL, \"SeShutdownPrivilege\", &amp;luid);\n\nTOKEN_PRIVILEGES priv;\npriv.PrivilegeCount = 1;\npriv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;\npriv.Privileges[0].Luid = luid;\nret = AdjustTokenPrivileges(token, FALSE, &amp;priv, 0, NULL, NULL);\nCloseHandle(token);\n\nreturn TRUE;\n}<\/pre>\n<p>\uae68\uc6b0\uae30<br \/>\n\uc6e8\uc774\ud130\ube14 \ud0c0\uc774\uba38(waitable timer)\uac00 \uc815\uc2dd \uba85\uce5c\uc778\ub370\uc694, \uc774 \ub140\uc11d\uc740 \ud558\uc774\ubc84\ub124\uc774\uc158 \uc0c1\ud0dc\uac00 \ub418\ub354\ub77c\ub3c4 \ub3d9\uc791<\/p>\n<pre class=\"lang:c++ decode:true \">HANDLE timer = CreateWaitableTimer(NULL, TRUE, \"MyWaitableTimer\");\nif(timer == NULL)\nreturn FALSE;\n\n__int64 nanoSecs;\nLARGE_INTEGER due;\n\nnanoSecs = -secs * 1000 * 1000 * 10;\ndue.LowPart = (DWORD) (nanoSecs &amp; 0xFFFFFFFF);\ndue.HighPart = (LONG) (nanoSecs &gt;&gt; 32);\n\nif(!SetWaitableTimer(timer, &amp;due, 0, 0, 0, TRUE))\nreturn FALSE;<\/pre>\n<p>\ub300\uae30 \ud0c0\uc774\uba38\uc5d0\uc11c \uae68\uc5b4\ub098\ub354\ub77c\ub3c4 \uc6b4\uc601\uccb4\uc81c\ub294 \uc2dc\uc2a4\ud15c\uc744 \ubc14\ub85c \uae68\uc6b0\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc6b0\ub9ac\uac00 \uc804\uc6d0\uc774 \ud544\uc694\ud558\ub2e4\uace0 \uc6b4\uc601\uccb4\uc81c\uc5d0 \uc54c\ub824\uc904 \ub54c \uc708\ub3c4\uc6b0\ub294 \uce5c\uc808\ud788\ub3c4 \uc2dc\uc2a4\ud15c\uc5d0 \uc804\uc6d0\uc744 \ub123\uace0 \uc774\uc804 \uc0c1\ud0dc\ub85c \ubcf5\uad6c<\/p>\n<pre class=\"lang:c++ decode:true\">DWORD CALLBACK\nShutDownProc(LPVOID p)\n{\nPHANDLE timer = (PHANDLE) p;\n\nWaitForSingleObject(*timer, INFINITE);\nCloseHandle(*timer);\nSetThreadExecutionState(ES_DISPLAY_REQUIRED);\n\nreturn 0;\n}\n\nPWRMGMT_API BOOL WINAPI\nHibernateAndReboot(int secs)\n{\nif(!_EnableShutDownPriv())\nreturn FALSE;\n\nHANDLE timer = CreateWaitableTimer(NULL, TRUE, \"MyWaitableTimer\");\nif(timer == NULL)\nreturn FALSE;\n\n__int64 nanoSecs;\nLARGE_INTEGER due;\n\nnanoSecs = -secs * 1000 * 1000 * 10;\ndue.LowPart = (DWORD) (nanoSecs &amp; 0xFFFFFFFF);\ndue.HighPart = (LONG) (nanoSecs &gt;&gt; 32);\n\nif(!SetWaitableTimer(timer, &amp;due, 0, 0, 0, TRUE))\nreturn FALSE;\n\nif(GetLastError() == ERROR_NOT_SUPPORTED)\nreturn FALSE;\n\nHANDLE thread = CreateThread(NULL, 0, ShutDownProc, &amp;timer, 0, NULL);\nif(!thread)\n{\nCloseHandle(timer);\nreturn FALSE;\n}\n\nCloseHandle(thread);\nSetSystemPowerState(FALSE, FALSE);\nreturn TRUE;\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\ucd9c\ucc98 : http:\/\/www.jiniya.net\/wp\/archives\/4511<\/p>\n<p> Power state ACPI state Description Working S0 The system is fully usable. Devices that are not in use can save power by entering a lower power state. Sleep S1 S2 S3 The system appears to be off. Power consumption is reduced to one of several levels, depending on how the system is [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[96,165],"tags":[231,226,246,65],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-programming","category-system","tag-cpp","tag-mfc","tag-power","tag-windows","odd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>System Power States - anydragon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/anyons.net\/?p=183\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"System Power States - anydragon\" \/>\n<meta property=\"og:description\" content=\"\ucd9c\ucc98 : http:\/\/www.jiniya.net\/wp\/archives\/4511 Power state ACPI state Description Working S0 The system is fully usable. Devices that are not in use can save power by entering a lower power state. Sleep S1 S2 S3 The system appears to be off. Power consumption is reduced to one of several levels, depending on how the system is [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/anyons.net\/?p=183\" \/>\n<meta property=\"og:site_name\" content=\"anydragon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:published_time\" content=\"2011-10-03T23:36:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-12T05:49:08+00:00\" \/>\n<meta name=\"author\" content=\"anydragon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@anydragon\" \/>\n<meta name=\"twitter:site\" content=\"@anydragon\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"anydragon\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=183#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=183\"},\"author\":{\"name\":\"anydragon\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"headline\":\"System Power States\",\"datePublished\":\"2011-10-03T23:36:35+00:00\",\"dateModified\":\"2022-07-12T05:49:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=183\"},\"wordCount\":196,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"keywords\":[\"cpp\",\"mfc\",\"power\",\"windows\"],\"articleSection\":[\"Programming\",\"System\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=183#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=183\",\"url\":\"https:\\\/\\\/anyons.net\\\/?p=183\",\"name\":\"System Power States - anydragon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\"},\"datePublished\":\"2011-10-03T23:36:35+00:00\",\"dateModified\":\"2022-07-12T05:49:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=183#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=183\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=183#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/anyons.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"System Power States\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\",\"url\":\"https:\\\/\\\/anyons.net\\\/\",\"name\":\"anydragon\",\"description\":\"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang\",\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/anyons.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\",\"name\":\"anydragon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"url\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"contentUrl\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"width\":2560,\"height\":1440,\"caption\":\"anydragon\"},\"logo\":{\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\"},\"sameAs\":[\"http:\\\/\\\/anyons.net\",\"https:\\\/\\\/www.facebook.com\\\/anydragon\",\"https:\\\/\\\/x.com\\\/anydragon\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCr78KWpvmk398vPfpUTWNLg\"],\"url\":\"https:\\\/\\\/anyons.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"System Power States - anydragon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/anyons.net\/?p=183","og_locale":"ko_KR","og_type":"article","og_title":"System Power States - anydragon","og_description":"\ucd9c\ucc98 : http:\/\/www.jiniya.net\/wp\/archives\/4511 Power state ACPI state Description Working S0 The system is fully usable. Devices that are not in use can save power by entering a lower power state. Sleep S1 S2 S3 The system appears to be off. Power consumption is reduced to one of several levels, depending on how the system is [...]","og_url":"https:\/\/anyons.net\/?p=183","og_site_name":"anydragon","article_publisher":"https:\/\/www.facebook.com\/anydragon","article_author":"https:\/\/www.facebook.com\/anydragon","article_published_time":"2011-10-03T23:36:35+00:00","article_modified_time":"2022-07-12T05:49:08+00:00","author":"anydragon","twitter_card":"summary_large_image","twitter_creator":"@anydragon","twitter_site":"@anydragon","twitter_misc":{"\uae00\uc4f4\uc774":"anydragon","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/anyons.net\/?p=183#article","isPartOf":{"@id":"https:\/\/anyons.net\/?p=183"},"author":{"name":"anydragon","@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"headline":"System Power States","datePublished":"2011-10-03T23:36:35+00:00","dateModified":"2022-07-12T05:49:08+00:00","mainEntityOfPage":{"@id":"https:\/\/anyons.net\/?p=183"},"wordCount":196,"commentCount":0,"publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"keywords":["cpp","mfc","power","windows"],"articleSection":["Programming","System"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/anyons.net\/?p=183#respond"]}]},{"@type":"WebPage","@id":"https:\/\/anyons.net\/?p=183","url":"https:\/\/anyons.net\/?p=183","name":"System Power States - anydragon","isPartOf":{"@id":"https:\/\/anyons.net\/#website"},"datePublished":"2011-10-03T23:36:35+00:00","dateModified":"2022-07-12T05:49:08+00:00","breadcrumb":{"@id":"https:\/\/anyons.net\/?p=183#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/anyons.net\/?p=183"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/anyons.net\/?p=183#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/anyons.net\/"},{"@type":"ListItem","position":2,"name":"System Power States"}]},{"@type":"WebSite","@id":"https:\/\/anyons.net\/#website","url":"https:\/\/anyons.net\/","name":"anydragon","description":"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang","publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/anyons.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":["Person","Organization"],"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b","name":"anydragon","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","url":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","contentUrl":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","width":2560,"height":1440,"caption":"anydragon"},"logo":{"@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg"},"sameAs":["http:\/\/anyons.net","https:\/\/www.facebook.com\/anydragon","https:\/\/x.com\/anydragon","https:\/\/www.youtube.com\/channel\/UCr78KWpvmk398vPfpUTWNLg"],"url":"https:\/\/anyons.net\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":2802,"url":"https:\/\/anyons.net\/?p=2802","url_meta":{"origin":183,"position":0},"title":"Azure OS Disk Size \ubd80\uc871\ud560\ub54c \uac00\uc7a5 \uc27d\uac8c SizeUp \ud558\ub294 \ubc29\ubc95","author":"anydragon","date":"2022\ub144 08\uc6d4 28\uc77c","format":false,"excerpt":"\ucc98\uc74c Auzre\uc5d0 VM\uc744 \ub9cc\ub4e4\uace0 \uc6b4\uc601\uc744 \ud558\ub2e4\ubcf4\uba74 \uc0dd\uac01\uce58\ub3c4 \uc54a\uac8c Disk Size \uac00 \ubd80\uc871\ud574 \uc9c8\ub54c\uac00 \uc788\ub2e4. \ud2b9\ud788 OS Disk \uac00 \ubd80\uc871\ud574 \uc9c0\uba74 \uc5ec\ub7ec\uac00\uc9c0 \ubc29\ubc95\uc744 \ucc3e\uc544\ubcf4\uace0\ub294 \"\uc808\ub9dd\" \ud55c\ub2e4 \uac00\uc7a5 \uc77c\ubc18\uc801\uc73c\ub85c Power Shell\ub85c \uc5b4\ucc0c \uc5b4\ucc0c \ud558\ub294 \ubc29\ubc95\uc774 \uc788\uc9c0\ub9cc..........\uc5b4\ub835\ub2e4. \uadf8\ub807\ub2e4\uace0 \uc0c8\ub85c \uc124\uce58\ud558\uae30\uc5d0\ub294 \ud560\uc77c\uc774 \ub9ce\uc544\ub3c4 \ub108\ubb34 \ub9ce\ub2e4. \uadf8\ub7ec\ub2e4\uac00 OS Disk Size\ub97c \ubc14\uafc0\uc218 \uc788\ub294 \uac00\uc7a5 \uc26c\uc6b4 \ubc29\ubc95\uc744\u2026","rel":"","context":"&quot;Configuration&quot;\uc5d0\uc11c","block_context":{"text":"Configuration","link":"https:\/\/anyons.net\/?cat=94"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2022\/08\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2022-08-28-%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB-10.50.49.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2022\/08\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2022-08-28-%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB-10.50.49.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2022\/08\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2022-08-28-%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB-10.50.49.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2022\/08\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2022-08-28-%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB-10.50.49.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2022\/08\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2022-08-28-%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB-10.50.49.png?resize=1050%2C600 3x"},"classes":[]},{"id":1113,"url":"https:\/\/anyons.net\/?p=1113","url_meta":{"origin":183,"position":1},"title":"iptables \ubaa9\ub85d\ub4e4","author":"anydragon","date":"2015\ub144 04\uc6d4 07\uc77c","format":false,"excerpt":"Basic IP Block iptables -A INPUT -i eth0 -p tcp -s 1.1.1.1 -j DROP Allow incoming SSH iptables -A INPUT -i eth0 -m state --state NEW,ESTABLISHED -m tcp -p tcp -s 1.1.1.1 --dport 22 -j ACCEPT Allow incoming SSH from a Sepcific Network iptables -A INPUT -i eth0 -m state\u2026","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2851,"url":"https:\/\/anyons.net\/?p=2851","url_meta":{"origin":183,"position":2},"title":"Ubuntu \uc5d0 \uc0c8 disk \ucd94\uac00","author":"anydragon","date":"2022\ub144 09\uc6d4 06\uc77c","format":false,"excerpt":"sudo fdisk -l # partitioning sudo parted \/dev\/sdc mklabel new disk label type? diskname mkpart partition name? partitionname file system type? [ext2]? ext4 start? 1 end? 128GB quit # format sudo mkfs.ext4 \/dev\/sdc1 sudo fdisk -l # mount sudo mount \/dev\/sdc1 \/data \u00a0","rel":"","context":"&quot;Command&quot;\uc5d0\uc11c","block_context":{"text":"Command","link":"https:\/\/anyons.net\/?cat=93"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":487,"url":"https:\/\/anyons.net\/?p=487","url_meta":{"origin":183,"position":3},"title":"visualassist database \uc0ad\uc81c \uacbd\ub85c","author":"anydragon","date":"2013\ub144 01\uc6d4 02\uc77c","format":false,"excerpt":"C:\\Users\\*\\AppData\\Local\\Microsoft\\VisualStudio\\10.0\\Extensions\\*\\Data","rel":"","context":"&quot;Concept&quot;\uc5d0\uc11c","block_context":{"text":"Concept","link":"https:\/\/anyons.net\/?cat=95"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":689,"url":"https:\/\/anyons.net\/?p=689","url_meta":{"origin":183,"position":4},"title":"windows event log","author":"anydragon","date":"2014\ub144 06\uc6d4 21\uc77c","format":false,"excerpt":"\ucd9c\ucc98 http:\/\/mainia.tistory.com\/412 \uc774\ubca4\ud2b8\ub85c\uadf8 \uc4f0\uae30 static void Main(string[] args) { WriteEventLogEntry(\"This is an entry in the event log by daveoncsharp.com\"); } private static void WriteEventLogEntry(string message) { \/\/ Create an instance of EventLog System.Diagnostics.EventLog eventLog = new System.Diagnostics.EventLog(); \/\/ Check if the event source exists. If not create it. if (!System.Diagnostics.EventLog.SourceExists(\"TestApplication\"))\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1201,"url":"https:\/\/anyons.net\/?p=1201","url_meta":{"origin":183,"position":5},"title":"sql \uc2a4\ud06c\ub9bd\ud2b8 \uc0dd\uc131\uc2dc\uc5d0 \uc635\uc158","author":"anydragon","date":"2016\ub144 07\uc6d4 27\uc77c","format":false,"excerpt":"","rel":"","context":"&quot;Configuration&quot;\uc5d0\uc11c","block_context":{"text":"Configuration","link":"https:\/\/anyons.net\/?cat=94"},"img":{"alt_text":"\u1109\u1173\u110f\u1173\u1105\u1175\u11ab\u1109\u1163\u11ba 2016-07-27 \u110b\u1169\u1112\u116e 3.22.20","src":"https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2016\/07\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2016-07-27-%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE-3.22.20.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2016\/07\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2016-07-27-%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE-3.22.20.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2016\/07\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2016-07-27-%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE-3.22.20.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2016\/07\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2016-07-27-%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE-3.22.20.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2016\/07\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2016-07-27-%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE-3.22.20.png?resize=1050%2C600 3x, https:\/\/i0.wp.com\/anyons.net\/wp-content\/uploads\/2016\/07\/%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2016-07-27-%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE-3.22.20.png?resize=1400%2C800 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":0,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"wp:attachment":[{"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}