Skip to content

Instantly share code, notes, and snippets.

View borodiychuk's full-sized avatar

Andriy Borodiychuk borodiychuk

View GitHub Profile

Keybase proof

I hereby claim:

  • I am borodiychuk on github.
  • I am borodiychuk (https://keybase.io/borodiychuk) on keybase.
  • I have a public key ASD36-qiMYKIDFnK5avSBGGH8i90ohILqKHIlXhKuvLEBwo

To claim this, I am signing this object:

@borodiychuk
borodiychuk / .gitconfig
Created June 29, 2017 21:09
Friendly git log with `git glog`
[alias]
glog = log --graph --abbrev-commit --decorate --all --format=format:\"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)\"
@borodiychuk
borodiychuk / envelope-dl-at.tex
Last active August 29, 2015 14:02
The markup of window area and folding lines at A4 paper for envelopes of DL format.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% This file defines a DL-envelope markup %%
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Corners for the client's details
@borodiychuk
borodiychuk / envelope-dl.tex
Last active January 1, 2016 09:59
Markup for DL envelopes: address field and folding lines
%
% Address
%
\begin{textblock}{93}(14,47) % minus 1 mm
\vspace*{38mm} % minus 1 mm
\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\linethickness{0.075mm}
% Left bottom
@borodiychuk
borodiychuk / gist:4348835
Created December 20, 2012 21:44
Pretty and colored bash prompt.
export PROMPT_COMMAND='PS1="\[\033[0;33m\]\!\[\033[1;30m\]|\[\033[1;34m\]\$(date +%H:%M)\[\033[1;30m\]|\`if [[ $? = "0" ]]; then echo "\\[\\033[32m\\]"; else echo "\\[\\033[31m\\]"; fi\`\u.\h\[\033[1;30m\]:\[\033[1;37m\]\`if [[ `pwd|wc -c|tr -d " "` > 18 ]]; then echo "\\W"; else echo "\\w"; fi\` \`if [[ "`id -u`" = "0" ]]; then echo "\\[\\033[31m\\]"; else echo "\\[\\033[32m\\]"; fi\`\\$\[\033[0;0m\] "; echo -ne "\033]0;`hostname -s`:`pwd`\007"'