Skip to content

Instantly share code, notes, and snippets.

@akottr
akottr / .tmux.conf
Last active November 4, 2016 09:08
# set vi mode
set-window-option -g mode-keys vi
# make ctrl left/right work
set-window-option -g xterm-keys on
# allow scroll with mouse wheel
bind-key m setw -g mode-mouse on
bind-key M setw -g mode-mouse off
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
@akottr
akottr / gsettings.md
Last active September 26, 2016 12:15
remap shortcuts gnome, gconf gesettings
gsettings list-recursively | grep org.gnome.desktop.wm.keybindings
#!/bin/sh
gsettings set org.gnome.desktop.wm.keybindings begin-move "['disabled']"
gsettings set org.gnome.desktop.wm.keybindings begin-resize "['disabled']"
gsettings set org.gnome.desktop.wm.keybindings cycle-group "['disabled']"
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "['disabled']"
@akottr
akottr / swap.md
Last active August 30, 2016 21:53
fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && echo "/swapfile   none    swap    sw    0   0" >> /etc/fstab
@akottr
akottr / git-svn.md
Last active August 29, 2015 14:10
git svn

from svn to git

git svn clone http://somesvnrepo/svn/path/to/repo -T trunk -b branches -t tags
git remote add somegitrepo https://github.com/path/to/gitrepo.git
git fetch somegitrepo
git reset --hard somegitrepo/master
git svn rebase 
# -> merge if necessary
# -> git add .
Intellij Eclipse description
Esc F12 Focus editor
Ctrl+Shift+F12 Ctrl+M Maximize editor
Alt+F1+Enter Show current file in project tree
Ctrl+Shift+A Ctrl+3 Quick access
Ctrl+B F3 Go to declaration
Ctrl+Alt+B Ctrl+T Show implementations (Type Hierachie)
Alt+F7 Ctrl+Shit+G Find Usages
Ctrl+Shift+C Copy Path
@akottr
akottr / Maven.sublime-build
Last active August 1, 2022 06:47
For maven build put this file into ~/.config/sublime-text-3/Packages/User. Choose Tools -> Build System -> Maven. Ctrl+Shift+ P shows the entries (e.g mvn clean)
{
"working_dir": "$file_path",
"shell_cmd":"mvn clean install",
"variants": [
{
"name": "mvn clean install",
"shell_cmd": "mvn clean install"
},
{
"name": "mvn full build",

SVN basic commands

Info

Info about the repository

svn info

Changed files

Git / Github basic commands

Config

Global config

git config --global user.name "username"
git config --global user.email "name@domain.com"
git config --global color.diff true

Linux commands

(that I can not remeber)

Find in files recursive

grep -Hir "some text" *

maven commands

show dependency tree

mvn dependency:tree

download sources

mvn dependency:sources