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

void vscode/firefox open dialog not working

 install nautilus