2018년 9월 28일 금요일

better git log (CUI)

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

https://coderwall.com/p/euwpig/a-better-git-log

sakura terminal configurations

~/.config/sakura/sakura.conf

https://github.com/enricobacis/.dotfiles/blob/master/sakura/.config/sakura/sakura.conf

mx linux tearing fix

/usr/share/X11/xorg.conf.d/20-intel.conf

Section "Device"
Identifier "Intel Graphics"
Driver "Intel"
Option "TearFree" "True"
EndSection

#Option "AccelMethod" "sna" << 이건 적용하지 않음 

2018년 9월 26일 수요일

mx linux lock by keyboard shortcuts

https://unix.stackexchange.com/questions/147465/how-to-suspend-with-a-keyboard-shortcut

설정 관리자->키보드->프로그램 바로 가기->추가

xflock4 ; xfce4-session-logout --suspend




2018년 9월 24일 월요일

kde ibus 시작 프로그램 등록

시스템 설정->시작 및 종료->자동시작->자동으로 시작되는 프로그램->데스크톱 파일

프로그램 추가

프로그램->명령

/usr/bin/ibus-daemon -drx --panel=/usr/lib/kimpanel-ibus-panel

 

설정: https://wiki.archlinux.org/index.php/IBus#KDE

kimtoy 설치

 ~/.xprofile

 export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

~/.bashrc 에도 마지막에 같은 부분 추가
 

.xprofile 수정 

적당한 위치에 script 만들기. (~/start_ibus.sh)

/usr/bin/ibus-daemon -drx

 시스템 설정->시작 및 종료->자동시작->Add login script


 

2018년 9월 19일 수요일

node.js live debugging

  • start node.js app with inspect setting
    • pm2:  pm2 xxx.js --node-args="--inspect=IP:PORT"
  • attach debugger 
    • CUI
      • node inspect IP:PORT
    • GUI
      • VSCode
        • https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_remote-debugging
  • https://nodejs.org/docs/latest-v8.x/api/debugger.html

2018년 9월 14일 금요일

android kindle screen reading

설정 -> 접근성 -> TalkBack

언어 설정:
Talkback->설정->음성(TTS설정)->언어 -> 영어(미국)

임시 끄기/켜기 -> 볼륨 위/아래 동시 3초 누름
스크롤 -> 두 손가락

https://support.google.com/accessibility/android/answer/6007100?hl=en-GB&ref_topic=3529932

2018년 9월 10일 월요일

kindle for pc linux

wine 설치
kindle for pc 1.16 설치

https://appdb.winehq.org/objectManager.php?sClass=version&iId=35955

manjaro + wine 3.15 에서 확인

via permission error linux chrome

 https://bbs.archlinux.org/viewtopic.php?id=285709