Skip to content

Instantly share code, notes, and snippets.

@aawray
aawray / vconsole.conf
Created January 28, 2017 16:35
/etc/vconsole.conf
LOCALE="ru_RU.UTF-8"
KEYMAP="ru"
FONT="ter-v16v"
CONSOLEMAP=""
@aawray
aawray / grub_cfg_patch
Created January 21, 2018 07:50
Fix for warnings drm_kms_helper, flip_done timed out (Dell with linux kernel)
$ vim /etc/default/grub:
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=SVIDEO-1:d"
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
@aawray
aawray / .zshrc
Last active January 22, 2018 07:17
#set +o history
fc -p
export BROWSER=/usr/bin/firefox
export EDITOR=/usr/bin/vim
export VISUAL=/usr/bin/vim
export TMP="$HOME/.tmp"
export TEMP="$TMP"
export TMPDIR="$TMP"
@aawray
aawray / .bashrc
Created January 21, 2018 08:58
Bash empty history configuration
history -c
shopt -u -o history
set +o history
@aawray
aawray / journald.conf
Created January 21, 2018 08:01
Systemd journald in-memory logs configuration
[Journal]
Storage=volatile
Compress=yes
RateLimitIntervalSec=10s
RateLimitBurst=100
SystemMaxUse=4M
SystemMaxFiles=7
ForwardToSyslog=no
ForwardToKMsg=no
ForwardToConsole=no
@aawray
aawray / .vimrc
Last active November 9, 2017 10:55
set nocompatible
filetype plugin on
set background=dark
set cursorline
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set fileencodings=utf8,cp1251,koi8r,cp866,ucs-2le
@aawray
aawray / .xinitrc
Last active November 9, 2017 10:54
#!/bin/sh
#
# ~/.xinitrc
#
[ -f /etc/xprofile ] && source /etc/xprofile
[ -f ~/.xprofile ] && source ~/.xprofile
udiskie &
pulseaudio --start &
if (!String.prototype.hash) {
/**
* Calculate a 32 bit FNV-1a hash
* Found here: https://gist.github.com/vaiorabbit/5657561
* Ref.: http://isthe.com/chongo/tech/comp/fnv/
*
* @param {string} str the input value
* @param {boolean} [asString=false] set to true to return the hash value as
* 8-digit hex string instead of an integer
* @param {number} [seed] optionally pass the hash of the previous chunk
@aawray
aawray / 00-xorg-keyboard.conf
Created January 28, 2017 16:34
Xorg keyboard config
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us,ru"
Option "XkbModel" "pc104"
Option "XkbOptions" "grp:caps_toggle,grp_led:scroll"
EndSection
@aawray
aawray / awesome_widgets.lua
Last active January 21, 2017 05:40
Awesome WM additional widgets #1
-- Standard awesome library
local awful = require("awful")
local vicious = require("vicious")
-- Widget and layout library
local wibox = require("wibox")
---wibox2
--
-- Memory