본문 바로가기

전체 글

(17)
한줄로 tar + gzip 압축 진행상태 모니터링 Compress tar cf - -P | pv -s $(du -sb | awk '{print $1}') | gzip > where: is the root-mounted (i.e. starts with /) path to the files is the output tarball to create Decompress pv | tar -xvzf - -C where: is the path to the tarball to extract is the directory to extract the tarball to Source : https://gist.github.com/Kautenja/tar-progress.md
cmd 환경에서 PATH 내용 점검 방법 간단하게... > echo %path% C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH 하지만... > echo %path:;=&echo(% 하면... C:\Program Files (x86)\Common Files\Oracle\Java\javapath C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0..
Find my public internet IP address CURL(CLI) support: ip.me ipconfig.io ident.me ifconfig.me / ifconfig.io ipinfo.io curl ipinfo.io # Output: { "ip": "123.23.23.123", "city": "Seoul", "region": "Seoul", "country": "KR", "loc": "37.0000,120.0000", "org": "LG POWERCOMM", "postal": "00000", "timezone": "Asia/Seoul", "readme": "https://ipinfo.io/missingauth" } curl ipinfo.io/8.8.8.8 # Output: { "ip": "8.8.8.8", "hostname": "dns.googl..
Grafana setup # RPM 설치시 기본 설정 /etc/grafana/grafana.ini - "[server].domain = localhost" 을 웹 브라우저로 접근할 IP주소 또는 Domain을 입력하고 반영을 위해 재시작. - "Explorer" 화면에서 "Add to Dashboard" 하고 "Open in new tab" 을 실행 할 때 http url을 위 "domain" 에 설정한 이름으로 접근함.
Faster bulk(directory) copy than cp, and watch progress It is very convenient status monitoring while copying lots number of files or large one.Generally native linux command does not support status of copy status how much are done.So, I found the solution through 'tar' and 'pv' utility with pipe.tar cf - SOURCEDIR | pv | ( cd /target-dir/ ; tar xf - )The example in the above, > "tar cf - SOURCEDIR" : means create a tarball copy stream to STDOUT fro..
DOS 시절 감성의 웹 사이트 "온라인타자교실" https://typing.zidell.me/ 은 옛 DOS/PC통신 시절의 레트로 감성을 살려 디자인을 한 타자연습 기능을 제공한다. 흡사 한메타자교실을 그대로 본따 만든 듯한 화면 구성과 타자 연습문장 등을 그대로 갖춰 제공하고 있다. 사이트의 "풀그림 정보"("https://typing.zidell.me/about") 메뉴를 열면 이러한 안내와 이용중인 오픈소스 등을 공개하고 있다. (아래와 같이...) ■ 오픈소스 - 둥근모꼴 (https://cactus.tistory.com/193) - 이 폰트를 이용해 레트로 감성을 살림 - 도스폰트(https://github.com/hurss/fonts) - DOS 환경의 다양한 폰트 - Svelte (https://svelte.dev/) ..
MySQL 테이블 스키마 용량 확인 SELECT concat(TABLE_SCHEMA,'.',TABLE_NAME) as Database_Tablename , TABLE_ROWS as TableRows , concat(round(DATA_LENGTH/(1024*1024),2),'M') Data , concat(round(INDEX_LENGTH/(1024*1024),2),'M') Idx , concat(round((DATA_LENGTH+INDEX_LENGTH)/(1024*1024),2),'M') Total_size , round(INDEX_LENGTH/DATA_LENGTH,2) Idxfrac FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'Scheme_Name' ORDER BY TABLE_ROWS ..