Skip to content

Instantly share code, notes, and snippets.

@capfsb
Last active February 11, 2018 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capfsb/3e371f9ae274e355e3e2f130bac5ccfa to your computer and use it in GitHub Desktop.
Save capfsb/3e371f9ae274e355e3e2f130bac5ccfa to your computer and use it in GitHub Desktop.
CMD Usefulls
Количество нажатий клавиш
xinput --test-xi2 | awk 'BEGIN { count=0 } /RawKeyPress/ { count=count+1; printf "\r%-6d", count }'
Cмердженные ветки гита, например чтобы потому удалить их
git branch --merged | egrep -v "(^\*|master|dev)"
for branch in `git branch --merged`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
В awesome активировать мышь в русской раскладке
xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY
Отключить затирание удалённых комитов
git config --global gc.auto 0
Всключить иконку дробокса в трее
dropbox stop && dbus-launch dropbox start
Отключить chmod проверку на проде
git config core.fileMode false
Востановить локалстеши
gitk --all $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment