Skip to content

Instantly share code, notes, and snippets.

View s3ni0r's full-sized avatar

s3ni0r s3ni0r

View GitHub Profile
<keymap version="1" name="Default for KDE copy" parent="Default for KDE">
<action id="CollapseAll">
<keyboard-shortcut first-keystroke="ctrl subtract" />
</action>
<action id="CollapseExpandableComponent">
<keyboard-shortcut first-keystroke="shift enter" />
<keyboard-shortcut first-keystroke="ctrl subtract" />
</action>
<action id="CollapseRegion">
<keyboard-shortcut first-keystroke="ctrl subtract" />
@s3ni0r
s3ni0r / tmux.conf
Created May 22, 2018 19:17 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@s3ni0r
s3ni0r / sync_dir_to_hdfs.sh
Created February 22, 2018 21:14
Sync local directory to remote HDFS via WebHDFS
#!/bin/bash
# debug
#set -x
# abort if any error occured
set -e
# raise an error when an undefined variable has been used
set -u
# abort when a pipe failed = bash only: doesn't work in POSIX sh
if [ "${BASH:-}" = '/bin/bash' ]; then set -o pipefail; fi
@s3ni0r
s3ni0r / rm-ignored-files-from-index.sh
Created July 5, 2016 09:36
Remove all ignored files from git index
git ls-files --ignored --exclude-standard | sed 's/.*/"&"/' | xargs git rm -r --cached