Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / vconsole.conf
Created January 28, 2017 16:35
/etc/vconsole.conf
LOCALE="ru_RU.UTF-8"
KEYMAP="ru"
FONT="ter-v16v"
CONSOLEMAP=""
@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 / rc.lua
Created January 21, 2017 05:37
Awesome WM 4 configuration
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
local vicious = require("vicious")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
@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
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 / .xinitrc
Last active November 9, 2017 10:54
#!/bin/sh
#
# ~/.xinitrc
#
[ -f /etc/xprofile ] && source /etc/xprofile
[ -f ~/.xprofile ] && source ~/.xprofile
udiskie &
pulseaudio --start &
@aawray
aawray / howto_be_better_improviser.txt
Last active August 29, 2015 14:09
Улучшай импровизацию (Dan Goldstein, 2009)
Автор: Dan Goldstein. Первая публикация в 1996, последняя 2009.
Ниже перечислены базовые правила большого пальца (закономерности выявленные опытным путём) в импровизации.
* = Ключевые идеи. Мастера импровизации делают это не задумываясь.
ПРИНИМАЙ ИНФОРМАЦИЮ: ДА И *
Когда ты получил некоторую информацию от другого участника, то примии её как факт и добавь к ней ещё подробностей. Если кто-то говорит, что ты в юбке, то скажи им, что это именно так и эта юбка была сшита здесь в клубе. Продолжай делать это в меру и получишь атмосферу наполненную очаровательными фактами, объектами и связями. Не сможешь - тебя возненавидят все, даже родители.