사용자 도구

사이트 도구


console

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
console [2017/11/29 11:14] rex8312console [2024/03/23 02:38] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 ====== Console 도구 ====== ====== Console 도구 ======
 +
 +동일한 명령(nvidia-smi) 계속 반복하기
 +
 +  while [ true ]; do nvidia-smi; sleep 1; clear; done
 +  # 또는
 +  watch --interval=1 nvidia-smi
  
 파일 검색 파일 검색
줄 55: 줄 61:
   curl {address} [-silent]   curl {address} [-silent]
      
-unicode sparkline+웹에서 스크립트 받아서 실행
  
-https://rosettacode.org/wiki/Sparkline_in_unicode#Python +  curl --silent --location {address} | bash - 
-http://www.leancrew.com/all-this/2011/05/textexpander-sparkline-snippet/+   
 +PIPE 통해서 파일 열기(script 파일을 열기)
  
-<code python> +  vi $(which script.py)
-# -*- coding: utf -*- +
- +
-import re +
-try: raw_input +
-except: raw_input = input +
-  +
-# Unicode: 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608 +
-try: bar = u'▁▂▃▄▅▆▇█' +
-except: bar = '▁▂▃▄▅▆▇█' +
-barcount = len(bar) - 1 +
-while True: +
-    line = raw_input('Numbers please separated by space/commas: ') +
-    numbers = [float(n) for n in re.split(r'[\s,]+', line.strip())] +
-    mn, mx = min(numbers), max(numbers) +
-    extent = mx - mn +
-    sparkline = ''.join(bar[int( (n - mn) / extent * barcount)] +
-                        for n in numbers) +
-    print('min: %5f; max: %5f' % (mn, mx)) +
-    print(sparkline) +
-</code>+
          
 Console widget Console widget
줄 87: 줄 74:
   * ncurses   * ncurses
   * asciimatics   * asciimatics
 +  * npyscreen
 +
 +===== Visualization =====
 +
 +  * [[plotille:rotating_cube]]
 +  * [[sparkline]]
 +  * [[ascii_plot]]
 +
 +===== Image view =====
 +
 +  * ascii image
 +    * apt install aview
 +  * inline image
 +    * w3m-img
 +
 +===== Windows =====
 +
 +  * key press
 +    * https://github.com/kcsaff/getkey
console.1511954096.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)