Skip to content

Instantly share code, notes, and snippets.

View jkonecny12's full-sized avatar

Jiri Konecny jkonecny12

View GitHub Profile
@jkonecny12
jkonecny12 / kakoune.spec
Last active May 11, 2016 12:49
Spec file for Kakoune builds
# TODO: automate this to get new GitHub version everytime
%global commit 48007d5de22f57175115fc72fe9cb592e6b0efb2
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: kakoune
Version: 0
Release: 2.%{shortcommit}git%{?dist}
Summary: Vim inspired editor
License: Unlicense
@jkonecny12
jkonecny12 / tmux_windows.sh
Created March 9, 2016 07:38
Create or attach session on tmux
#!/bin/bash
sleep 1
SESSION=tmux
tmux has-session -t $SESSION
if [ $? -eq 1 ]; then
@jkonecny12
jkonecny12 / .bashrc
Created January 6, 2016 09:53
My bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# "Conky Launchpad" #
# / \
# ___/ \_________________________________________________________________________________________________________________________________________________
#|##################################################################################################################|
#|##################################################################################################################|
#|###################################### Design by freeazy aka ivan90112 > ivan90112@gmail.com ################################|
#|##################################################################################################################|
#|##################################################################################################################|
#|##################################################################################################################|
@jkonecny12
jkonecny12 / playonlinux.spec
Last active June 6, 2017 19:13
PlayOnLinux spec file for Fedora
Name: playonlinux
Version: 4.2.11
Summary: Graphical front-end for Wine
License: GPLv3
URL: https://www.playonlinux.com
Release: 1%{?dist}
Source0: https://github.com/PlayOnLinux/POL-POM-4/archive/%{version}.tar.gz
# Wine supported on these arches
ExclusiveArch: %{arm} aarch64 %{ix86} x86_64
@jkonecny12
jkonecny12 / kickstart.kak
Last active August 29, 2015 14:22
kickstart.kak
hook global BufCreate .*\.ks %{
set buffer filetype kickstart
}
addhl -group / regions -default code kickstart \
comment (^|\h)\K\# $ '' \
double_string '"' (?<!\\)(\\\\)*" '' \
single_string "'" (?<!\\)(\\\\)*' '' \
packages '^[^#]*\K%\<packages\>' '^[^#]*\K%\<end\>' '' \
shell '^[^#]*\K%\<(pre|pre-install|post)\>' '^[^#]*\K%\<end\>' ''
@jkonecny12
jkonecny12 / kakrc
Last active May 11, 2016 12:41
Kakoune personal settings
############# HOOKS ########################
# add lines numbers
hook global WinCreate .* %{addhl number_lines}
# add brackets highliting
hook global WinCreate .* %{addhl show_matching}
# use only spaces do not use tabs
hook -group TabExpander global InsertChar \t %{ exec -draft h@}
@jkonecny12
jkonecny12 / .tmux.conf
Last active October 27, 2015 12:55
tmux configs
unbind % #zrusi zakladni klavesu pro rozdeleni okna
bind | split-window -h #pres | rozdeleni obrazovky vertikalne
bind - split-window -v #pres - rozdeleni obrazovky horizontalne
bind c new-window -c "$HOME" #new windows will be in home folder
#posledni pouzite
bind C-b last-window #posledni pouzite okno
bind C-v last-pane #posledni pouzity panel
#jednodussi ovladani
bind -n S-down new-window