본문 바로가기

OS15

[Windows] Hibernate 켜기 윈도우를 사용하게 되면 기본적으로 sleep만 사용 가능하고, hibernate 기능은 꺼져 있죠. 그런데, sleep 같은 경우는 이런저런 이유로 강제로 wake up 되는 경우가 자주 발생을 하더라고요. 그래서, sleep 보단 hibernate를 선호합니다. 하지만, 기본적으로는 off 상태라 사용을 하려면 몇 가지 작업을 해줘야 합니다. PowerShell을 administrator권한으로 실행을 시키고, 다음 명령어를 입력해 줍니다. $ powercfg /H ON Command Prompt에서도 동일하게 하시면 되요. 다음으로, Windows Settings 메뉴에서 System -> Power & sleep 메뉴로 갑니다. 여기서 Additional power settings 메뉴를 선택합니다.. 2022. 3. 8.
[Linux] Install Python using Source Prerequisites We need to gcc, openssl, bzip, and libffi. $ sudo yum install gcc openssl-devel bzip2-devel libffi-devel Download Python Download Python source from FTP storage via wget. $ cd /opt $ sudo wget https://www.python.org/ftp/python/3.x.x/Python-3.x.x.tgz Extract the Archive Python File $ sudo tar xzf Python-3.x.x.tgz Install Python $ cd Python-3.x.x $ sudo ./configure --enable-optimizat.. 2022. 2. 2.
[PowerShell] Get Elapsed Time using PowerShell Script $startTime = $(get-date) # Tasks that you want to measure $elapsedTime = $(get-date) - $startTime $totalTime = "{0:HH:mm:ss}" -f ([datetime]$elapsedTime.Ticks) Write-Host $totalTime 2021. 12. 21.
[Windows] Microsoft PowerToys PowerToys는 Windows10의 사용자 편의를 위한 유틸리티 모음 입니다. 공식 페이지는 다음 링크를 참고하세요 https://docs.microsoft.com/en-us/windows/powertoys/ 설치 설치는 공식 페이지의 가이드를 따르시면 됩니다. https://docs.microsoft.com/en-us/windows/powertoys/install 전 chocolatey를 사용중이라 choco로 설치 했어요. $ choco install powertoys winget 같은 다른 패키지 매니저 툴도 있긴 한데... 그건 차후에 다뤄보도록 할께요. (관심 있으시면 Windows Package Manager WinGet으로 찾아보세요.) 일단 전 choco로 사용하고 있어요. ^^ 설정 .. 2021. 7. 15.
[Mac] 외장하드 포맷하기 > Big Sur 11.2.3 최근 외장하드를 구입해서 맥에서 사용을 하기 위해 초기화 작업을 해봤습니다. 먼저 LaunchPad를 실행시켜주세요. 맥용 키보드를 사용하고 계시면, F4 키를 누르면 됩니다. 그리고, Disk Utility를 찾아서 실행시켜줍니다. 못찾으시면, Other 폴더를 살펴봐주세요. Spotlight에서 찾으셔도 되고, 저같은 경우에는 Alfred를 사용해서 찾았어요. 그럼 이런 화면을 보실 수 있습니다. 꽂자마자 바로 ExFAT로 잡혀 있어서 즉시 사용할 수 있어요. 이런 편리함 때문에 맥을 쓰는 거죠. 하지만, ExFAT의 경우 윈도우와 호환이 되서 별도의 프로그램의 도움 없이 양쪽에서 사용할 수 있지만, 파일 시스템 자체의 안정성이 떨어져서 데이터 손실의 위험이 있습니다. .. 2021. 4. 21.
[Linux] Crontab으로 원하는 시간에 자동으로 작업 실행하기 Unix, Linux 계열 OS에서는 crontab을 사용하여 원하는 작업을 자동으로 실행할 수 있습니다. Unix 계열인 MacOSX에서도 당연히 사용할 수 있죠. 예를 들면, 매일 아침 8시에 뉴스 기사를 스크랩 해오는 프로그램을 자동으로 실행할 수도 있겠고, 매일 아침 8시 30분에 주식 자동 매매 프로그램을 실행시킬 수도 있겠죠. ㅎㅎㅎ 사용법도 매우 간단하니 배워서 바로 적용해보세요. ^^ 기본 명령어 다음 명령어를 사용하여 crontab을 실행합니다. $ crontab -e 기존에 만들어진 crontab이 있다면 해당 파일이 열릴 것이고, 없었다면 새로운 파일이 열릴 것입니다. crontab을 사용할 수 있는 문법은 잠시후에 설명 드릴게요~ 파일을 열지 않고 내용을 보고 싶다면 다음 명령어를 .. 2021. 4. 12.
[Mac] Tip: Resolving xcrun error Terminal에서 작업을 하다보면, 다음과 같은 에러를 만날 때가 종종 있습니다. xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun xcode의 command line도구 관련 문제인데, 보통 새로 설치를 해주면 문제가 해결됩니다. $ xcode-select --install 이미 설치가 되어있는데, 경로가 꼬여서 경로를 재설정 하고 싶다면 다음의 명령어를 입력해주면 됩니다. $ xcode-select --reset 단축 옵션으로 -r을 사용할 수 있습니다. 임의의 경로를 직접 설정해 .. 2021. 4. 3.
[Windows] Getting Started with Windows Terminal I like a Windows Terminal as terminal on Windows. I had waited it since I found out, and I've been using it since beta. If you don't use it now, try it out. You will like it like me. Installation I use chocolatey for package manager Windows. 2020/08/30 - [OS/Windows] - [Windows] Chocolatey $ choco install microsoft-windows-terminal --pre Now, run the Windows Terminal. $ wt Usage Click the down a.. 2020. 12. 24.
[Mac] Configuration for Development Let's config our Mac for development. System-Wide System Preferences First, configure system preferences that you want to set. You can set the appearance of the dock, shortcut keys, gestures and etc. Homebrew This is the most essential thing. You should use this. I recommend this!!! 2020/09/23 - [OS/Mac OSX] - [Mac] Homebrew Browser - Chrome Safari is a good browser, but I use Google Chrome. Bec.. 2020. 9. 26.
[Mac] Shell Configuration (feat. zsh) I used to use bash, zsh, and fish all before. I chose the zsh, because it can be easily customized and prettier than bash. In addition, it can also be used like fish by adding features with plugins. Let's fun together with the zsh!! Installation $ brew install zsh If you don't have the Homebrew, you have to install it now!!! 2020/09/23 - [OS/Mac OSX] - [Mac] Homebrew Let's install oh-my-zsh to m.. 2020. 9. 25.
[Mac] Change Colors of ls Command I'm currently using iTerm2 and the latest zsh. In the past, as I remember that if I want to change the color of the ls command, I should set in the LS_COLORS shell variables. But when I tried to set it with my new Mac in this time, it was LSCOLORS. Anyway, let's find out this. Default Value My Mac's default value was Gxfxcxdxbxegedabagacad. Oh Jeez, What is this?!! When I set it up before, it se.. 2020. 9. 25.
[Mac] Terminal Configuration with iTerm2 I've been using iTerm2 instead of the default terminal app. It has more awesome features than the default terminal app. Installation $ brew cask install iterm2 I also replaced the application in the dock. Configuration You can customize the most of things. Change all of them to your taste. Create Profiles You can many customized configuration set with profiles. Let's press ⌘, to run Preferences... 2020. 9. 24.