Linux2019. 4. 18. 10:24

$ sudo yum install fdupes

 

결과 자체는 별건 없고

같은 파일들 끼리 묶어서 출력해준다.

 

[링크 : https://itsfoss.com/find-duplicate-files-linux/]

'Linux' 카테고리의 다른 글

ata1 comreset failed (errno=-16)  (0) 2019.04.19
crontab 실행 시간 조절하기  (0) 2019.04.18
tar 에서 파일 삭제하기  (0) 2019.03.04
sparse file 확인하기  (0) 2019.02.25
cron 실행 및 시간 관련 문제  (0) 2019.02.24
Posted by 구차니

TED에서 강연했으니 만큼 책광고가 이상한 방향으로 말하는 것 같은데

아무튼, 아이에게 특정 성별이 아닌 인간으로 살아가게 하는게 좋긴 할듯 한데

미래 시대에서 아이에게 정말 그게 좋을진 모르겠다.

 

어느정도는 기존의 여자들처럼 나약하지 않게,

스스로 독립하고 자주적으로 생각하고 행동할 수 있는 딸래미가 되길 바라긴 하지만

그 길이 쉽지 않은걸 겪어왔기에

차라리 기존의 여자들 처럼 쉬운길을 걷는게 낫지 않을까 생각하기도 한다.

 

여자로서의 딸이 아닌

독립된 인격체로서의 내 아이는

그래도 남들보다는 더 강인하고, 이성적이고, 현명하고, 독립적이었으면 좋겠다.

 

근데 아내랑 이야기 하다 보면

남자는 아싸라도 능력으로 살아갈 수 있지만, 여자는 그룹에서 벗어날수가 없다고 하니 그것도 걱정이네..

 

[링크 : https://1boon.kakao.com/papervore/bebrave]

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

분노쓰  (0) 2019.04.27
피곤  (0) 2019.04.20
또 하루의 정신없는 끝  (0) 2019.04.14
똥개 피똥.. 토..  (0) 2019.04.13
심리 상담 다녀옴  (0) 2019.03.16
Posted by 구차니
Programming/node.js2019. 4. 17. 22:06

url 파라미트에서 특정 녀석을 삭제할 수 있는 기능

 

urlSearchParams.delete(name)#

Remove all name-value pairs whose name is name.

[링크 : https://nodejs.org/api/url.html#url_urlsearchparams_delete_name]

Posted by 구차니
Programming/node.js2019. 4. 17. 18:27

간단하게 말하면 / 가 붙으면 directory

없으면 file로 간주하고 그에 따라 행동이 달라진다는 내용

[링크 : https://djkeh.github.io/articles/Why-do-we-put-slash-at-the-end-of-URL-kor/]

 

근데.. 클라이언트나 서버에서 임의로 /를 붙여서 해석하다 보니

어떤곳에서는 /가 붙고 어떤것에서는 /가 안 붙는데

요즘에는 RESTful API에 의해서

/는 단순 구분자가 되었고

/api/stone/

/api/stone/apply

식으로 꼬리에 꼬리를 물게 구성가능하다 보니

기존의 디렉토리, 파일 구조로 캐싱하기 쉽지가 않다..

 

+

node.js 에서 끝에 /로 끝나는 것 찾기

[링크 : https://stackoverflow.com/questions/6165381/how-to-get-the-last-part-of-a-string-in-javascript/6165387]

Posted by 구차니
embeded/arduino(genuino)2019. 4. 17. 17:05

하이마트에서 전자잉크로 가격표 쓰는데 (검은색/빨간색) 의외로 싸게 풀린듯?

 

아무튼 전기도 공급안해줘도 되고 한번 변경할때 장비에 물려서 설정해주고 뽑아버리면 되니까

[링크 : http://eleparts.co.kr/goods/view?no=6517082] 0.99만

[링크 : http://eleparts.co.kr/goods/view?no=6268645] 7.5만

'embeded > arduino(genuino)' 카테고리의 다른 글

arduino nano + CLCD  (0) 2020.03.07
arduino ide ubuntu에서 한글 깨질때  (0) 2020.02.17
dfrobot ph meter  (0) 2018.12.19
433mhz tpms ivtm 센서용 통신 모듈  (0) 2018.10.05
firmata c library client  (0) 2018.05.18
Posted by 구차니
embeded/raspberry pi2019. 4. 17. 16:52

waveshare 꺼 예전에 샀다가 이것저것 깨먹고 못쓰는 놈이 있는데..

 

어떤 버전인지 까먹어서 예전글 찾는데 35a 인듯?

[링크 : https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)]

[링크 : https://minimonk.net/5694] a 맞음!

 

심심해서 게임기나 휴대용으로 만들까 하고 HDMI 3.5인치 모니터 찾다보니

High Speed SPI 라는 모델이 있어서 보니

 

50Hz 까지 올라간다고.. 오오.. 그러면 굳이 HDMI로 할 필요도 없네? 라는 생각이 드는데.. 돈들여서 질러봐?

Combined with the Raspberry Pi (refresh rate up to 50Hz), allows you to:
Watch videos (multi formats like MP4)
Play video games (RetroPie, take a bite)
Take photos by touching (up to 17 camera modes)
Use software keyboard (system interaction without keyboard/mouse)

[링크 : https://www.waveshare.com/3.2inch-RPi-LCD-C.htm]

[링크 : https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(C)]

 

 

+

2019.04.18

(C) High speed 발견! ㅋㅋ 지를까 말까 ㅋㅋㅋ

[링크 : http://eleparts.co.kr/goods/view?no=7048556]

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 2 lakka 설정  (1) 2019.07.23
rpi as bt device  (0) 2019.05.30
rpi bt  (0) 2019.04.08
라즈베리 파이 3b 외장 안테나 부품 실장 관련  (0) 2019.04.05
라즈베리 서버를 종료합니다  (0) 2019.01.03
Posted by 구차니

Incremental 옵션이 영향을 주는것 같아서 해보는데 일단 귀찮아서...

Incremental no 옵션을 설정한 다음 전체 로그를 붙여서(과거 - 현재 순서로)

붙이니 일단 되는 듯.. -p 옵션을 통해서 여러개로 나누어진 녀석을 처리가능하다는데

해보진 않아서 모르겠네.. 해볼까? (멀 잘못했나.. -p 로그파일 해도 안되네..)

 

6. My logs are HUGE! Can I run The Webalizer on partial logs?Yes!
        . The Webalizer fully supports incremental processing. This allows you to rotate your logs as often as needed without the loss of statistical detail between runs. Use the "Incremental" keyword in your configuration file, or the "-p" command line switch to enable incremental processing. See the
 README file for additional information and precautions on using incremental processing.

[링크 : http://www.webalizer.org/faq.html]

 

The Webalizer is a command line application and is launched from the operating system shell prompt. A typical command is shown below.webalizer -p -F clf -n en.wikipedia.org -o reports logfiles/access_log

This command instructs The Webalizer to analyze the log file access_log, run in the incremental mode (-p), interpret the log as a CLF log file (-F), use the domain name en.wikipedia.org for report links (-n) and produce the output subdirectory of the current directory. Use the -h option to see the complete list of command line options.

[링크 : https://en.wikipedia.org/wiki/Webalizer#Command_line]

 

for obj in $(ls access*); do webalizer -p -F apache -n example.hostname.com -o /path/to/webalizer/ $obj; done

[링크 : https://coderwall.com/p/0eh7iw/run-old-access-logs-through-webalizer]

Posted by 구차니

전자담배 때문에 길거리든 어디든

갑자기 풍겨오는 인공향료 냄새는 니코틴으로 받아들여져서

 

이제 아무런 향이 나지 않으면 담배 아닌가 민감해지는 상황..

전자담배라고 해서 공기중에 뿜은 연기에 니코틴이 하나도 없는게 아닐텐데

타르로 인해서 냄새가 안밴다고 너무 사람들의 인식이 낮아진게 아닐까?

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

몸이 고장나는 시기구만..  (2) 2019.05.25
비싼 똥개 -_ㅠ  (2) 2019.04.21
희한하게 피곤..  (0) 2019.04.09
어라 부품들이 많네..?  (0) 2019.04.06
또 다시 돌아온 지름신..  (3) 2019.03.20
Posted by 구차니

특정 디렉토리를 제외하려면 그냥 적고

그 안에 특정 파일은 버전관리 하려면

!/path/filename

으로 적어주면 된다.

[링크 : https://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files]

Posted by 구차니

kvm 에서 작동중에 cpu를 추가하는 방법

반대로 빼는건 좀 복잡한 듯

 

추가하기

# virsh setvcpus UAKVM2 2
# virsh dominfo UAKVM2

 

제거하기

# virsh setvcpus --live --guest UAKVM2 1

 

설정 저장하기
# virsh setvcpus --config UAKVM2 1

[링크 : https://www.unixarena.com/2015/12/linux-kvm-how-to-add-remove-vcpu-to-guest-on-fly.html/]

 

+

2019.04.20

현재 2개인데

줄이는 것 일단 안되는데 착각해서 해보고..

# virsh setvcpus testvm 1
오류:지원되지 않는 설정: failed to find appropriate hotpluggable vcpus to reach the desired target vcpu count

 

늘리는 건 최대 값 설정된게 있는데 그걸 넘어서 안된다고 하네..

# virsh setvcpus testvm 4
오류:잘못된 인수: requested vcpus is greater than max allowable vcpus for the live domain: 4 > 2

 

이것저것 해보는데.. maximum live는 어떻게 올리지? ㅠㅠ

# virsh vcpucount testvm
maximum      config         2
maximum      live           2
current      config         2
current      live           2

# virsh setvcpus testvm 4 --maximum
오류:Option --config is required by option --maximum

# virsh setvcpus testvm 4 --maximum --config

# virsh vcpucount testvm
maximum      config         4
maximum      live           2
current      config         2
current      live           2

 

# virsh setvcpus testvm 4 --live
오류:잘못된 인수: requested vcpus is greater than max allowable vcpus for the live domain: 4 > 2

 

# virsh setvcpus testvm 4 --live --maximum --config
오류:Operation not supported: maximum vcpu count of a live domain can't be modified

 

아래 명령으로 2를 4로 바꾸었는데

# virsh edit testvm

 <vcpu placement='static'>4</vcpu>

 

maximum live는 안올라가네.. 그래서 여전히 설정이 안된다.. ㅠㅠ

# virsh vcpucount testvm 
maximum      config         4
maximum      live           2
current      config         4
current      live           2

 

chcpu로 코어를 끄고 켤 수 있는 듯?

# chcpu

Usage:
 chcpu [options]

Options:
  -h, --help                    print this help
  -e, --enable        enable cpus
  -d, --disable       disable cpus
  -c, --configure     configure cpus
  -g, --deconfigure   deconfigure cpus
  -p, --dispatch          set dispatching mode
  -r, --rescan                  trigger rescan of cpus
  -V, --version                 output version information and exit

[링크 : https://www.ibm.com/.../ldva_t_modifyingCPUNumber.html]

Posted by 구차니