파이썬에서 엑셀 read/write 하기 + Azure CLI와 같이 활용!
·
System Engineering/파이썬
from openpyxl import load_workbook # data_only=Ture로 해줘야 수식이 아닌 값으로 받아온다. load_wb = load_workbook( "/Users/hojaelee/desktop/powershell/gather_metric.xlsx", data_only=True) # 시트 이름으로 불러오기 load_ws = load_wb['Metrics'] #셀 주소에 갑 입력 load_ws['C5'] = 6666 # 셀 주소로 값 출력 print(load_ws['A1'].value) # 셀 좌표로 값 출력 print(load_ws.cell(1, 2).value) load_wb.save("/Users/hojaelee/desktop/powershell/gather_metric.x..
VM의 Connection troubleshoot는 NSG rule만 체크한다 + 바보같은 실수
·
CLOUD/Azure Cloud
체크해보면 Network connectivity allowed가 뜬다. 즉, VM 내부의 Port와는 상관없이 단순히 NSG만 보는거다. + 바보같은 실수 아무 생각 없이 Source port ranges를 80으로 제한시켜서 접속이 안된거였어. 현우님이 알려줘서 깨달음 ㅋ
SLURM (리눅스 클러스터 - 작업 스케줄러)
·
System Engineering/DevOps
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwid_5W6y-r3AhVPnFYBHUefDGMQFnoECAkQAQ&url=https%3A%2F%2Fdoheejin.github.io%2Flinux%2F2021%2F02%2F18%2Flinux-slurm.html&usg=AOvVaw1lnpAZeiApJG4aJarIIQa_ https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwid_5W6y-r3AhVPnFYBHUefDGMQFnoECAkQAQ&url=https%3A%2F%2Fdoheejin.githu..
measure-object의 값을 바로 가져오기
·
System Engineering/Powershell
https://stackoverflow.com/questions/26097224/how-to-select-a-value-of-measure-object-directly-powershell How to select a value of "measure-object" directly? (powershell) I am wondering about something. Not very important, but I am curious now... Let's say we have a array: PS C:\> $array 3 1129 1063 1139 1299 4446 1135 1096 1216 1075 And now we want to have the stackoverflow.com
git push할 때, 매번 branch 변경하지 않아도 되는 방법
·
System Engineering/git
https://www.daleseo.com/git-push/ git push 사용법/팁 Engineering Blog by Dale Seo www.daleseo.com 인자 생략 하기 2 여러 브랜치를 넘나 들면서 작업을 하는 경우에는 최초에 한 번 인자를 넘기는 것도 귀찮게 느껴질 수 있습니다. 😅 대부분의 경우에는 로컬 저장소와 원격 저장소에서 동일한 브랜치 이름을 사용하기 때문에 항상 현재 브랜치를 기준으로 git push 명령어가 작동한다면 매우 편리할 것 같습니다. 이를 위해서는 약간의 설정이 필요한데요. 다음과 같이 push.default 설정을 current로 설정해줍니다. $ git config --global push.default current 자, 이제부터는 어느 브랜치에서 작업을 하..
파워쉘에서 가독성을 위한 줄바꿈
·
System Engineering/Powershell
줄 끝에 ₩ 를 하면 된다.