Skip to content

Instantly share code, notes, and snippets.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
git config --global alias.lcrev 'log --reverse --no-merges --stat @{1}..'
git config --global alias.drev 'diff @{1}..'
tar --exclude="images" --exclude="*.tar.gz" -zcvf base.tar.gz ./*
@aawray
aawray / howto_be_better_improviser.txt
Last active August 29, 2015 14:09
Улучшай импровизацию (Dan Goldstein, 2009)
Автор: Dan Goldstein. Первая публикация в 1996, последняя 2009.
Ниже перечислены базовые правила большого пальца (закономерности выявленные опытным путём) в импровизации.
* = Ключевые идеи. Мастера импровизации делают это не задумываясь.
ПРИНИМАЙ ИНФОРМАЦИЮ: ДА И *
Когда ты получил некоторую информацию от другого участника, то примии её как факт и добавь к ней ещё подробностей. Если кто-то говорит, что ты в юбке, то скажи им, что это именно так и эта юбка была сшита здесь в клубе. Продолжай делать это в меру и получишь атмосферу наполненную очаровательными фактами, объектами и связями. Не сможешь - тебя возненавидят все, даже родители.
#!/bin/bash
/usr/bin/reflector --verbose -l 50 --country 'Sweden' --country 'Russian Federation' --country 'Finland' --country 'Poland' --country 'Estonia' --sort rate --save /etc/pacman.d/mirrorlist
Two Ball Siteswaps
34030 123 41131 314202 52012 5201 (4,4)00 (0,4)(4,0) (4,0)
Three Ball Siteswaps
441 423 504 531 5511 51414 51234 52413 52440 52512 53034 53403 55014 5505051 61251 61305 61314 61350 63051 63141 63501 64005 64014 64050 64140 64500 66300 6050505 6131451 6161601 6316131 711 7131 7401 70161 70251 70305 70314 70350 70701 72330 73131 73302 73401 74130 74400 75300 713151 71701701 801 8040 8130 (4)84012(2) 8123601 (6)9111(330) (45)90141(30) (5)9140(2) (45)90303(30) (45)90501(30)
Four Ball Siteswaps
53 552 534 5551 55514 55550 615 633 642 660 6424 61355 62345 62525 62561 63353 63524 63551 63623 64055 64145 64163 64253 64505 64613 64514 66125 61616 66305 66314 66350 6155155 6262525 6461641 71 714 723 741 7126 7333 7405 7441 (5)70166(3) (5)70256(3) (5)70355(3) (5)70364(3) (55)70616(2) (55)70625(2) (55)70661(1) (56)70706(23) (5)72335(3) (5)72461(3) 73136 73406 73424 72416 72425 73451 73631 74135 (5)74162(3) 74234 74450 74612 74630 (5)75161(3) 75251 75314 75611 7261246 7123456 7161616 7427242 7471414 7
@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
@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
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