Skip to content

Instantly share code, notes, and snippets.

@Endevir
Endevir / tmux.conf
Last active March 21, 2025 18:23
My tmux.conf
# 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
@Endevir
Endevir / .vimrc
Last active October 30, 2023 10:36
My simple vimrc
set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
set smartindent
set bg=dark
set nowrap
set nu
map <F2> :retab <CR> :wq! <CR>
map <F3> :set ff=unix <CR> :w <CR>
@Endevir
Endevir / .zshrc
Last active October 22, 2025 17:52
ZSHA_BASE=$HOME/.zsh
[[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'
DISABLE_MAGIC_FUNCTIONS=true # https://stackoverflow.com/questions/25614613/how-to-disable-zsh-substitution-autocomplete-with-url-and-backslashes
zstyle ':omz:alpha:lib:git' async-prompt no # https://github.com/ohmyzsh/ohmyzsh/issues/12328#issuecomment-2043492331
source $ZSHA_BASE/antigen.zsh
HIST_STAMPS="dd.mm.yyyy"
UPDATE_ZSH_DAYS="30"
COMPLETION_WAITING_DOTS="true"
# Usage: prompt-length TEXT [COLUMNS]
#
# If you run `print -P TEXT`, how many characters will be printed
# on the last line?
#
# Or, equivalently, if you set PROMPT=TEXT with prompt_subst
# option unset, on which column will the cursor be?
#
# The second argument specifies terminal width. Defaults to the
# real terminal width.
diff -ruNp linux-5.4.42/arch/x86/ia32/sys_ia32.c linux-5.4.42-cher1/arch/x86/ia32/sys_ia32.c
--- linux-5.4.42/arch/x86/ia32/sys_ia32.c 2020-05-20 09:20:41.000000000 +0300
+++ linux-5.4.42-cher1/arch/x86/ia32/sys_ia32.c 2020-08-22 10:28:40.182204939 +0300
@@ -97,12 +97,26 @@ static int cp_stat64(struct stat64 __use
return 0;
}
+int cher_patch_is_secure_path(const char *);
+
COMPAT_SYSCALL_DEFINE2(x86_stat64, const char __user *, filename,
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.4.42-cher1 Kernel Configuration
#
#
# Compiler: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
#
CONFIG_CC_IS_GCC=y