Skip to content

Instantly share code, notes, and snippets.

View TheLevti's full-sized avatar
🎯
Focusing

Petr Levtonov TheLevti

🎯
Focusing
View GitHub Profile
@TheLevti
TheLevti / keybase.md
Created September 10, 2019 07:08
Keybase verification.

Keybase proof

I hereby claim:

  • I am thelevti on github.
  • I am thelevti (https://keybase.io/thelevti) on keybase.
  • I have a public key ASCcbzcx-vmirumrnGAYi5RfJolMavYWhmEWHCpbBaFckgo

To claim this, I am signing this object:

@TheLevti
TheLevti / .bashrc
Created October 6, 2018 08:51
Ubuntu ~/.bashrc additions and modifications
# Add this function before the following if statement.
parse_git_branch() {
git rev-parse --abbrev-ref HEAD 2> /dev/null | sed -e 's/\(.*\)/(\1)/'
}
# Replace the if statement.
if [ "$color_prompt" = yes ]; then
PS1='\[\033[01;34m\][\w]\[\033[31m\]$(parse_git_branch)\[\033[00m\]\n${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]\$ '
else
PS1='[\w]$(parse_git_branch)\n${debian_chroot:+($debian_chroot)}\u@\h\$ '
@TheLevti
TheLevti / .gitconfig
Last active October 6, 2018 08:46
Personal .gitconfig with gitflow aliases and diff-so-fancy as pager
[user]
name = John Doe
email = john@dow.com
signingkey = ABCDEFGHIJKLMNOPQRSTUVWXYZ
[core]
editor = vim
pager = diff-so-fancy | less --tabs=4 -RFX --pattern '^(Date|added|deleted|modified): '
excludesfile = /home/john/.gitignore_global
[color]
ui = true
@TheLevti
TheLevti / .gitignore_global
Created September 24, 2018 18:45
Linux .gitignore_global using VS Code
# Ansible
*.retry
# It's better to unpack these files and commit the raw source because
# git has its own built in compression methods.
*.7z
*.jar
*.rar
*.zip
*.gz