Skip to content

Instantly share code, notes, and snippets.

/*
* Sourced from Smashing Magazine article:
* http://coding.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/
*/
/*
* Absolutely centered on the page (both horizontally and vertically).
* You can place your content block inside of a position: relative container
* to perfectly center your content within the container.
*/
@iliafrenkel
iliafrenkel / gist:a55f690a02b6efd4155cabbebffb7e2d
Created August 6, 2019 01:44
Git log in one line with branches and pretty print
git config --global alias.logline "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git logline
@iliafrenkel
iliafrenkel / .tmux.conf
Created November 7, 2019 08:00
My tmux configuration
# https://github.com/tony/tmux-config/blob/master/.tmux.conf
# Change the default prefix from <Ctrl>+b to <Ctrl>+a
set-option -g prefix C-a
# default window title colors
set-window-option -g window-status-style fg=colour244,bg=default,dim # fg=base0
# active window title colors
set-window-option -g window-status-current-style fg=colour166,bg=default,bright # fg=orange
@iliafrenkel
iliafrenkel / .vimrc
Last active February 14, 2020 03:59
My .vimrc configuration
" Set compatibility to Vim only.
set nocompatible
" Helps force plug-ins to load correctly when it is turned back on below.
filetype off
" Disable swap files
set noswapfile
" Search down into subfolders