Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description="HashiCorp Vault - A tool for managing secrets" Documentation=https://www.vaultproject.io/docs/
Requires=network-online.target
StartLimitBurst=3
[Service]
User=andy
PrivateDevices=yes
PrivateTmp=yes
let mapleader = ","
:map <leader>f :action SearchEverywhere<CR>
:map <leader>r :action Replace<CR>
:map <leader>l :action NextTab<CR>
:map <leader>h :action PreviousTab<CR>
:map <leader>e :action CloseActiveTab<CR>
:map <leader>g :action ReformatCode<CR>
:map <leader>, :action SaveAll<CR>
# Setup fzf
# ---------
if [[ ! "$PATH" == */home/azak/.fzf/bin* ]]; then
export PATH="$PATH:/home/azak/.fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/home/azak/.fzf/shell/completion.zsh" 2> /dev/null
# 0 is too far from ` ;)
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -g prefix C-a
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/azak/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
if &compatible
set nocompatible " Be iMproved
endif
" sets virtualenv
let g:python3_host_prog = '/home/azak/env/bin/python'
" Required:
set runtimepath+=/home/azak/.cache/dein/repos/github.com/Shougo/dein.vim
set runtimepath+=/home/azak/.fzf
# Advanced Aliases.
# Use with caution
#
# exa, the common ones I use a lot shortened for rapid fire usage
alias l='exa -lFh' #size,show type,human readable
alias la='exa -laFh -snew' #long list,show almost all,show type,human readable
alias lr='exa -RFh -snew' #sorted by date,recursive,show type,human readable
alias lt='exa -lFh -snew' #long list,sorted by date,show type,human readable
alias ll='exa -lh' #long list
Metrics/LineLength:
Max: 160
@azak-azkaran
azak-azkaran / pycodestyle
Created September 26, 2018 11:16
pycodesyle default config
[pycodestyle]
count = False
ignore = E226,E302,E41
max-line-length = 160
statistics = True
@azak-azkaran
azak-azkaran / init.vim
Last active November 27, 2018 09:19
Neovim configuration
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/azak/.cache/dein/repos/github.com/Shougo/dein.vim
set runtimepath+=/home/azak/.fzf
" Required:
if dein#load_state('/home/azak/.cache/dein')