Skip to content

Instantly share code, notes, and snippets.

View jkonecny12's full-sized avatar

Jiri Konecny jkonecny12

View GitHub Profile
@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
@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 / 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 / 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
# "Conky Launchpad" #
# / \
# ___/ \_________________________________________________________________________________________________________________________________________________
#|##################################################################################################################|
#|##################################################################################################################|
#|###################################### Design by freeazy aka ivan90112 > ivan90112@gmail.com ################################|
#|##################################################################################################################|
#|##################################################################################################################|
#|##################################################################################################################|
@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=
@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 / 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 / Space_requirement_check_in_Anaconda_reworked_for_Fedora_23.rst
Last active September 27, 2017 13:12
Space requirement check in Anaconda reworked for Fedora 23

Before the release of [Fedora 23](https://fedoramagazine.org/fedora-23-released/) I was working on a bug which have caused Anaconda to fail the installation because of RPM transaction check error. This brought me to the investigation of the required space check. It eventually lead to complete rework of the space requirement check in Anaconda. I would like to explain why this was needed and how is it working now.

#### The problem of the old space check The old solution was really minimalistic. It read installed size of all required packages from [DNF](http://dnf.baseurl.org/) Python interface and then added 35 percent as a 'bonus'. Why 35 percent? It is hard to tell. The number seems to be the result of some old empiric testing - too old to know for sure. And why to use 'bonus' at all? Because the value obtained from DNF is only a portion of space which is really needed for the installation. DNF computes installed package size as a sum of all file sizes in a package. It looks somewhat reasonable but it is sti

@jkonecny12
jkonecny12 / Multi_selection_in_Anaconda.md
Last active September 27, 2017 13:09
Multi selection in Anaconda

Exciting news people! Anaconda now has the desired multiselection in Custom storage spoke which was required for a long time. You can try it in Fedora 24 alpha and Rawhide. I know, it should have been there already but there were way too many other issues to settle before this one.

You can now use SHIFT+click and CTRL+click on multiple items. And you can then remove all selected items at once. This should be really nice for those using snapshots or many partitions.

I hope you will like this and please contact me if you are missing any other feature. I would like to help you with any future Anaconda issue.

Multiselection

Multiselection-1