├── xdg ├── .config │ ├── user-dirs.locale │ ├── user-dirs.dirs │ └── mimeapps.list └── .local │ └── share │ └── applications │ ├── whatsapp.desktop │ ├── wfh.desktop │ ├── twitch.desktop │ ├── tmux.desktop │ ├── playonlinux.desktop │ ├── ringcentral.desktop │ ├── ncmpcpp.desktop │ ├── firefox.desktop │ └── zathura.desktop ├── i3 ├── .dmrc ├── bin │ ├── i3_help.sh │ ├── i3_empty_workspace.sh │ ├── urxvttilda.sh │ ├── i3_workspace.sh │ └── i3exit └── .config │ └── roficlip │ └── settings ├── wfh ├── .pcoip.rc ├── .config │ └── Teradici │ │ └── Teradici PCoIP Client.ini └── bin │ └── wfh ├── twitch └── bin │ └── optivlc ├── zathura └── .config │ └── zathura │ └── zathurarc ├── install.zsh ├── profile ├── bin │ └── initssh └── .zprofile ├── .assets ├── rofi.png ├── tmux.jpg ├── neofetch.png ├── polybar.jpg ├── polybar2.jpg ├── zshprompt.jpg └── startscreen.jpg ├── python ├── .config │ └── flake8 ├── .virtualenv │ └── postmkvirtualenv ├── .cookiecutterrc ├── .pdbrc.py └── .pdbrc ├── alsa └── .asoundrc ├── backup └── .config │ └── backblaze │ └── restic │ ├── include │ ├── exclude │ └── run_backup.sh ├── emacs └── .spacemacs.d │ ├── private │ ├── storax-erc │ │ ├── layers.el │ │ ├── funcs.el │ │ └── README.org │ ├── storax-semantic │ │ ├── layers.el │ │ └── packages.el │ ├── storax-helm-icons │ │ ├── layers.el │ │ └── funcs.el │ ├── storax-powerline │ │ ├── layers.el │ │ ├── images │ │ │ ├── wl-decrypt-fail.svg │ │ │ ├── wl-decrypt-success.svg │ │ │ ├── mark-github.svg │ │ │ ├── wl-verify-fail.svg │ │ │ ├── wl-verify-success.svg │ │ │ └── spotify.svg │ │ ├── packages.el │ │ └── config.el │ ├── storax-major-mode-icons │ │ ├── layers.el │ │ └── funcs.el │ ├── storax-org │ │ ├── warning.wav │ │ ├── java │ │ │ ├── ditaa.jar │ │ │ └── plantuml.jar │ │ ├── capture │ │ │ └── habit.org │ │ ├── org-page-themes │ │ │ └── storax │ │ │ │ ├── resources │ │ │ │ └── img │ │ │ │ │ └── search.png │ │ │ │ └── templates │ │ │ │ ├── post.mustache │ │ │ │ ├── container.mustache │ │ │ │ ├── tag.mustache │ │ │ │ ├── tag-index.mustache │ │ │ │ ├── category-index.mustache │ │ │ │ ├── about.mustache │ │ │ │ ├── header.mustache │ │ │ │ ├── index.mustache │ │ │ │ └── nav.mustache │ │ ├── org-git-sync.sh │ │ ├── lob.org │ │ ├── templates │ │ │ └── rtd │ │ │ │ └── styles │ │ │ │ └── lib │ │ │ │ └── js │ │ │ │ └── stickytableheaders-license.txt │ │ └── config.el │ ├── storax-dash │ │ ├── img │ │ │ └── dash-256.png │ │ ├── config.el │ │ └── README.org │ ├── storax-helm │ │ ├── img │ │ │ └── helm-logo.png │ │ ├── config.el │ │ ├── README.org │ │ ├── funcs.el │ │ └── packages.el │ ├── storax-secret │ │ ├── secret.el.gpg │ │ ├── config.el │ │ └── funcs.el │ ├── storax-icons │ │ ├── images │ │ │ ├── mpc-left.png │ │ │ ├── mpc-right.png │ │ │ ├── mpc-small.png │ │ │ ├── snowflake.png │ │ │ ├── snowflake-left.png │ │ │ ├── snowflake-right.png │ │ │ ├── mpc-left-with-text.png │ │ │ ├── md.svg │ │ │ ├── git-commit.svg │ │ │ ├── pdf.svg │ │ │ ├── folder.svg │ │ │ ├── image.svg │ │ │ ├── file.svg │ │ │ ├── mail.svg │ │ │ ├── git-diff.svg │ │ │ ├── git-merge.svg │ │ │ ├── wl-decrypt-fail.svg │ │ │ ├── wl-decrypt-success.svg │ │ │ ├── xml.svg │ │ │ ├── mark-github.svg │ │ │ ├── css.svg │ │ │ ├── qss.svg │ │ │ ├── git-stash.svg │ │ │ ├── movie.svg │ │ │ ├── wl-verify-fail.svg │ │ │ ├── wl-verify-success.svg │ │ │ ├── help.svg │ │ │ ├── rst.svg │ │ │ ├── shell.svg │ │ │ ├── txt.svg │ │ │ ├── aqua-left-mesh.svg │ │ │ ├── aqua-right-mesh.svg │ │ │ ├── db.svg │ │ │ ├── git.svg │ │ │ ├── spotify.svg │ │ │ ├── archive.svg │ │ │ ├── py.svg │ │ │ ├── java.svg │ │ │ ├── cl.svg │ │ │ ├── el.svg │ │ │ └── ruby.svg │ │ └── README.org │ ├── storax-mode-icons │ │ └── icons │ │ │ ├── scheme.xpm │ │ │ ├── bibtex.xpm │ │ │ ├── bash.xpm │ │ │ ├── dim.xpm │ │ │ ├── js.xpm │ │ │ ├── yas.xpm │ │ │ ├── svg.xpm │ │ │ ├── go.xpm │ │ │ ├── term.xpm │ │ │ ├── coffee.xpm │ │ │ ├── css.xpm │ │ │ ├── xml.xpm │ │ │ └── haml.xpm │ ├── storax-python │ │ └── config.el │ ├── storax-flycheck │ │ ├── config.el │ │ └── README.org │ ├── storax-yasnippet │ │ ├── README.org │ │ └── packages.el │ ├── storax-dabbrev │ │ ├── packages.el │ │ └── README.org │ ├── storax-utils │ │ └── README.org │ ├── storax-unkillable-scratch │ │ ├── README.org │ │ └── packages.el │ ├── storax-lame │ │ └── README.org │ ├── storax-popup │ │ └── packages.el │ ├── storax-hydra │ │ └── packages.el │ ├── storax-smartparens │ │ ├── packages.el │ │ └── README.org │ ├── storax-visual-regexp-steroids │ │ └── packages.el │ ├── storax-translate │ │ └── packages.el │ ├── storax-fold-dwim │ │ ├── packages.el │ │ └── README.org │ ├── storax-typescript │ │ └── packages.el │ ├── storax-latex │ │ ├── funcs.el │ │ └── packages.el │ ├── storax-magit │ │ └── packages.el │ ├── storax-avy │ │ └── README.org │ ├── storax-notmuch │ │ └── packages.el │ ├── storax-i3 │ │ └── packages.el │ ├── storax-dired │ │ └── packages.el │ ├── storax-go │ │ └── packages.el │ └── storax-prodigy │ │ └── packages.el │ └── snippets │ ├── python-mode │ ├── loggername │ ├── list │ ├── pdb │ ├── shebang │ ├── gen │ ├── loge │ ├── from │ ├── logging │ ├── dict │ ├── param │ ├── try │ ├── sphinxlink │ ├── dec │ ├── prop │ ├── defg │ ├── def │ ├── defm │ └── class │ ├── org-mode │ ├── img │ └── report │ ├── emacs-lisp-mode │ ├── boil │ └── layer │ ├── rst-mode │ └── tit │ └── conf-space-mode │ └── i3-mode ├── wallpaper └── .img │ ├── mrrobot.png │ └── annapuma.jpg ├── fonts └── .local │ └── share │ └── fonts │ ├── octicons.ttf │ ├── FontAwesome.otf │ ├── file-icons.ttf │ ├── NotoSans-Bold.ttf │ ├── octicons-local.ttf │ ├── NotoSans-Italic.ttf │ ├── NotoSans-Regular.ttf │ ├── SourceCodePro-It.otf │ ├── NotoSans-BoldItalic.ttf │ ├── SourceCodePro-Black.otf │ ├── SourceCodePro-Bold.otf │ ├── SourceCodePro-Light.otf │ ├── MaterialIcons-Regular.ttf │ ├── SourceCodePro-BlackIt.otf │ ├── SourceCodePro-BoldIt.otf │ ├── SourceCodePro-LightIt.otf │ ├── SourceCodePro-Medium.otf │ ├── SourceCodePro-MediumIt.otf │ ├── SourceCodePro-Regular.otf │ ├── SourceCodePro-Semibold.otf │ ├── SourceCodePro-ExtraLight.otf │ ├── SourceCodePro-SemiboldIt.otf │ ├── Sauce Code Powerline Black.otf │ ├── Sauce Code Powerline Bold.otf │ ├── Sauce Code Powerline Light.otf │ ├── Sauce Code Powerline Medium.otf │ ├── SourceCodePro-ExtraLightIt.otf │ ├── Sauce Code Powerline Regular.otf │ ├── Sauce Code Powerline Semibold.otf │ ├── Sauce Code Powerline ExtraLight.otf │ ├── Sauce Code Pro Nerd Font Complete.ttf │ ├── Sauce Code Pro Black Nerd Font Complete.ttf │ ├── Sauce Code Pro Light Nerd Font Complete.ttf │ ├── Sauce Code Pro Medium Nerd Font Complete.ttf │ ├── Sauce Code Pro ExtraLight Nerd Font Complete.ttf │ └── Sauce Code Pro Semibold Nerd Font Complete Mono.ttf ├── startpage └── .startpage │ └── SauceCodePro.ttf ├── gentoo └── bin │ ├── eupdate │ ├── livechroot │ └── kernelmake ├── zsh ├── .zsh.d │ ├── completions │ │ ├── _kubens │ │ ├── _kubectx │ │ ├── _wtf │ │ └── _wtfvar │ ├── environment.zsh │ ├── k8s.zsh │ ├── functions │ │ └── gentoo.zsh │ ├── history.zsh │ ├── tmux.zsh │ ├── bindkey.zsh │ ├── colors.zsh │ ├── setopt.zsh │ ├── pyenv.zsh │ ├── vim.zsh │ └── zplug.zsh └── .zshrc ├── polybar ├── .config │ └── polybar │ │ ├── toggle_bluetooth.sh │ │ ├── bluetooth_info.sh │ │ └── bluetooth.sh └── bin │ └── launch_polybar.sh ├── gtk ├── .config │ ├── gtk-2.0 │ │ └── gtkfilechooser.ini │ └── gtk-3.0 │ │ └── settings.ini └── .gtkrc-2.0 ├── git └── .gitconfig ├── fun └── bin │ ├── restart-on-change │ ├── plymouthtest │ ├── colors │ ├── colorbars │ └── colorscheme ├── finance └── .icsv2ledgerrc ├── .gitignore ├── notmuch ├── .notmuch │ └── hooks │ │ ├── pre-new │ │ └── post-new └── .notmuch-config ├── gdb └── .gdbinit ├── xmodmap └── .Xmodmap ├── dunst └── bin │ └── dunstreload ├── haskell └── .ghci ├── htop └── .config │ └── htop │ └── htoprc ├── parcellite └── .config │ └── parcellite │ └── parcelliterc ├── ncmpcpp └── .ncmpcpp │ └── config ├── tmux └── .local │ └── share │ └── icons │ ├── ringcentral-office.svg │ └── tmux.svg ├── firewall └── bin │ └── iptablesrules.sh ├── vim └── .SpaceVim.d │ └── init.toml ├── x11 └── .xinitrc └── rofi └── bin └── roficlip /xdg/.config/user-dirs.locale: -------------------------------------------------------------------------------- 1 | en_US -------------------------------------------------------------------------------- /i3/.dmrc: -------------------------------------------------------------------------------- 1 | [Desktop] 2 | Session=i3 3 | -------------------------------------------------------------------------------- /wfh/.pcoip.rc: -------------------------------------------------------------------------------- 1 | pcoip.enable_hw_h264 = 1 2 | -------------------------------------------------------------------------------- /twitch/bin/optivlc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | optirun cvlc "$@" 3 | -------------------------------------------------------------------------------- /zathura/.config/zathura/zathurarc: -------------------------------------------------------------------------------- 1 | set selection-clipboard clipboard 2 | -------------------------------------------------------------------------------- /install.zsh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | 3 | for d in *(/); stow -v -t ~/ -S $d 4 | -------------------------------------------------------------------------------- /profile/bin/initssh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | ssh-add ~/.ssh/id_github4096_rsa 3 | -------------------------------------------------------------------------------- /.assets/rofi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/.assets/rofi.png -------------------------------------------------------------------------------- /.assets/tmux.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/.assets/tmux.jpg -------------------------------------------------------------------------------- /python/.config/flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | ignore = E1,E2,E5 3 | max-line-length = 120 4 | -------------------------------------------------------------------------------- /wfh/.config/Teradici/Teradici PCoIP Client.ini: -------------------------------------------------------------------------------- 1 | [General] 2 | start_windowed=1 3 | -------------------------------------------------------------------------------- /.assets/neofetch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/.assets/neofetch.png -------------------------------------------------------------------------------- /.assets/polybar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/.assets/polybar.jpg -------------------------------------------------------------------------------- /.assets/polybar2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/.assets/polybar2.jpg -------------------------------------------------------------------------------- /.assets/zshprompt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/.assets/zshprompt.jpg -------------------------------------------------------------------------------- /.assets/startscreen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/.assets/startscreen.jpg -------------------------------------------------------------------------------- /alsa/.asoundrc: -------------------------------------------------------------------------------- 1 | defaults.pcm.!card PCH 2 | defaults.pcm.!device 0 3 | defaults.pcm.!ctl PCH 4 | -------------------------------------------------------------------------------- /backup/.config/backblaze/restic/include: -------------------------------------------------------------------------------- 1 | /home 2 | /etc 3 | /root 4 | /boot 5 | /media/data 6 | -------------------------------------------------------------------------------- /python/.virtualenv/postmkvirtualenv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/zsh 2 | pip install -U pip 3 | pip install tox 4 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-erc/layers.el: -------------------------------------------------------------------------------- 1 | (configuration-layer/declare-layer 'storax-secret) 2 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-semantic/layers.el: -------------------------------------------------------------------------------- 1 | (configuration-layer/declare-layer 'semantic) 2 | -------------------------------------------------------------------------------- /wallpaper/.img/mrrobot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/wallpaper/.img/mrrobot.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-helm-icons/layers.el: -------------------------------------------------------------------------------- 1 | (configuration-layer/declare-layer 'storax-icons) 2 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/layers.el: -------------------------------------------------------------------------------- 1 | (configuration-layer/declare-layer 'storax-icons) 2 | -------------------------------------------------------------------------------- /wallpaper/.img/annapuma.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/wallpaper/.img/annapuma.jpg -------------------------------------------------------------------------------- /wfh/bin/wfh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | sudo openfortivpn & 3 | /usr/NX/bin/nxplayer 4 | sudo pkill openfortivpn 5 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-major-mode-icons/layers.el: -------------------------------------------------------------------------------- 1 | (configuration-layer/declare-layer 'storax-icons) 2 | -------------------------------------------------------------------------------- /fonts/.local/share/fonts/octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/octicons.ttf -------------------------------------------------------------------------------- /startpage/.startpage/SauceCodePro.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/startpage/.startpage/SauceCodePro.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/file-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/file-icons.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/NotoSans-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/NotoSans-Bold.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/octicons-local.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/octicons-local.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/NotoSans-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/NotoSans-Italic.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/NotoSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/NotoSans-Regular.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-It.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-It.otf -------------------------------------------------------------------------------- /gentoo/bin/eupdate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | eix-sync 4 | mount /boot 5 | exec emerge --update --deep --newuse -av --with-bdeps=y @world 6 | -------------------------------------------------------------------------------- /fonts/.local/share/fonts/NotoSans-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/NotoSans-BoldItalic.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-Black.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-Black.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-Bold.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-Light.otf -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/warning.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-org/warning.wav -------------------------------------------------------------------------------- /fonts/.local/share/fonts/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-BlackIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-BlackIt.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-BoldIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-BoldIt.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-LightIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-LightIt.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-Medium.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-MediumIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-MediumIt.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-Regular.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-Semibold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-Semibold.otf -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/java/ditaa.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-org/java/ditaa.jar -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-ExtraLight.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-ExtraLight.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-SemiboldIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-SemiboldIt.otf -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-dash/img/dash-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-dash/img/dash-256.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-helm/img/helm-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-helm/img/helm-logo.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/java/plantuml.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-org/java/plantuml.jar -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-secret/secret.el.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-secret/secret.el.gpg -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Powerline Black.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Powerline Black.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Powerline Bold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Powerline Bold.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Powerline Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Powerline Light.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Powerline Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Powerline Medium.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/SourceCodePro-ExtraLightIt.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/SourceCodePro-ExtraLightIt.otf -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/loggername: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: logger_name 3 | # key: ln 4 | # -- 5 | log = logging.getLogger(${1:__name__}) 6 | -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Powerline Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Powerline Regular.otf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Powerline Semibold.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Powerline Semibold.otf -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/mpc-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-icons/images/mpc-left.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/mpc-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-icons/images/mpc-right.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/mpc-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-icons/images/mpc-small.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/snowflake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-icons/images/snowflake.png -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Powerline ExtraLight.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Powerline ExtraLight.otf -------------------------------------------------------------------------------- /i3/bin/i3_help.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DURATION=5000 4 | ICON=/usr/share/icons/Numix/48/actions/help.svg 5 | 6 | notify-send -t $DURATION -i $ICON "${1}" "${2}" 7 | -------------------------------------------------------------------------------- /zsh/.zsh.d/completions/_kubens: -------------------------------------------------------------------------------- 1 | #compdef kubens kns=kubens 2 | _arguments "1: :(- $(kubectl get namespaces -o=jsonpath='{range .items[*].metadata.name}{@}{"\n"}{end}'))" 3 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/list: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: list 3 | # key: li 4 | # group : definitions 5 | # -- 6 | [${1:el} for $1 in ${2:list}]$0 7 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/pdb: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | #name : pdb 3 | #key : pdb 4 | #contributor : David Zuber 5 | # -- 6 | import pdb; pdb.set_trace() 7 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/shebang: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: #!/usr/bin/env python 3 | # key: #! 4 | # group: Header 5 | # -- 6 | #!/usr/bin/env python 7 | -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Pro Nerd Font Complete.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Pro Nerd Font Complete.ttf -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/snowflake-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-icons/images/snowflake-left.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/snowflake-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-icons/images/snowflake-right.png -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Pro Black Nerd Font Complete.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Pro Black Nerd Font Complete.ttf -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Pro Light Nerd Font Complete.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Pro Light Nerd Font Complete.ttf -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/mpc-left-with-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-icons/images/mpc-left-with-text.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/gen: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: generator expression 3 | # key: gen 4 | # group : definitions 5 | # -- 6 | (${1:el} for $1 in ${2:list})$0 7 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/loge: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: log exception 3 | # key: loge 4 | # expand-env: ((yas-indent-line 'nil)) 5 | # -- 6 | log.exception("$1")$0 7 | -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Pro Medium Nerd Font Complete.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Pro Medium Nerd Font Complete.ttf -------------------------------------------------------------------------------- /polybar/.config/polybar/toggle_bluetooth.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if bluetoothctl show | grep -q "Powered: yes"; then 3 | bluetoothctl power on 4 | else 5 | bluetoothctl power off 6 | fi 7 | -------------------------------------------------------------------------------- /python/.cookiecutterrc: -------------------------------------------------------------------------------- 1 | default_context: 2 | full_name: "David Zuber" 3 | email: "zuber.david@gmx.de" 4 | website: "http://storax.github.io" 5 | github_username: "storax" 6 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/from: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: from MOD import SYM 3 | # key: from 4 | # group: general 5 | # -- 6 | from ${1:module} import ${2:symbol} 7 | $0 8 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/logging: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: logging 3 | # key: log 4 | # -- 5 | log = logging.getLogger("${1:name}") 6 | log.setLevel(logging.${2:level}) 7 | -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Pro ExtraLight Nerd Font Complete.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Pro ExtraLight Nerd Font Complete.ttf -------------------------------------------------------------------------------- /polybar/.config/polybar/bluetooth_info.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | exec notify-send -i "$(bluetoothctl info | grep Icon | awk '{print $2}')" "$(bluetoothctl info | grep Name | awk '{print $2}')" 3 | -------------------------------------------------------------------------------- /fonts/.local/share/fonts/Sauce Code Pro Semibold Nerd Font Complete Mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/fonts/.local/share/fonts/Sauce Code Pro Semibold Nerd Font Complete Mono.ttf -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/capture/habit.org: -------------------------------------------------------------------------------- 1 | * NEXT %? 2 | SCHEDULED: %(format-time-string "%<<%Y-%m-%d %a .+1d/3d>>") 3 | :PROPERTIES: 4 | :STYLE: habit 5 | :REPEAT_TO_STATE: NEXT 6 | :END: 7 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/dict: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: dictexpression 3 | # key: dicte 4 | # group : definitions 5 | # -- 6 | {${1:key}: ${2:value} for $1 in ${3:collection}}$0 7 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/org-mode/img: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | #name : img 3 | #key : img 4 | #contributor : David Zuber 5 | # -- 6 | #+CAPTION: $1 7 | #+NAME: $2 8 | ${3:`(progn (org-insert-link) nil)`} 9 | -------------------------------------------------------------------------------- /backup/.config/backblaze/restic/exclude: -------------------------------------------------------------------------------- 1 | *.log 2 | *.swp 3 | /home/*/.local/share/Trash 4 | /home/*/.Trash 5 | /home/*/.thumbnails 6 | **.log 7 | **.qlog 8 | /media/data/gentoo/ccache 9 | /media/data/heavy 10 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/resources/img/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/storax/dotfiles/HEAD/emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/resources/img/search.png -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/param: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: Function Parameter 3 | # key: param 4 | # expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil)) 5 | # -- 6 | :param $1:$2 7 | :type $1:$0 -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/try: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: try 3 | # key: try 4 | # expand-env: ((yas-indent-line 'nil)) 5 | # -- 6 | try: 7 | $>${1:pass} 8 | $>except ${2:Exception}: 9 | $>$0 10 | -------------------------------------------------------------------------------- /xdg/.local/share/applications/whatsapp.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Whatsapp 3 | Exec=firefox-bin --new-window https://web.whatsapp.com 4 | Icon=whatsapp 5 | Terminal=false 6 | Type=Application 7 | Categories=Network;WebBrowser; 8 | StartupNotify=true 9 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/sphinxlink: -------------------------------------------------------------------------------- 1 | # -*- utf-8 mode: snippet -*- 2 | # name: Intersphinx link 3 | # key: link 4 | # contributor: David Zuber 5 | # -- 6 | :${1:$$(yas-choose-value '("class" "func" "meth" "data" "mod"))}:\`${2:object}\` -------------------------------------------------------------------------------- /xdg/.local/share/applications/wfh.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Work from Home 3 | GenericName=wfh 4 | Comment=Work from Home 5 | Exec=wfh 6 | Icon=remote-desktop 7 | Terminal=false 8 | Type=Application 9 | Categories=Network;WebBrowser; 10 | StartupNotify=true 11 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/post.mustache: -------------------------------------------------------------------------------- 1 |
{{! content, do NOT indent}} 2 |
3 | {{#title}} 4 |

{{title}}

5 | {{/title}} 6 | {{{content}}} 7 |
8 |
9 | -------------------------------------------------------------------------------- /xdg/.local/share/applications/twitch.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Twitch 3 | Type=Application 4 | Comment=Watch Twitch streams 5 | Exec=twitch 6 | TryExec=twitch 7 | Icon=streamlink-twitch-gui 8 | Categories=AudioVideo;Video; 9 | X-Desktop-File-Install-Version=0.23 10 | -------------------------------------------------------------------------------- /gtk/.config/gtk-2.0/gtkfilechooser.ini: -------------------------------------------------------------------------------- 1 | [Filechooser Settings] 2 | LocationMode=path-bar 3 | ShowHidden=true 4 | ShowSizeColumn=true 5 | GeometryX=0 6 | GeometryY=127 7 | GeometryWidth=780 8 | GeometryHeight=585 9 | SortColumn=name 10 | SortOrder=ascending 11 | StartupMode=recent 12 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/container.mustache: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{{header}}} 4 | 5 | {{{nav}}} 6 | {{{content}}} 7 | {{{footer}}} 8 | 9 | 10 | -------------------------------------------------------------------------------- /git/.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = David Zuber 3 | email = zuber.david@gmx.de 4 | [core] 5 | editor = emacsclient -t -a=\"\" 6 | [alias] 7 | co = checkout 8 | br = branch 9 | ci = commit 10 | st = status 11 | [push] 12 | default = simple 13 | [magit] 14 | hideCampaign = true 15 | -------------------------------------------------------------------------------- /polybar/.config/polybar/bluetooth.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if bluetoothctl show | grep -q "Powered: yes"; then 3 | if bluetoothctl info | grep -q 'Device'; then 4 | echo "%{F#6ca0a3}" 5 | else 6 | echo "%{F#acd0d3}" 7 | fi 8 | else 9 | echo "%{F#dcdccc}" 10 | fi 11 | -------------------------------------------------------------------------------- /fun/bin/restart-on-change: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sigint_handler() 4 | { 5 | kill $PID 6 | exit 7 | } 8 | 9 | trap sigint_handler SIGINT 10 | 11 | while true; do 12 | $@ & 13 | PID=$! 14 | inotifywait -e modify -e move -e create -e delete -e attrib -r `pwd` 15 | kill $PID 16 | done 17 | -------------------------------------------------------------------------------- /finance/.icsv2ledgerrc: -------------------------------------------------------------------------------- 1 | [LLOYDS] 2 | account=Assets:Bank:LLC 3 | currency=GBP 4 | csv_date_format=%d/%m/%Y 5 | ledger_date_format=%Y/%m/%d 6 | mapping_file=/home/david/Documents/banking/ledger/icsv2ledger/ll.mappings 7 | date=1 8 | desc=5 9 | credit=7 10 | debit=6 11 | default_expense=Expenses:Food 12 | -------------------------------------------------------------------------------- /xdg/.local/share/applications/tmux.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Name=tmux 4 | Comment=Terminal multiplexer 5 | Exec=urxvt -e tmux new-session -A -s main 6 | TryExec=tmux 7 | Icon=tmux 8 | Type=Application 9 | Categories=System;TerminalEmulator; 10 | X-Desktop-File-Install-Version=0.23 11 | -------------------------------------------------------------------------------- /xdg/.local/share/applications/playonlinux.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=PlayOnLinux 3 | Type=Application 4 | Comment=Set of scripts to easily install and use Windows games and software 5 | Exec=optirun playonlinux 6 | TryExec=playonlinux 7 | Icon=playonlinux 8 | Categories=Game; 9 | X-Desktop-File-Install-Version=0.23 10 | -------------------------------------------------------------------------------- /xdg/.local/share/applications/ringcentral.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=RingCentral 3 | Comment=Ring Central Launcher 4 | Exec=/home/david/software/ringcentral/opt/ringcentral/RingcentralLauncher 5 | Icon=ringcentral-office 6 | Terminal=false 7 | Type=Application 8 | Categories=Network;Telephony; 9 | StartupNotify=true 10 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/dec: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: dec 3 | # key: dec 4 | # group : definitions 5 | # -- 6 | def ${1:decorator}(func): 7 | """$2""" 8 | @functools.wraps(func) 9 | def decorated(*args, **kwargs): 10 | ret = func(*args, **kwargs) 11 | return ret 12 | 13 | return decorated 14 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/md.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/tag.mustache: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Tag: {{tag-name}}

4 | 9 |
10 |
11 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/tag-index.mustache: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Tag Index

4 | 9 |
10 |
11 | -------------------------------------------------------------------------------- /xdg/.local/share/applications/ncmpcpp.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Name=ncmpcpp 4 | GenericName=Music Player 5 | Comment=Interface for MPD 6 | Exec=i3-msg "workspace 9: music, exec urxvt -name ncmpcpp -e ncmpcpp" 7 | Icon=multimedia-audio-player 8 | Type=Application 9 | Categories=AudioVideo;Audio;Player; 10 | X-Desktop-File-Install-Version=0.23 11 | -------------------------------------------------------------------------------- /i3/bin/i3_empty_workspace.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | MAX_DESKTOPS=20 4 | 5 | WORKSPACES=$(seq -s '\n' 1 1 ${MAX_DESKTOPS}) 6 | 7 | EMPTY_WORKSPACE=$( (i3-msg -t get_workspaces | tr ',' '\n' | grep num | awk -F: '{print int($2)}' ; \ 8 | echo -e ${WORKSPACES} ) | sort -n | uniq -u | head -n 1) 9 | 10 | i3-msg workspace ${EMPTY_WORKSPACE} 11 | -------------------------------------------------------------------------------- /gentoo/bin/livechroot: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | if [ ! -d "/mnt/gentoo" ]; then 4 | echo "/mnt/gentoo not found! Are you using a live cd?" 5 | exit 1 6 | fi 7 | 8 | echo "mounting sys dev & proc" 9 | mount -t proc proc /mnt/gentoo/proc 10 | mount --rbind /sys /mnt/gentoo/sys 11 | mount --rbind /dev /mnt/gentoo/dev 12 | 13 | echo "changing root" 14 | chroot /mnt/gentoo bash 15 | -------------------------------------------------------------------------------- /xdg/.local/share/applications/firefox.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Firefox 3 | Comment=Web Browser 4 | Exec=firefox-bin %u 5 | Icon=firefox 6 | Terminal=false 7 | Type=Application 8 | MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https; 9 | Categories=Network;WebBrowser; 10 | StartupNotify=true 11 | -------------------------------------------------------------------------------- /fun/bin/plymouthtest: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | 3 | plymouthd --mode=boot --debug --debug-file=/tmp/plymouth-debug-out 4 | plymouth show-splash 5 | for i in {1..100} 6 | do 7 | plymouth system-update --progress=$i 8 | plymouth update --status="${i} A quick brown fox jumps over the lazy dog." 9 | plymouth display-message --text="$i" 10 | sleep 0.05 11 | done 12 | plymouth quit 13 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/category-index.mustache: -------------------------------------------------------------------------------- 1 |
2 |
3 |

{{cat-name}} Index

4 |
    5 | {{#posts}} 6 |
  • {{date}}  »  {{post-title}}
  • 7 | {{/posts}} 8 |
9 |
10 |
11 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/emacs-lisp-mode/boil: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet; require-final-newline: nil -*- 2 | # name: Lisp boilerplate 3 | # key: boil 4 | # binding: direct-keybinding 5 | # -- 6 | ;;; ${1:`(buffer-name)`} --- ${2:Summary} 7 | 8 | ;;; Commentary: 9 | 10 | ;;; Code: 11 | 12 | $0 13 | 14 | (provide \'${1:`(file-name-sans-extension (buffer-name))`}) 15 | ;;; ${1:`(buffer-name)`} ends here 16 | -------------------------------------------------------------------------------- /zsh/.zsh.d/environment.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # Misc. Environment Variables 8 | export VIRTUAL_ENV_DISABLE_PROMPT=1 9 | export GO111MODULE=on 10 | export GOPATH=$HOME/go 11 | export PATH="$HOME/.cask/bin:${GOPATH//://bin:}/bin:$PATH" 12 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/prop: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 mode: snippet -*- 2 | # name: Propery 3 | # key: prop 4 | # expand-env: ((yas-indent-line 'nil) (yas-wrap-around-region 'nil)) 5 | # contributor: David Zuber 6 | # -- 7 | @property 8 | $>def ${1:name}(self): 9 | $>"""$2""" 10 | $>return self._$1 11 | 12 | $>@$1.setter 13 | $>def $1(self, value): 14 | $>self._$1 = value 15 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-git-sync.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Add org file changes to the repository 3 | REPOS="org" 4 | 5 | for REPO in $REPOS 6 | do 7 | echo "Repository: $REPO" 8 | cd ~/Documents/$REPO 9 | # Remove deleted files 10 | git ls-files --deleted -z | xargs -0 git rm >/dev/null 2>&1 11 | # Add new files 12 | git add . >/dev/null 2>&1 13 | git commit -m "$(date)" 14 | done 15 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/git-commit.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /zsh/.zsh.d/k8s.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗██████╗ ██████╗ 2 | # ╚══███╔╝██╔════╝██║ ██║██╔══██╗██╔════╝ 3 | # ███╔╝ ███████╗███████║██████╔╝██║ 4 | # ███╔╝ ╚════██║██╔══██║██╔══██╗██║ 5 | # ███████╗███████║██║ ██║██║ ██║╚██████╗ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ 7 | # Kubernetes 8 | 9 | function update_kubectl_completion(){ 10 | kubectl completion zsh > ~/.zsh.d/completions/_kubectl 11 | } 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /ncmpcpp/.ncmpcpp/error.log 2 | /kodi/.kodi/temp/ 3 | /kodi/.kodi/userdata/addon_data/ 4 | /kodi/.kodi/userdata/Database/ 5 | kodi/.kodi/userdata/Thumbnails/ 6 | kodi/.kodi/userdata/keymaps 7 | kodi/.kodi/addons/ 8 | /emacs/.spacemacs.d/.spacemacs.env 9 | /fonts/.local/share/fonts/.uuid 10 | /gtk/.config/gtk-2.0/dbus-daemon 11 | /gtk/.config/gtk-2.0/.dbus-daemon.sys 12 | /xdg/.local/share/applications/mimeinfo.cache 13 | -------------------------------------------------------------------------------- /zsh/.zsh.d/completions/_kubectx: -------------------------------------------------------------------------------- 1 | #compdef kubectx kctx=kubectx 2 | 3 | local KUBECTX="${HOME}/.kube/kubectx" 4 | PREV="" 5 | if [ -f "$KUBECTX" ]; then 6 | # show '-' only if there's a saved previous context 7 | local PREV=$(cat "${KUBECTX}") 8 | _arguments "1: :(- 9 | $(kubectl config get-contexts --output='name'))" 10 | else 11 | _arguments "1: :($(kubectl config get-contexts --output='name'))" 12 | fi 13 | -------------------------------------------------------------------------------- /zsh/.zsh.d/functions/gentoo.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # Gentoo Functions 8 | 9 | kernelprep() { 10 | # check if boot is mounted 11 | mount | grep -q /boot 12 | if [ $? -eq 1 ]; then 13 | sudo mount /boot 14 | fi 15 | cd /usr/src/linux 16 | } 17 | -------------------------------------------------------------------------------- /i3/bin/urxvttilda.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | NEXT_WAIT_TIME=1 3 | COMMAND_STATUS=-1 4 | until [[ $COMMAND_STATUS -eq 0 || $NEXT_WAIT_TIME -eq 6 ]]; do 5 | curl wttr.in/london 6 | COMMAND_STATUS=$? 7 | sleep $NEXT_WAIT_TIME 8 | let NEXT_WAIT_TIME=NEXT_WAIT_TIME+1 9 | done 10 | unset NEXT_WAIT_TIME 11 | unset COMMAND_STATUS 12 | 13 | 14 | echo "" 15 | echo "" 16 | echo "" 17 | echo "" 18 | echo "" 19 | echo "" 20 | echo "" 21 | exec zsh 22 | -------------------------------------------------------------------------------- /gtk/.gtkrc-2.0: -------------------------------------------------------------------------------- 1 | gtk-theme-name="Arc-Dark" 2 | gtk-icon-theme-name="Numix-Square" 3 | gtk-font-name="Sans 10" 4 | gtk-cursor-theme-name="Numix" 5 | gtk-cursor-theme-size=0 6 | gtk-toolbar-style=GTK_TOOLBAR_BOTH 7 | gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR 8 | gtk-button-images=1 9 | gtk-menu-images=1 10 | gtk-enable-event-sounds=1 11 | gtk-enable-input-feedback-sounds=1 12 | gtk-xft-antialias=1 13 | gtk-xft-hinting=1 14 | gtk-xft-hintstyle="hintfull" 15 | -------------------------------------------------------------------------------- /i3/bin/i3_workspace.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function gen_workspaces() 4 | { 5 | i3-msg -t get_workspaces | tr ',' '\n' | grep "name" | sed 's/"name":"\(.*\)"/\1/g' | sort -n 6 | } 7 | 8 | 9 | WORKSPACE=$( (echo empty; gen_workspaces) | rofi -dmenu -p "Select workspace:") 10 | 11 | if [ x"empty" = x"${WORKSPACE}" ] 12 | then 13 | i3_empty_workspace.sh 14 | elif [ -n "${WORKSPACE}" ] 15 | then 16 | i3-msg workspace "${WORKSPACE}" 17 | fi 18 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/about.mustache: -------------------------------------------------------------------------------- 1 |
2 |

About {{author}}

3 |
4 |

{{author}} is a little lazy, he/she leaves nothing here. :-p

5 |
6 |

This page is automatically generated by org-page.

7 |
8 |
9 | -------------------------------------------------------------------------------- /gtk/.config/gtk-3.0/settings.ini: -------------------------------------------------------------------------------- 1 | [Settings] 2 | gtk-theme-name=Arc-Dark 3 | gtk-icon-theme-name=Numix-Square 4 | gtk-font-name=Sans 10 5 | gtk-cursor-theme-name=Numix 6 | gtk-cursor-theme-size=0 7 | gtk-toolbar-style=GTK_TOOLBAR_BOTH 8 | gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR 9 | gtk-button-images=1 10 | gtk-menu-images=1 11 | gtk-enable-event-sounds=1 12 | gtk-enable-input-feedback-sounds=1 13 | gtk-xft-antialias=1 14 | gtk-xft-hinting=1 15 | gtk-xft-hintstyle=hintfull 16 | -------------------------------------------------------------------------------- /notmuch/.notmuch/hooks/pre-new: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # ███╗ ██╗ ██████╗ ████████╗███╗ ███╗██╗ ██╗ ██████╗██╗ ██╗ 3 | # ████╗ ██║██╔═══██╗╚══██╔══╝████╗ ████║██║ ██║██╔════╝██║ ██║ 4 | # ██╔██╗ ██║██║ ██║ ██║ ██╔████╔██║██║ ██║██║ ███████║ 5 | # ██║╚██╗██║██║ ██║ ██║ ██║╚██╔╝██║██║ ██║██║ ██╔══██║ 6 | # ██║ ╚████║╚██████╔╝ ██║ ██║ ╚═╝ ██║╚██████╔╝╚██████╗██║ ██║ 7 | # ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝ 8 | mbsync -a 9 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/emacs-lisp-mode/layer: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | # name: layer 3 | # key: layer 4 | # -- 5 | ;;; $1.el --- storax-$3 layer $1$2 file for Spacemacs. 6 | ;; 7 | ;; Copyright (c) 2016 David Zuber 8 | ;; 9 | ;; Author: David Zuber 10 | ;; URL: https://github.com/storax/emacs-castle 11 | ;; 12 | ;; This file is not part of GNU Emacs. 13 | ;; 14 | ;;; License: GPLv3 15 | 16 | ;;; Commentary: 17 | 18 | ;;; Code: 19 | 20 | $0 21 | 22 | ;;; $1.el ends here -------------------------------------------------------------------------------- /zsh/.zsh.d/completions/_wtf: -------------------------------------------------------------------------------- 1 | #compdef wtf 2 | 3 | _wtfvars(){ 4 | val=("${(@f)$(env | awk -F'=' '{print $1}')}") 5 | _wanted val expl "Variables" compadd -a val 6 | } 7 | 8 | _wtfdelimiters(){ 9 | val=(":" " " ";" "\n") 10 | _wanted -V val expl "Delimiters" compadd -a val 11 | } 12 | 13 | local expl 14 | local -a val 15 | 16 | arguments=( 17 | '1:[Variables]:_wtfvars' 18 | '2:[Delimiters]:_wtfdelimiters' 19 | ) 20 | 21 | _arguments $arguments && return 0 22 | 23 | return 1 24 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/lob.org: -------------------------------------------------------------------------------- 1 | #+NAME: cat 2 | #+HEADER: :var org_file="" 3 | #+HEADER: :var start=0 4 | #+HEADER: :var end=0 5 | #+BEGIN_SRC sh :results output 6 | if [ $end -gt 0 -a $start -gt 0 ] 7 | then 8 | sed -n "$start,$end p" $PWD/$org_file 9 | elif [ $end -eq 0 -a $start -eq 0 ] 10 | then 11 | cat $PWD/$org_file 12 | elif [ $start -eq 0 ] 13 | then 14 | head -n $end $PWD/$org_file 15 | elif [ $end -eq 0 ] 16 | then 17 | tail -n +$start $PWD/$org_file 18 | fi 19 | #+END_SRC 20 | -------------------------------------------------------------------------------- /zsh/.zsh.d/completions/_wtfvar: -------------------------------------------------------------------------------- 1 | #compdef wtfvar 2 | 3 | _wtfvarvars(){ 4 | val=("${(@f)$(set | awk -F'=' '{print $1}')}") 5 | _wanted val expl "Variables" compadd -a val 6 | } 7 | 8 | _wtfvardelimiters(){ 9 | val=(":" " " ";" "\n") 10 | _wanted -V val expl "Delimiters" compadd -a val 11 | } 12 | 13 | local expl 14 | local -a val 15 | 16 | arguments=( 17 | '1:[Variables]:_wtfvarvars' 18 | '2:[Delimiters]:_wtfvardelimiters' 19 | ) 20 | 21 | _arguments $arguments && return 0 22 | 23 | return 1 24 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/scheme.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * scheme_xpm[] = { 3 | "13 16 3 1", 4 | " c None", 5 | ". c #7d7d7d", 6 | "+ c #000000", 7 | " .... ", 8 | " .+++. ", 9 | ".+..++. ", 10 | ".+. .+. ", 11 | " . .+. ", 12 | " .+. ", 13 | " .++. ", 14 | " .+++. ", 15 | " .+++. ", 16 | " .++++. ", 17 | " .++.++. ", 18 | " .++..+. ", 19 | " .++. .+. . ", 20 | " .++. .++..+.", 21 | ".++. .+++. ", 22 | " .. ... "}; 23 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/header.mustache: -------------------------------------------------------------------------------- 1 | 2 | {{page-title}} 3 | 4 | 5 | {{#description}} 6 | 7 | {{/description}} 8 | {{#keywords}} 9 | 10 | {{/keywords}} 11 | 12 | 13 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/index.mustache: -------------------------------------------------------------------------------- 1 | {{#categories}} 2 |
3 |

{{category}}

4 |
5 | 10 |
11 |
12 | {{/categories}} 13 | -------------------------------------------------------------------------------- /gdb/.gdbinit: -------------------------------------------------------------------------------- 1 | source /usr/share/gdb/auto-load/usr/lib64/libpython3.6m.so.1.0-gdb.py 2 | 3 | add-auto-load-safe-path /usr/lib64/go/src/runtime/runtime-gdb.py 4 | 5 | 6 | define pyrun 7 | set $tstate = PyGILState_Ensure() 8 | call PyRun_SimpleString($arg0) 9 | call PyGILState_Release($tstate) 10 | end 11 | 12 | 13 | define pystack 14 | pyrun "import traceback;print('='*80);traceback.print_stack();del traceback;" 15 | end 16 | 17 | define pythread 18 | pyrun "import threading;print(threading.current_thread());del threading;" 19 | end 20 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-secret/config.el: -------------------------------------------------------------------------------- 1 | ;;; config.el --- storax-powerline layer config file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defvar storax-secret-file (concat (file-name-directory load-file-name) "secret.el.gpg")) 17 | 18 | ;;; config.el ends here 19 | -------------------------------------------------------------------------------- /i3/.config/roficlip/settings: -------------------------------------------------------------------------------- 1 | settings: 2 | ring_size: 100 # maximum clips count. 3 | preview_width: 200 # maximum preview width for rofi. 4 | newline_char: '¬' # any character for using in preview as new line marker. 5 | notify: False # allow using desktop notifications. 6 | notify_timeout: 1 # notification timeout. 7 | 8 | actions: 9 | 'add persistent clip': 'roficlip.py -q --add' # save current clipboard as persistent. 10 | 'remove persistent clip': 'roficlip.py -q --remove' # remove current clipboard from persistent. 11 | -------------------------------------------------------------------------------- /zsh/.zsh.d/history.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # History 8 | 9 | HISTFILE=~/.zhistory 10 | HISTSIZE=100000 11 | SAVEHIST=100000 12 | setopt HIST_EXPIRE_DUPS_FIRST 13 | setopt HIST_FIND_NO_DUPS 14 | setopt HIST_IGNORE_DUPS 15 | setopt HIST_IGNORE_SPACE 16 | setopt HIST_REDUCE_BLANKS 17 | setopt HIST_VERIFY 18 | setopt INC_APPEND_HISTORY 19 | setopt EXTENDED_HISTORY 20 | setopt SHARE_HISTORY 21 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/rst-mode/tit: -------------------------------------------------------------------------------- 1 | # -*- utf-8 mode: snippet -*- 2 | # name: Document title 3 | # key: tit 4 | # expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil) (lvl "=")) 5 | # contributor: David Zuber 6 | # -- 7 | ${1:=}${1:$(setq lvl (if (string= "" yas-text) "=" yas-text))}${2:$(make-string (if (> 0 (- (string-width yas-text) 2)) 0 (- (string-width yas-text) 2)) (string-to-char lvl))} 8 | ${2:Title} 9 | ${2:$(make-string (if (> 2 (string-width yas-text)) 2 (string-width yas-text)) (string-to-char lvl))} 10 | 11 | $0 12 | -------------------------------------------------------------------------------- /fun/bin/colors: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | xdef="$HOME/.Xresources" 4 | 5 | colors=( $( sed -re '/^!/d; /^$/d; /^#/d; s/(\*color)([0-9]):/\10\2:/g;' $xdef | grep 'color[01][0-9]:' | sort | sed 's/^.*: *//g' ) ) 6 | 7 | echo -e "\e[1;37m 8 | Black Red Green Yellow Blue Magenta Cyan White 9 | ──────────────────────────────────────────────────────────────────────\e[0m" 10 | for i in {0..7}; do echo -en "\e[$((30+$i))m ${colors[i]} \e[0m"; done 11 | echo 12 | for i in {8..15}; do echo -en "\e[1;$((22+$i))m ${colors[i]} \e[0m"; done 13 | echo -e "\n" 14 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-secret/funcs.el: -------------------------------------------------------------------------------- 1 | ;;; funcs.el --- storax-powerline layer functions file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defun storax/load-secrets () 17 | "Load the encrypted secrets file." 18 | (load-file storax-secret-file)) 19 | 20 | ;;; funcs.el ends here 21 | -------------------------------------------------------------------------------- /notmuch/.notmuch/hooks/post-new: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # ███╗ ██╗ ██████╗ ████████╗███╗ ███╗██╗ ██╗ ██████╗██╗ ██╗ 3 | # ████╗ ██║██╔═══██╗╚══██╔══╝████╗ ████║██║ ██║██╔════╝██║ ██║ 4 | # ██╔██╗ ██║██║ ██║ ██║ ██╔████╔██║██║ ██║██║ ███████║ 5 | # ██║╚██╗██║██║ ██║ ██║ ██║╚██╔╝██║██║ ██║██║ ██╔══██║ 6 | # ██║ ╚████║╚██████╔╝ ██║ ██║ ╚═╝ ██║╚██████╔╝╚██████╗██║ ██║ 7 | # ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝ 8 | notmuch tag --batch --input=${HOME}/.notmuch/hooks/notmuch_tag 9 | 10 | ~/bin/notmuch-notify 11 | -------------------------------------------------------------------------------- /xmodmap/.Xmodmap: -------------------------------------------------------------------------------- 1 | ! ██╗ ██╗███╗ ███╗ ██████╗ ██████╗ ███╗ ███╗ █████╗ ██████╗ 2 | ! ╚██╗██╔╝████╗ ████║██╔═══██╗██╔══██╗████╗ ████║██╔══██╗██╔══██╗ 3 | ! ╚███╔╝ ██╔████╔██║██║ ██║██║ ██║██╔████╔██║███████║██████╔╝ 4 | ! ██╔██╗ ██║╚██╔╝██║██║ ██║██║ ██║██║╚██╔╝██║██╔══██║██╔═══╝ 5 | ! ██╔╝ ██╗██║ ╚═╝ ██║╚██████╔╝██████╔╝██║ ╚═╝ ██║██║ ██║██║ 6 | ! ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ 7 | ! Control takes over Caps 8 | remove Lock = Caps_Lock 9 | remove Control = Control_L 10 | keysym Caps_Lock = Control_L 11 | add Lock = Caps_Lock 12 | add Control = Control_L 13 | -------------------------------------------------------------------------------- /zsh/.zsh.d/tmux.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # Tmux shell config 8 | 9 | # [ -d ~/software/tmuxifier ] || git clone git@github.com:jimeh/tmuxifier.git ~/software/tmuxifier 10 | [ -d ~/.tmux/plugins/tpm ] || git clone git@github.com:tmux-plugins/tpm.git ~/.tmux/plugins/tpm 11 | # export PATH="$HOME/software/tmuxifier/bin:$PATH" 12 | # export TMUXIFIER_LAYOUT_PATH="$HOME/.config/tmux/tmux-layouts" 13 | # eval "$(tmuxifier init -)" 14 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-python/config.el: -------------------------------------------------------------------------------- 1 | ;;; config.el --- storax-python layer config file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defvar storax/tox-history (list) "History of tox arguments.") 17 | (defvar storax/tox-env-hist nil) 18 | (defvar storax/pytest-history (list "-vv")) 19 | 20 | ;;; config.el ends here 21 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-flycheck/config.el: -------------------------------------------------------------------------------- 1 | ;;; config.el --- storax-flycheck layer config file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defcustom storax/modeline-flash-color "#af00d7" 17 | "Color for flashing when wrapping next error search." 18 | :group 'flycheck 19 | :type 'color) 20 | 21 | ;;; config.el ends here 22 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/pdf.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PDF 6 | 7 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/folder.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /polybar/bin/launch_polybar.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ( 3 | flock 200 4 | 5 | killall -q polybar 6 | 7 | while pgrep -u $UID -x polybar > /dev/null; do sleep 0.5; done 8 | 9 | outputs=$(xrandr --query | grep " connected" | cut -d" " -f1) 10 | tray_output=eDP 11 | 12 | for m in $outputs; do 13 | export MONITOR=$m 14 | export TRAY_POSITION=none 15 | if [[ $m == $tray_output ]]; then 16 | TRAY_POSITION=right 17 | fi 18 | 19 | polybar --reload main /tmp/polybar-$m.log 2>&1 200>&- & 20 | disown 21 | done 22 | ) 200>/tmp/polybar-launch.lock 23 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/org-mode/report: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | #name : report 3 | #key : report 4 | #contributor : David Zuber 5 | # -- 6 | #+BEGIN: clocktable :maxlevel 2 :scope ${1:$$(yas-choose-value '("file" "agenda" "subtree" "nil" "tree" "file-with-archives" "agenda-with-archives"))} :block ${2:$$(yas-choose-value (list (format-time-string "%Y-%m-%d") "today" "yesterday" "thisweek" "lastweek" "thismonth" "lastmonth" "thisyear" "lastyear" "untilnow"))}$0 7 | #+CAPTION: Clock summary at [2016-08-22 Mo 22:35] 8 | | File | Headline | Time | 9 | |------+----------------+------| 10 | | | ALL *Total time* | *0:00* | 11 | #+END: -------------------------------------------------------------------------------- /zsh/.zsh.d/bindkey.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # Bindkey 8 | 9 | bindkey -v 10 | 11 | bindkey '^P' up-history 12 | bindkey '^N' down-history 13 | bindkey '^?' backward-delete-char 14 | bindkey '^h' backward-delete-char 15 | bindkey '^w' backward-kill-word 16 | bindkey '^r' history-incremental-search-backward 17 | bindkey '^k' sudo-command-line 18 | 19 | # Faster esc timeout 20 | export KEYTIMEOUT=1 21 | 22 | # zaw 23 | bindkey '^R' zaw-history 24 | # C-z 25 | bindkey '^z' zaw-z 26 | -------------------------------------------------------------------------------- /i3/bin/i3exit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | lock() { 3 | i3_lock_multi_monitor -i ~/.img/mrrobot.png 4 | xset dpms force off 5 | } 6 | 7 | case "$1" in 8 | lock) 9 | lock 10 | ;; 11 | logout) 12 | i3-msg exit 13 | ;; 14 | hibernate) 15 | lock && loginctl hibernate 16 | ;; 17 | suspend) 18 | lock && loginctl suspend 19 | ;; 20 | reboot) 21 | sudo shutdown -r now 22 | ;; 23 | shutdown) 24 | sudo shutdown -P now 25 | ;; 26 | *) 27 | echo "Usage: $0 {lock|logout|hibernate|reboot|shutdown}" 28 | exit 2 29 | esac 30 | 31 | exit 0 32 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/image.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/conf-space-mode/i3-mode: -------------------------------------------------------------------------------- 1 | # -*- mode: snippet -*- 2 | #name : i3-mode 3 | #key : mode 4 | #expand-env: ((yas-indent-line 'fixed)) 5 | #contributor : David Zuber 6 | # -- 7 | # Mode: ${1:mode} ------------------------------------------------------- 8 | set \$$1_mode $1 9 | 10 | mode "\$$1_mode" { 11 | # - - - - - - - - - - - - - - Sub Modes - - - - - - - - - - - - - - - 12 | bindsym Escape mode $default 13 | bindcode $quitmode mode $default 14 | bindcode $upmode mode $default 15 | # - - - - - - - - - - - - - - Key Map - - - - - - - - - - - - - - - - 16 | $2 17 | } 18 | $0 19 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-dash/config.el: -------------------------------------------------------------------------------- 1 | ;;; config.el --- storax-helm-dash layer config file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defvar storax/dash-docsets-path (expand-file-name (file-name-as-directory ".docsets") "~")) 17 | (defvar storax/dash-common-docsets nil) 18 | (defvar storax/docsets-to-install nil) 19 | (defvar storax/user-docsets-to-install nil) 20 | 21 | ;;; config.el ends here 22 | -------------------------------------------------------------------------------- /dunst/bin/dunstreload: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | while inotifywait -e close_write ~/projects/dotfiles/dunst/.config/dunst/dunstrc; do 3 | pkill -f /usr/bin/dunst 4 | notify-send -u critical "Test message: critical test 1" 5 | notify-send -u normal "Test message: normal test 2" 6 | notify-send -u low "Test message: low test 3" 7 | notify-send -u critical "Test message: critical test 4" 8 | notify-send -u normal "Test message: normal test 5" 9 | notify-send -u low "Test message: low test 6" 10 | notify-send -u critical "Test message: critical test 7" 11 | notify-send -u normal "Test message: normal test 8" 12 | notify-send -u low "Test message: low test 9" 13 | done 14 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-icons layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-icons.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | 13 | * Description 14 | Brings loads of icons. 15 | 16 | * Install 17 | To use this contribution add it to your =~/.spacemacs= 18 | 19 | #+begin_src emacs-lisp 20 | (setq-default dotspacemacs-configuration-layers '(storax-icons)) 21 | #+end_src 22 | 23 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/bibtex.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * e:\EmacsPortable_App\Data\src\mode_icons\icons\bibtex_xpm[] = { 3 | "16 16 7 1", 4 | " c #FFFFFF", 5 | ". c #EDEBEE", 6 | "+ c #ECEBEF", 7 | "@ c #EDEBEF", 8 | "# c #808080", 9 | "$ c #000080", 10 | "% c #000000", 11 | "############# ", 12 | "# ## ", 13 | "# # # ", 14 | "# $$$ $ #%%%", 15 | "# $ $ $ $ @%", 16 | "# $ $ $ @%", 17 | "# $$$ $ $$$ @%", 18 | "# $ $ $ $ $ @%", 19 | "# $ $ $ $ $ @%", 20 | "# $$$ $ $$$ @%", 21 | "# @%", 22 | "# @%", 23 | "#. ++++ @%", 24 | "#%%@@@@#%%%%# @%", 25 | " #%%%% %#@%", 26 | " %%%"}; 27 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/file.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/mail.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-yasnippet/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-yasnippet layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-yasnippet.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | 13 | * Description 14 | Collection of helper functions for snippets 15 | 16 | * Install 17 | To use this contribution add it to your =~/.spacemacs= 18 | 19 | #+begin_src emacs-lisp 20 | (setq-default dotspacemacs-configuration-layers '(storax-yasnippet)) 21 | #+end_src 22 | 23 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/git-diff.svg: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 12 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-dabbrev/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-dabbrev layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-dabbrev-packages 17 | '(dabbrev)) 18 | 19 | (defun storax-dabbrev/init-dabbrev () 20 | (use-package dabbrev 21 | :defer t 22 | :bind ("C-" . dabbrev-expand) 23 | :init 24 | (bind-key "C-" 'dabbrev-expand minibuffer-local-map))) 25 | 26 | ;;; packages.el ends here 27 | -------------------------------------------------------------------------------- /xdg/.config/user-dirs.dirs: -------------------------------------------------------------------------------- 1 | # This file is written by xdg-user-dirs-update 2 | # If you want to change or add directories, just edit the line you're 3 | # interested in. All local changes will be retained on the next run 4 | # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped 5 | # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an 6 | # absolute path. No other format is supported. 7 | # 8 | XDG_DESKTOP_DIR="$HOME/Desktop" 9 | XDG_DOWNLOAD_DIR="$HOME/Downloads" 10 | XDG_TEMPLATES_DIR="$HOME/Templates" 11 | XDG_PUBLICSHARE_DIR="$HOME/Public" 12 | XDG_DOCUMENTS_DIR="$HOME/Documents" 13 | XDG_MUSIC_DIR="$HOME/Music" 14 | XDG_PICTURES_DIR="$HOME/Pictures" 15 | XDG_VIDEOS_DIR="$HOME/Videos" 16 | XDG_DATA_DIR="$HOME/.local/share" 17 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-utils/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-utils layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-utils.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | 13 | * Description 14 | Miscellaneous useful functions: 15 | - =alist-get= 16 | - =add-auto-mode= 17 | 18 | * Install 19 | To use this contribution add it to your =~/.spacemacs= 20 | 21 | #+begin_src emacs-lisp 22 | (setq-default dotspacemacs-configuration-layers '(storax-utils)) 23 | #+end_src 24 | 25 | -------------------------------------------------------------------------------- /fun/bin/colorbars: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # colorbars - smpte color bars in sh 4 | 5 | echo 6 | 7 | for y in $(seq 0 13); do 8 | printf %s ' ' 9 | for color in 7 3 6 2 5 1 4; do 10 | tput setab ${color} 11 | printf %s ' ' 12 | done 13 | tput sgr0 14 | echo 15 | done 16 | 17 | for y in 0 1; do 18 | printf %s ' ' 19 | for color in 4 0 5 0 6 0 7; do 20 | tput setab ${color} 21 | printf %s ' ' 22 | done 23 | tput sgr0 24 | echo 25 | done 26 | 27 | for y in $(seq 0 4); do 28 | printf %s ' ' 29 | for color in 4 4 4 4 4 7 7 7 7 7 5 5 5 5 5 0 0 0 0 0 0 0 0 0 0 0 0 0; do 30 | tput setab ${color} 31 | printf %s ' ' 32 | done 33 | tput sgr0 34 | echo 35 | done 36 | 37 | echo 38 | -------------------------------------------------------------------------------- /zsh/.zsh.d/colors.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # colors 8 | 9 | autoload colors; colors 10 | 11 | # The variables are wrapped in \%\{\%\}. This should be the case for every 12 | # variable that does not contain space. 13 | for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do 14 | eval PR_$COLOR='%{$fg_no_bold[${(L)COLOR}]%}' 15 | eval PR_BOLD_$COLOR='%{$fg_bold[${(L)COLOR}]%}' 16 | done 17 | 18 | eval RESET='$reset_color' 19 | export PR_RED PR_GREEN PR_YELLOW PR_BLUE PR_WHITE PR_BLACK 20 | export PR_BOLD_RED PR_BOLD_GREEN PR_BOLD_YELLOW PR_BOLD_BLUE 21 | export PR_BOLD_WHITE PR_BOLD_BLACK 22 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-unkillable-scratch/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-unkillable-scratch layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-unkillable-scratch.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | 13 | * Description 14 | Make the scratch buffer unkillable with =unkillable-scratch=. 15 | 16 | * Install 17 | To use this contribution add it to your =~/.spacemacs= 18 | 19 | #+begin_src emacs-lisp 20 | (setq-default dotspacemacs-configuration-layers '(storax-unkillable-scratch)) 21 | #+end_src 22 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-unkillable-scratch/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-unkillable-scratch layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-unkillable-scratch-packages 17 | '(unkillable-scratch) 18 | "The list of Lisp packages required by the storax-unkillable-scratch layer.") 19 | 20 | (defun storax-unkillable-scratch/init-unkillable-scratch () 21 | "Initialize unkillable-scratch" 22 | (unkillable-scratch 1)) 23 | 24 | ;;; packages.el ends here 25 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/git-merge.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/wl-decrypt-fail.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/wl-decrypt-success.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/images/wl-decrypt-fail.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-helm/config.el: -------------------------------------------------------------------------------- 1 | ;;; config.el --- storax-helm layer config file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defvar storax-helm-ag-dirs-prefix "sa SPC " 17 | "Prefix for all keybindings of `storax-helm-ag-dirs-alist'") 18 | (defvar storax-helm-ag-dirs-alist '(("e" . "~/projects/emaci") 19 | ("o" . "~/Documents/org")) 20 | "Mapping of keys to directories for fast search access 21 | with `storax/helm-ag-in-dir'.") 22 | 23 | ;;; config.el ends here 24 | 25 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/images/wl-decrypt-success.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /haskell/.ghci: -------------------------------------------------------------------------------- 1 | -- ██████╗ ██╗ ██╗ ██████╗██╗ 2 | -- ██╔════╝ ██║ ██║██╔════╝██║ 3 | -- ██║ ███╗███████║██║ ██║ 4 | -- ██║ ██║██╔══██║██║ ██║ 5 | -- ╚██████╔╝██║ ██║╚██████╗██║ 6 | -- ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ 7 | -- GHCi configuration 8 | 9 | -- Surround a string in single quotes. 10 | let single_quote s = concat ["'", s, "'"] 11 | 12 | -- Escape a single quote in the shell. (This mess actually works.) 13 | let escape_single_quote c = if c == '\'' then "'\"'\"'" else [c] 14 | 15 | -- Simple heuristic to escape shell command arguments. 16 | let simple_shell_escape = single_quote . (concatMap escape_single_quote) 17 | 18 | :def hoogle \x -> return $ ":!hoogle --color " ++ (simple_shell_escape x) 19 | :def doc \x -> return $ ":!hoogle --info --color " ++ (simple_shell_escape x) 20 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/xml.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /python/.pdbrc.py: -------------------------------------------------------------------------------- 1 | from __future__ import print_function 2 | 3 | import sys 4 | 5 | import rlcompleter 6 | import pdb 7 | pdb.Pdb.complete = rlcompleter.Completer(locals()).complete 8 | 9 | # return to debugger after fatal exception (Python cookbook 14.5): 10 | def info(type, value, tb): 11 | import sys 12 | if hasattr(sys, 'ps1') or not sys.stderr.isatty(): 13 | sys.__excepthook__(type, value, tb) 14 | import traceback, pdb 15 | traceback.print_exception(type, value, tb) 16 | print 17 | pdb.pm() 18 | 19 | sys.excepthook = info 20 | 21 | # Cleanup any variables that could otherwise clutter up the namespace. 22 | try: 23 | del info 24 | del pdb 25 | del rlcompleter 26 | except NameError: 27 | # Probably this is a second pdbrc that has been loaded. 28 | pass 29 | -------------------------------------------------------------------------------- /notmuch/.notmuch-config: -------------------------------------------------------------------------------- 1 | # ███╗ ██╗ ██████╗ ████████╗███╗ ███╗██╗ ██╗ ██████╗██╗ ██╗ 2 | # ████╗ ██║██╔═══██╗╚══██╔══╝████╗ ████║██║ ██║██╔════╝██║ ██║ 3 | # ██╔██╗ ██║██║ ██║ ██║ ██╔████╔██║██║ ██║██║ ███████║ 4 | # ██║╚██╗██║██║ ██║ ██║ ██║╚██╔╝██║██║ ██║██║ ██╔══██║ 5 | # ██║ ╚████║╚██████╔╝ ██║ ██║ ╚═╝ ██║╚██████╔╝╚██████╗██║ ██║ 6 | # ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝ 7 | # .notmuch-config - Configuration file for the notmuch mail system 8 | 9 | [database] 10 | path=/home/david/Documents/mail 11 | 12 | [user] 13 | name=David Zuber 14 | primary_email=zuber.david@gmx.de 15 | 16 | [new] 17 | tags=new; 18 | ignore= 19 | 20 | [search] 21 | exclude_tags=deleted;spam; 22 | 23 | [maildir] 24 | synchronize_flags=true 25 | 26 | [crypto] 27 | gpg_path=gpg 28 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/mark-github.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/images/mark-github.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/css.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/qss.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/git-stash.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-lame/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-lame layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-lame.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | - [[Key bindings][Key bindings]] 13 | 14 | * Description 15 | Framework for automating manual tasks. 16 | 17 | * Install 18 | To use this contribution add it to your =~/.spacemacs= 19 | 20 | #+begin_src emacs-lisp 21 | (setq-default dotspacemacs-configuration-layers '(storax-lame)) 22 | #+end_src 23 | 24 | * Key bindings 25 | 26 | | Key Binding | Description | 27 | |-----------------+----------------| 28 | | ~ x x x~ | Does thing01 | 29 | -------------------------------------------------------------------------------- /htop/.config/htop/htoprc: -------------------------------------------------------------------------------- 1 | # ██╗ ██╗████████╗ ██████╗ ██████╗ 2 | # ██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗ 3 | # ███████║ ██║ ██║ ██║██████╔╝ 4 | # ██╔══██║ ██║ ██║ ██║██╔═══╝ 5 | # ██║ ██║ ██║ ╚██████╔╝██║ 6 | # ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ 7 | # htop 8 | fields=0 48 17 18 38 39 40 2 46 47 49 1 9 | sort_key=47 10 | sort_direction=1 11 | hide_threads=1 12 | hide_kernel_threads=1 13 | hide_userland_threads=1 14 | shadow_other_users=0 15 | show_thread_names=0 16 | show_program_path=1 17 | highlight_base_name=1 18 | highlight_megabytes=1 19 | highlight_threads=0 20 | tree_view=0 21 | header_margin=1 22 | detailed_cpu_time=0 23 | cpu_count_from_zero=0 24 | update_process_names=0 25 | account_guest_in_cpu_meter=0 26 | color_scheme=0 27 | delay=15 28 | left_meters=LeftCPUs Memory Swap 29 | left_meter_modes=1 1 1 30 | right_meters=RightCPUs Tasks LoadAverage Uptime 31 | right_meter_modes=1 2 2 2 32 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-popup/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-popup layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-popup-packages 17 | '(popup)) 18 | 19 | (defun storax-popup/post-init-popup () 20 | (use-package popup 21 | :defer t 22 | :config 23 | (bind-key "M-n" 'popup-next popup-menu-keymap) 24 | (bind-key "TAB" 'popup-next popup-menu-keymap) 25 | (bind-key "" 'popup-next popup-menu-keymap) 26 | (bind-key "" 'popup-previous popup-menu-keymap) 27 | (bind-key "M-p" 'popup-previous popup-menu-keymap))) 28 | 29 | ;;; packages.el ends here 30 | -------------------------------------------------------------------------------- /fun/bin/colorscheme: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This file echoes a bunch of color codes to the 4 | # terminal to demonstrate what's available. Each 5 | # line is the color code of one forground color, 6 | # out of 17 (default + 16 escapes), followed by a 7 | # test use of that color on all nine background 8 | # colors (default + 8 escapes). 9 | # 10 | 11 | T='niX' # The test text 12 | 13 | echo -e "\n 40m 41m 42m 43m\ 14 | 44m 45m 46m 47m"; 15 | 16 | for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ 17 | '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ 18 | ' 36m' '1;36m' ' 37m' '1;37m'; 19 | do FG=${FGs// /} 20 | echo -en " $FGs \033[$FG $T " 21 | for BG in 40m 41m 42m 43m 44m 45m 46m 47m; 22 | do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; 23 | done 24 | echo; 25 | done 26 | echo 27 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-hydra/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-hydra layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-hydra-packages 17 | '(move-text) 18 | "The list of Lisp packages required by the storax-hydra layer.") 19 | 20 | (defun storax-hydra/post-init-move-text () 21 | (defhydra hydra-move-text () 22 | "Move text" 23 | ("p" move-text-up "up") 24 | ("n" move-text-down "down") 25 | ("q" nil "quit")) 26 | 27 | (spacemacs/set-leader-keys 28 | "xp" 'hydra-move-text/move-text-up 29 | "xn" 'hydra-move-text/move-text-down)) 30 | 31 | ;;; packages.el ends here 32 | -------------------------------------------------------------------------------- /zsh/.zsh.d/setopt.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # Misc. Options 8 | 9 | # ===== Changing Directories 10 | setopt auto_cd # If you type foo, and it isn't a command, and it is a directory in your cdpath, go there 11 | 12 | # ===== Expansion and Globbing 13 | setopt extended_glob # treat #, ~, and ^ as part of patterns for filename generation 14 | 15 | # All unquoted arguments of the form 'anything=expression' 16 | # appearing after the command name have filename expansion 17 | # (that is, where expression has a leading '~' or '=') 18 | # performed on expression as if it were a parameter assignment. 19 | setopt magic_equal_subst 20 | 21 | # ===== Scripts and Functions 22 | setopt multios # perform implicit tees or cats when multiple redirections are attempted 23 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-smartparens/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-smartparens layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-smartparens-packages 17 | '(smartparens) 18 | "The list of Lisp packages required by the storax-smartparens layer.") 19 | 20 | (defun storax-smartparens/post-init-smartparens () 21 | (use-package smartparens 22 | :defer t 23 | :init 24 | (smartparens-global-mode 1) 25 | (sp-use-paredit-bindings) 26 | :config 27 | (bind-key "C-M-." 'storax/swap-place-in-region) 28 | (bind-key "C-M-," 'storax/swap-place-in-region))) 29 | 30 | ;;; packages.el ends here 31 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/movie.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-erc/funcs.el: -------------------------------------------------------------------------------- 1 | ;;; funcs.el --- storax-powerline layer functions file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defun storax-erc/erc-gitter () 17 | "Load the secrets file and use the gitter token from there to login to gitter." 18 | (interactive) 19 | (let ((erc-server-connect-function 'erc-open-tls-stream)) 20 | (storax/load-secrets) 21 | (erc :server "irc.gitter.im" :port "6667" :nick "storax" :password gitter-token))) 22 | 23 | (defun storax-erc/erc-freenode () 24 | "Login to irc.freenode.net." 25 | (interactive) 26 | (erc :server "irc.freenode.net" :port "6667" :nick "notZubes")) 27 | 28 | ;;; funcs.el ends here 29 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-dabbrev/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-dabbrev layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-dabbrev.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | - [[Key bindings][Key bindings]] 13 | 14 | * Description 15 | Adds keybindings for =dabbrev-expand=. 16 | 17 | * Install 18 | To use this contribution add it to your =~/.spacemacs= 19 | 20 | #+begin_src emacs-lisp 21 | (setq-default dotspacemacs-configuration-layers '(storax-dabbrev)) 22 | #+end_src 23 | 24 | * Key bindings 25 | The keybing is also added to the =minibuffer-local-map=. 26 | 27 | | Key Binding | Description | 28 | |-------------+----------------| 29 | | ~C-~ | dabbrev-expand | 30 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-visual-regexp-steroids/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-visual-regexp-steroids layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-visual-regexp-steroids-packages 17 | '(visual-regexp-steroids)) 18 | 19 | (defun storax-visual-regexp-steroids/init-visual-regexp-steroids () 20 | (use-package visual-regexp-steroids 21 | :defer t 22 | :init 23 | (spacemacs/declare-prefix "sr" "regexp") 24 | (spacemacs/set-leader-keys 25 | "srr" 'vr/isearch-backward 26 | "srs" 'vr/isearch-forward 27 | "srq" 'vr/query-replace 28 | "srm" 'vr/mc-mark))) 29 | 30 | 31 | ;;; packages.el ends here 32 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-smartparens/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-smartparens layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-smartparens.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | - [[Key bindings][Key bindings]] 13 | 14 | * Description 15 | Custom spartparens navigation 16 | 17 | * Install 18 | To use this contribution add it to your =~/.spacemacs= 19 | 20 | #+begin_src emacs-lisp 21 | (setq-default dotspacemacs-configuration-layers '(storax-smartparens)) 22 | #+end_src 23 | 24 | * Key bindings 25 | 26 | | Key Binding | Description | 27 | |-----------------+----------------| 28 | | ~C-M-.~ | Swap place in region | 29 | | ~C-M-,~ | Swap place in region | 30 | -------------------------------------------------------------------------------- /parcellite/.config/parcellite/parcelliterc: -------------------------------------------------------------------------------- 1 | [rc] 2 | RCVersion=1 3 | use_copy=true 4 | use_primary=true 5 | synchronize=true 6 | save_history=true 7 | history_pos=false 8 | history_x=1 9 | history_y=1 10 | history_limit=100 11 | data_size=0 12 | item_size=5 13 | automatic_paste=false 14 | auto_key=true 15 | auto_mouse=true 16 | key_input=false 17 | restore_empty=true 18 | rc_edit=false 19 | type_search=true 20 | case_search=false 21 | ignore_whiteonly=false 22 | trim_wspace_begend=false 23 | trim_newline=false 24 | hyperlinks_only=false 25 | confirm_clear=true 26 | current_on_top=true 27 | single_line=true 28 | reverse_history=false 29 | item_length=50 30 | persistent_history=false 31 | persistent_separate=false 32 | persistent_on_top=false 33 | persistent_delim=\\n 34 | nonprint_disp=false 35 | ellipsize=3 36 | multi_user=true 37 | icon_name=parcellite 38 | menu_key=P 39 | history_key=H 40 | phistory_key=X 41 | actions_key=A 42 | -------------------------------------------------------------------------------- /ncmpcpp/.ncmpcpp/config: -------------------------------------------------------------------------------- 1 | # ███╗ ██╗ ██████╗███╗ ███╗██████╗ ██████╗██████╗ ██████╗ 2 | # ████╗ ██║██╔════╝████╗ ████║██╔══██╗██╔════╝██╔══██╗██╔══██╗ 3 | # ██╔██╗ ██║██║ ██╔████╔██║██████╔╝██║ ██████╔╝██████╔╝ 4 | # ██║╚██╗██║██║ ██║╚██╔╝██║██╔═══╝ ██║ ██╔═══╝ ██╔═══╝ 5 | # ██║ ╚████║╚██████╗██║ ╚═╝ ██║██║ ╚██████╗██║ ██║ 6 | # ╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚═╝ 7 | # ncmpcpp 8 | 9 | ##### connection settings ##### 10 | ## Needed for tag editor and file operations to work. 11 | mpd_host = "127.0.0.1" 12 | mpd_port = "6600" 13 | mpd_music_dir = ~/Music 14 | mpd_crossfade_time = 5 15 | 16 | song_status_format = {{$4%a$9 - }{%t}}|{%f} 17 | ## 18 | ## Note: You can specify third character which will 19 | ## be used to build 'empty' part of progressbar. 20 | ## 21 | progressbar_look = "─╼·" 22 | playlist_shorten_total_times = "yes" 23 | follow_now_playing_lyrics = "yes" 24 | autocenter_mode = "yes" 25 | centered_cursor = "yes" 26 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-translate/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-translate layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-translate-packages 17 | '(google-translate)) 18 | 19 | (defun storax-translate/post-init-google-translate () 20 | (use-package google-translate 21 | :commands (google-translate-smooth-translate) 22 | :config 23 | (setq google-translate-default-source-language "en" 24 | google-translate-default-target-language "de" 25 | google-translate-translation-directions-alist 26 | '(("en" . "de") ("de" . "en"))) 27 | (spacemacs/set-leader-keys "at" 'google-translate-smooth-translate))) 28 | 29 | ;;; packages.el ends here 30 | -------------------------------------------------------------------------------- /zsh/.zsh.d/pyenv.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # pyenv 8 | 9 | # Download pyenv if it is not there yet 10 | [ -d ~/.pyenv/bin ] || git clone https://github.com/yyuu/pyenv.git ~/.pyenv 11 | [ -d ~/.pyenv/plugins/pyenv-virtualenv ] || git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv 12 | [ -d ~/.pyenv/plugins/pyenv-virtualenvwrapper ] || git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper 13 | 14 | export WORKON_HOME=$HOME/.virtualenvs 15 | export PROJECT_HOME=$HOME/projects/ 16 | source /usr/bin/virtualenvwrapper_lazy.sh 17 | 18 | # build python with enable shared 19 | export PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs4 --enable-shared" 20 | export PATH="$HOME/.pyenv/bin:$PATH" 21 | 22 | pyi () { 23 | eval "$(pyenv init -)" 24 | pyenv virtualenvwrapper_lazy 25 | } 26 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/defg: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 mode: snippet -*- 2 | # name: Method with sphinx doc google style 3 | # key: defg 4 | # group: Definitions 5 | # expand-env: ((yas-indent-line nil) (yas-wrap-around-region nil) (storax-yas-curcolumn (current-column))) 6 | # contributor: Michael Markert 7 | # contributor: David Zuber 8 | # -- 9 | def ${1:$(progn (setq storax-yas-curcolumn (- (current-column) 4)) nil)}${1:name}($2): 10 | ${1:$(storax/yas-makeindent storax-yas-curcolumn nil 1)}"""$3 11 | ${2:$(storax/yas-format-params yas-text)} 12 | ${1:$(storax/yas-makeindent storax-yas-curcolumn nil 1)}Returns: 13 | ${1:$(storax/yas-makeindent storax-yas-curcolumn nil 2)}${4:None} 14 | 15 | ${1:$(storax/yas-makeindent storax-yas-curcolumn nil 1)}Raises: 16 | ${1:$(storax/yas-makeindent storax-yas-curcolumn nil 2)}${5:None} 17 | ${1:$(storax/yas-makeindent storax-yas-curcolumn nil 1)}""" 18 | ${1:$(storax/yas-makeindent storax-yas-curcolumn nil 1)}${0:$$(storax/yas-reexpand)} 19 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/org-page-themes/storax/templates/nav.mustache: -------------------------------------------------------------------------------- 1 |
{{! nav }} 2 |
3 |

{{site-main-title}}

4 |

{{site-sub-title}}

5 | 14 |
15 | 16 | 17 |
18 | {{#avatar}} 19 | 20 | {{/avatar}} 21 |
22 |
23 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-yasnippet/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-yasnippet layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-yasnippet-packages 17 | '(yasnippet)) 18 | 19 | (defun storax-yasnippet/post-init-yasnippet () 20 | (use-package yasnippet 21 | :init 22 | (add-to-list 'warning-suppress-types '(yasnippet backquote-change)) 23 | (spacemacs/add-to-hook 'text-mode-hook '(yas-minor-mode)) 24 | :config 25 | (progn 26 | ;; Put spacemacs snippets to the front 27 | (let ((snippetdir "/home/david/.spacemacs.d/snippets")) 28 | (setq yas-snippet-dirs (remove snippetdir yas-snippet-dirs)) 29 | (add-to-list 'yas-snippet-dirs snippetdir))))) 30 | 31 | ;;; packages.el ends here 32 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-fold-dwim/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-fold-dwim layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-fold-dwim-packages 17 | '(fold-dwim)) 18 | 19 | (defun storax-fold-dwim/init-fold-dwim () 20 | (use-package fold-dwim 21 | :commands (fold-dwim-hide-all fold-dwim-show-all fold-dwim-toggle-selective-display fold-dwim-toggle) 22 | :defer t 23 | :init 24 | (spacemacs/declare-prefix "nd" "fold" "fold-dwim") 25 | (spacemacs/set-leader-keys "ndh" 'fold-dwim-hide-all) 26 | (spacemacs/set-leader-keys "nds" 'fold-dwim-show-all) 27 | (spacemacs/set-leader-keys "ndT" 'fold-dwim-toggle) 28 | (spacemacs/set-leader-keys "ndt" 'fold-dwim-toggle-selective-display))) 29 | 30 | ;;; packages.el ends here 31 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-major-mode-icons/funcs.el: -------------------------------------------------------------------------------- 1 | ;;; funcs.el --- storax-helm-icons layer functions file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | (defun storax/major-mode-icon (feature hook icon &optional prefix suffix) 16 | "After FEATURE is loaded add lambda to HOOK to replace the major mode text. 17 | 18 | Text will be replaced with ICON and add an optional PREFIX and SUFFIX." 19 | (eval-after-load feature 20 | `(add-hook ',hook (lambda () 21 | (setq mode-name (concat ,prefix ,icon ,suffix))) t))) 22 | 23 | (defun storax/add-major-mode-icon-hooks () 24 | "Call 'storax/major-mode-icon' for each args in 'storax/major-mode-icon-list'." 25 | (dolist (e storax/major-mode-icon-list) 26 | (apply 'storax/major-mode-icon e))) 27 | 28 | ;;; funcs.el ends here 29 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-fold-dwim/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-fold-dwim layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-fold-dwim.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | - [[Key bindings][Key bindings]] 13 | 14 | * Description 15 | Enables =fold-dwim= and adds keybindings. 16 | 17 | * Install 18 | To use this contribution add it to your =~/.spacemacs= 19 | 20 | #+begin_src emacs-lisp 21 | (setq-default dotspacemacs-configuration-layers '(storax-fold-dwim)) 22 | #+end_src 23 | 24 | * Key bindings 25 | 26 | | Key Binding | Description | 27 | |-------------+--------------------------| 28 | | ~ n d h~ | hide all | 29 | | ~ n d s~ | show all | 30 | | ~ n d T~ | toggle | 31 | | ~ n d t~ | toggle selective display | 32 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-typescript/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-typescript layer packages file for Spacemacs. 2 | ;; 3 | ;; Author: David Zuber 4 | ;; URL: https://github.com/syl20bnr/spacemacs 5 | ;; 6 | ;; This file is not part of GNU Emacs. 7 | ;; 8 | ;;; License: GPLv3 9 | 10 | ;;; Commentary: 11 | 12 | ;;; Code: 13 | 14 | (defconst storax-typescript-packages 15 | '(typescript-mode vue-mode)) 16 | 17 | (defun storax-typescript/init-vue-mode () 18 | (use-package vue-mode 19 | :config 20 | (progn 21 | (add-hook 'vue-mode-hook 'flycheck-mode) 22 | (add-hook 'vue-mode-hook 'storax/disable-semantic-mode)))) 23 | 24 | (defun storax-typescript/post-init-typescript-mode () 25 | (use-package typescript-mode 26 | :config 27 | (progn 28 | (advice-add #'typescript--ensure-cache :around #'storax/typescript--ensure-cache) 29 | (advice-add #'typescript--class-decl-matcher :around #'storax/typescript--class-decl-matcher) 30 | (add-hook 'flycheck-mode-hook #'storax/use-tslint-from-node-modules)))) 31 | 32 | ;;; packages.el ends here 33 | -------------------------------------------------------------------------------- /profile/.zprofile: -------------------------------------------------------------------------------- 1 | # ██████╗ ██████╗ ██████╗ ███████╗██╗██╗ ███████╗ 2 | # ██╔══██╗██╔══██╗██╔═══██╗██╔════╝██║██║ ██╔════╝ 3 | # ██████╔╝██████╔╝██║ ██║█████╗ ██║██║ █████╗ 4 | # ██╔═══╝ ██╔══██╗██║ ██║██╔══╝ ██║██║ ██╔══╝ 5 | # ██║ ██║ ██║╚██████╔╝██║ ██║███████╗███████╗ 6 | # ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚══════╝ 7 | # profile 8 | 9 | # set PATH so it includes user's private bin if it exists 10 | if [ -d "$HOME/bin" ] ; then 11 | PATH="$HOME/bin:$HOME/.local/bin:$PATH" 12 | fi 13 | 14 | if [ -z $SSH_AGENT_PID ] && [ -z $SSH_TTY ]; then # if no agent & not in ssh 15 | eval `ssh-agent -s` > /dev/null 16 | fi 17 | # keychain ${HOME}/.ssh/id_github4096_rsa 2> /dev/null 18 | # source ${HOME}/.keychain/${HOST}-sh 19 | # if [ "$0" = "/usr/sbin/lightdm-session" -a "$DESKTOP_SESSION" = "i3" ]; then 20 | # export $(gnome-keyring-daemon -s) 21 | # fi 22 | 23 | # Has to be in .profile for i3 24 | export TERMINAL="urxvt" 25 | export EDITOR=vim 26 | export VISUAL=vim 27 | 28 | if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then 29 | exec startx 30 | fi 31 | -------------------------------------------------------------------------------- /tmux/.local/share/icons/ringcentral-office.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/wl-verify-fail.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/wl-verify-success.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/images/wl-verify-fail.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/images/wl-verify-success.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/help.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-latex/funcs.el: -------------------------------------------------------------------------------- 1 | ;;; funcs.el --- storax-latex layer functions file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defun latex-ae () "Insert ae." 17 | (interactive) (insert "\\\"a")) 18 | (defun latex-oe () "Insert oe." 19 | (interactive) (insert "\\\"o")) 20 | (defun latex-ue () "Insert ue." 21 | (interactive) (insert "\\\"u")) 22 | (defun latex-ss () "Insert sharp s." 23 | (interactive) (insert "{\\ss}")) 24 | 25 | (defun storax/apply-latex-bindings () 26 | "Apply latex key bindings. 27 | 28 | Why is this a function? And used in a hook?" 29 | (define-key latex-mode-map (kbd "C-' C-a") 'latex-ae) 30 | (define-key latex-mode-map (kbd "C-' C-o") 'latex-oe) 31 | (define-key latex-mode-map (kbd "C-' C-u") 'latex-ue) 32 | (define-key latex-mode-map (kbd "C-' C-s") 'latex-ss)) 33 | 34 | ;;; funcs.el ends here 35 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/rst.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /xdg/.local/share/applications/zathura.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | Name=Zathura 5 | Comment=A minimalistic document viewer 6 | Comment[ca]=Un visualitzador de documents minimalista 7 | Comment[de]=Ein minimalistischer Dokumenten-Betrachter 8 | Comment[el]=Ένας ελαφρύς προβολέας κειμένων 9 | Comment[eo]=Malpeza dokumento spektanto 10 | Comment[es_CL]=Un visor de documentos minimalista 11 | Comment[fr]=Un visionneur de document minimaliste 12 | Comment[he]=מציג מסמכים מינימליסטי 13 | Comment[id_ID]=Pembaca dokumen minimalis 14 | Comment[it]=Un visualizzatore di documenti minimalista 15 | Comment[lt]=Paprasta dokumentų skaitytuvė 16 | Comment[no]=En minimalistisk dokumentleser 17 | Comment[pl]=Minimalistyczna przeglądarka dokumentów 18 | Comment[pt_BR]=Um visualizador de documentos minimalista 19 | Comment[ru]=Минималистичный просмотрщик документов 20 | Comment[tr]=Minimalist bir belge görüntüleyicisi 21 | Comment[uk_UA]=Легкий переглядач документів 22 | Exec=zathura %U 23 | Icon=zathura 24 | Terminal=false 25 | Categories=Office;Viewer; 26 | Keywords=PDF;PS;PostScript;DjVU;document;presentation;viewer; 27 | X-Desktop-File-Install-Version=0.23 28 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-helm-icons/funcs.el: -------------------------------------------------------------------------------- 1 | ;;; funcs.el --- storax-helm-icons layer functions file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defun storax/icon-for-file (file) 17 | "Return a string with an icon display property for FILE." 18 | (let ((icon (if (file-directory-p file) 19 | (cdr (assoc "/" storax/helm-file-icons)) 20 | (cdr (assoc-string (file-name-extension file) storax/helm-file-icons))))) 21 | (if icon 22 | icon 23 | storax/icon-file))) 24 | 25 | (defun storax/add-icons-to-files (oldfunc file) 26 | "Add icons to the candidates of OLDFUNC called with REQUIRE-MATCH." 27 | (let* ((oldval (funcall oldfunc file)) 28 | (dr (if (consp oldval) (cdr oldval) oldval)) 29 | (ar (if (consp oldval) (car oldval) oldval))) 30 | (when oldval 31 | (cons (concat (storax/icon-for-file dr) " " ar) dr)))) 32 | 33 | ;;; funcs.el ends here 34 | -------------------------------------------------------------------------------- /firewall/bin/iptablesrules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | iptables -F 4 | iptables -X 5 | iptables -Z 6 | 7 | iptables -P INPUT DROP 8 | iptables -P FORWARD DROP 9 | iptables -P OUTPUT ACCEPT 10 | 11 | iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT 12 | iptables -A INPUT -i lo -j ACCEPT 13 | iptables -A INPUT -p icmp --icmp-type 3 -j ACCEPT 14 | iptables -A INPUT -p icmp --icmp-type 11 -j ACCEPT 15 | iptables -A INPUT -p icmp --icmp-type 12 -j ACCEPT 16 | iptables -A INPUT -p tcp --syn --dport 113 -j REJECT --reject-with tcp-reset 17 | 18 | ip6tables -F 19 | ip6tables -X 20 | ip6tables -Z 21 | 22 | ip6tables -P INPUT DROP 23 | ip6tables -P FORWARD DROP 24 | ip6tables -P OUTPUT ACCEPT 25 | 26 | ip6tables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT 27 | ip6tables -A INPUT -i lo -j ACCEPT 28 | ip6tables -A INPUT -m conntrack --ctstate INVALID -j DROP 29 | ip6tables -A INPUT -s fe80::/10 -p ipv6-icmp -j ACCEPT 30 | ip6tables -A INPUT -p udp -m conntrack --ctstate NEW -j REJECT --reject-with icmp6-port-unreachable 31 | ip6tables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j REJECT --reject-with tcp-reset 32 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-latex/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-latex layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-latex-packages 17 | '(auctex pdf-tools)) 18 | 19 | (defun storax-latex/post-init-auctex () 20 | (use-package auctex 21 | :defer t 22 | :config 23 | (TeX-global-PDF-mode t) 24 | (setq TeX-source-correlate-start-server t) 25 | (add-hook 'pdf-view-mode-hook 'auto-revert-mode) 26 | ;; use special hook for tex-default-command, as it is a local variable 27 | (add-hook 'TeX-mode-hook '(lambda () (setq TeX-command-default "latexmk"))) 28 | (add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode) 29 | (add-hook 'LaTeX-mode-hook 'storax/apply-latex-bindings))) 30 | 31 | (defun storax-latex/init-pdf-tools () 32 | (use-package pdf-tools 33 | :config 34 | (pdf-tools-install))) 35 | 36 | ;;; packages.el ends here 37 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/shell.svg: -------------------------------------------------------------------------------- 1 | 2 | 13 | 16 | 19 | 24 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/txt.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/def: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 mode: snippet -*- 2 | # name: Function with sphinx doc 3 | # key: def 4 | # group: Definitions 5 | # expand-env: ((yas-indent-line 'nil) (yas-wrap-around-region 'nil) (curcol 0)) 6 | # contributor: Michael Markert 7 | # contributor: David Zuber 8 | # -- 9 | def ${1:$(progn (setq curcol (current-column)) nil)}${1:name}($2): 10 | $>"""$3 11 | ${2:$(let* ((indent (concat "\n" (make-string curcol 32))) 12 | (args (mapcar 13 | 'car 14 | (mapcar 15 | '(lambda (x) (split-string x "=")) 16 | (split-string 17 | (replace-regexp-in-string "[[:blank:]]*" "" yas-text) 18 | "," t)))) 19 | (params (mapconcat 20 | (lambda (x) (format ":param %s:%s:type %s:" x indent x)) 21 | args 22 | indent))) 23 | (unless (string= "" params) 24 | (concat indent params)))} 25 | $>:returns: ${4:None} 26 | $>:rtype: ${5:None} 27 | $>:raises: ${6:None} 28 | $>""" 29 | $>$0 30 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/defm: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 mode: snippet -*- 2 | # name: Method with sphinx doc 3 | # key: defm 4 | # group: Definitions 5 | # expand-env: ((yas-indent-line 'nil) (yas-wrap-around-region 'nil) (curcol 0)) 6 | # contributor: Michael Markert 7 | # contributor: David Zuber 8 | # -- 9 | def ${1:$(progn (setq curcol (current-column)) nil)}${1:name}(self, $2): 10 | $>"""$3 11 | ${2:$(let* ((indent (concat "\n" (make-string curcol 32))) 12 | (args (mapcar 13 | 'car 14 | (mapcar 15 | '(lambda (x) (split-string x "=")) 16 | (split-string 17 | (replace-regexp-in-string "[[:blank:]]*" "" yas-text) 18 | "," t)))) 19 | (params (mapconcat 20 | (lambda (x) (format ":param %s:%s:type %s:" x indent x)) 21 | args 22 | indent))) 23 | (unless (string= "" params) 24 | (concat indent params)))} 25 | $>:returns: ${4:None} 26 | $>:rtype: ${5:None} 27 | $>:raises: ${6:None} 28 | $>""" 29 | $>$0 30 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/templates/rtd/styles/lib/js/stickytableheaders-license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Jonas Mosbech 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-flycheck/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-flycheck layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-flycheck.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | - [[Key bindings][Key bindings]] 13 | 14 | * Description 15 | Enables global flycheck mode. 16 | Uses current emacs lisp load path. 17 | Adds a 0.8 second delay to checking. 18 | Uses =flycheck-display-error-messages-unless-error-list= as =flycheck-display-errors-function=. 19 | 20 | You can customize =storax/modeline-flash-color=. 21 | * Install 22 | To use this contribution add it to your =~/.spacemacs= 23 | 24 | #+begin_src emacs-lisp 25 | (setq-default dotspacemacs-configuration-layers '(storax-flycheck)) 26 | #+end_src 27 | 28 | * Key bindings 29 | 30 | | Key Binding | Description | 31 | |-------------+----------------| 32 | | ~C-c C-n~ | next error | 33 | | ~SPC e n~ | next-error | 34 | | ~C-c C-p~ | previous error | 35 | | ~SPC e p~ | previous error | 36 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/aqua-left-mesh.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | image/svg+xml 4 | 5 | Layer 1 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/aqua-right-mesh.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | image/svg+xml 4 | 5 | Layer 1 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/bash.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *bash[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "16 16 37 1 ", 5 | " c black", 6 | ". c #010101", 7 | "X c gray1", 8 | "o c #040404", 9 | "O c gray2", 10 | "+ c #060606", 11 | "@ c #070707", 12 | "# c gray3", 13 | "$ c #090909", 14 | "% c #0B0B0B", 15 | "& c #131313", 16 | "* c #151515", 17 | "= c gray9", 18 | "- c gray16", 19 | "; c gray18", 20 | ": c #313131", 21 | "> c #ACACAC", 22 | ", c #C0C0C0", 23 | "< c gray76", 24 | "1 c #C3C3C3", 25 | "2 c gray77", 26 | "3 c gray79", 27 | "4 c #CCCCCC", 28 | "5 c gray81", 29 | "6 c #D8D8D8", 30 | "7 c gray85", 31 | "8 c gainsboro", 32 | "9 c #E2E2E2", 33 | "0 c gray90", 34 | "q c #E6E6E6", 35 | "w c #E7E7E7", 36 | "e c #F1F1F1", 37 | "r c #F5F5F5", 38 | "t c gray97", 39 | "y c #FDFDFD", 40 | "u c #FFFFFF", 41 | "i c None", 42 | /* pixels */ 43 | "iiiiiiiiiiiiiiii", 44 | "iiiiiiiiiiiiiiii", 45 | " ", 46 | " 6e*+eq ;e, ", 47 | " qu=@ur :u4 ", 48 | " 3yuuyyuuy9 :u4 ", 49 | " 4uuuuuuuu0 :u4 ", 50 | " XOquuuurOo :u4 ", 51 | " #%wuuuur%$ ;r1 ", 52 | " 4uuuuuuuu0 ", 53 | " 2tuuttuut8 .$@ ", 54 | " qu=@ur :u4 ", 55 | " <7&O75 -7> ", 56 | " ", 57 | "iiiiiiiiiiiiiiii", 58 | "iiiiiiiiiiiiiiii" 59 | }; 60 | -------------------------------------------------------------------------------- /zsh/.zshrc: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗██████╗ ██████╗ 2 | # ╚══███╔╝██╔════╝██║ ██║██╔══██╗██╔════╝ 3 | # ███╔╝ ███████╗███████║██████╔╝██║ 4 | # ███╔╝ ╚════██║██╔══██║██╔══██╗██║ 5 | # ███████╗███████║██║ ██║██║ ██║╚██████╗ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ 7 | 8 | if [[ "$ZPROF" = true ]]; then 9 | zmodload zsh/zprof 10 | fi 11 | 12 | typeset -a sources 13 | CONFIG_DIR="$HOME/.zsh.d" 14 | 15 | sources+="$CONFIG_DIR/environment.zsh" 16 | sources+="$CONFIG_DIR/setopt.zsh" 17 | sources+="$CONFIG_DIR/functions.zsh" 18 | sources+="$CONFIG_DIR/k8s.zsh" 19 | sources+="$CONFIG_DIR/completion.zsh" 20 | sources+="$CONFIG_DIR/zplug.zsh" 21 | sources+="$CONFIG_DIR/zaw.zsh" 22 | sources+="$CONFIG_DIR/alias.zsh" 23 | sources+="$CONFIG_DIR/bindkey.zsh" 24 | sources+="$CONFIG_DIR/colors.zsh" 25 | sources+="$CONFIG_DIR/history.zsh" 26 | sources+="$CONFIG_DIR/prompt.zsh" 27 | sources+="$CONFIG_DIR/pyenv.zsh" 28 | sources+="$CONFIG_DIR/tmux.zsh" 29 | sources+="$CONFIG_DIR/vim.zsh" 30 | 31 | for file in $sources[@]; do 32 | if [[ -a $file ]]; then 33 | source $file 34 | else 35 | echo "config file not found: $file" 36 | fi 37 | done 38 | 39 | if [[ "$ZPROF" = true ]]; then 40 | zprof 41 | fi 42 | 43 | export PATH="$HOME/.poetry/bin:$PATH" 44 | -------------------------------------------------------------------------------- /python/.pdbrc: -------------------------------------------------------------------------------- 1 | # ██████╗ ██████╗ ██████╗ ██████╗ ██████╗ 2 | # ██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝ 3 | # ██████╔╝██║ ██║██████╔╝██████╔╝██║ 4 | # ██╔═══╝ ██║ ██║██╔══██╗██╔══██╗██║ 5 | # ██║ ██████╔╝██████╔╝██║ ██║╚██████╗ 6 | # ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ 7 | # pdb 8 | 9 | # Credit to Ned Batchelder http://stackoverflow.com/a/1624037 10 | import os 11 | import sys 12 | if sys.version_info[0] == 2: execfile(os.path.expanduser("~/.pdbrc.py")) 13 | if sys.version_info[0] == 3: exec(open(os.path.expanduser("~/.pdbrc.py")).read()) 14 | del sys 15 | # Print a dictionary, sorted. %1 is the dict, %2 is the prefix for the names. 16 | alias p_ for k in sorted(%1.keys()): print("%s%-15s= %-80.80s" % ("%2",k,repr(%1[k]))) 17 | 18 | # Print the instance variables of a thing. 19 | alias pi p_ dir(%1) %1. 20 | 21 | # Print the instance variables of self. 22 | alias ps pi self 23 | 24 | # Print the locals. 25 | alias pl p_ locals() local: 26 | 27 | # Next and list, and step and list. 28 | alias nl n;;l 29 | alias sl s;;l 30 | 31 | # Short cuts for walking up and down the stack 32 | alias uu u;;u 33 | alias uuu u;;u;;u 34 | alias uuuu u;;u;;u;;u 35 | alias uuuuu u;;u;;u;;u;;u 36 | alias dd d;;d 37 | alias ddd d;;d;;d 38 | alias dddd d;;d;;d;;d 39 | alias ddddd d;;d;;d;;d;;d 40 | -------------------------------------------------------------------------------- /zsh/.zsh.d/vim.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # vim 8 | 9 | SPACEVIM_HOME=~/.SpaceVim 10 | INSTALLER_URL=https://spacevim.org/install.sh 11 | TMP_INSTALLER=/tmp/spacevim_install.sh 12 | EXPECTED_CHECKSUM="6038ab8808da613af48079ab8f8396b6666080478ee9c2d0ecb4c98e31eef87ad593e1724d2c80acdea733bb68174ec46c7106f628f0e45187325a8597f4764d $TMP_INSTALLER" 13 | 14 | install_spacevim() { 15 | echo "Installing SpaceVim" 16 | curl -sLf $INSTALLER_URL > $TMP_INSTALLER 17 | if [ ! $? -eq 0 ]; then 18 | echo "Downloading installer $INSTALLER_URL failed." 19 | return 1 20 | fi 21 | 22 | checksum=$(sha512sum $TMP_INSTALLER) 23 | if [ ! "$checksum" = "$EXPECTED_CHECKSUM" ]; then 24 | echo "$TMP_INSTALLER has wrong checksum" 25 | echo "$checksum" 26 | echo "Expected:" 27 | echo "$EXPECTED_CHECKSUM" 28 | rm -f $TMP_INSTALLER 29 | return 1 30 | fi 31 | chmod +x $TMP_INSTALLER 32 | 33 | $TMP_INSTALLER 34 | 35 | rm -f $TMP_INSTALLER 36 | echo "SpaceVim installed" 37 | } 38 | 39 | if [ ! -d $SPACEVIM_HOME ]; then 40 | install_spacevim 41 | fi 42 | -------------------------------------------------------------------------------- /tmux/.local/share/icons/tmux.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | logomark copy 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/db.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 13 | 14 | -------------------------------------------------------------------------------- /xdg/.config/mimeapps.list: -------------------------------------------------------------------------------- 1 | [Default Applications] 2 | x-scheme-handler/http=firefox.desktop 3 | x-scheme-handler/https=firefox.desktop 4 | x-scheme-handler/ftp=firefox.desktop 5 | x-scheme-handler/chrome=firefox.desktop 6 | text/html=firefox.desktop 7 | application/pdf=zathura.desktop 8 | application/x-extension-htm=firefox.desktop 9 | application/x-extension-html=firefox.desktop 10 | application/x-extension-shtml=firefox.desktop 11 | application/xhtml+xml=firefox.desktop 12 | application/x-extension-xhtml=firefox.desktop 13 | application/x-extension-xht=firefox.desktop 14 | text/x-nfo=emacsclient.desktop 15 | text/x-python=emacsclient.desktop 16 | text/html=firefox.desktop 17 | text/x-emacs-lisp=emacsclient.desktop 18 | text/x-cmake=emacsclient.desktop 19 | text/x-readme=emacsclient.desktop 20 | x-scheme-handler/msteams=teams.desktop 21 | 22 | [Added Associations] 23 | x-scheme-handler/http=firefox.desktop; 24 | x-scheme-handler/https=firefox.desktop; 25 | x-scheme-handler/ftp=firefox.desktop; 26 | x-scheme-handler/chrome=firefox.desktop; 27 | text/html=firefox.desktop; 28 | application/x-extension-htm=firefox.desktop; 29 | application/x-extension-html=firefox.desktop; 30 | application/x-extension-shtml=firefox.desktop; 31 | application/xhtml+xml=firefox.desktop; 32 | application/x-extension-xhtml=firefox.desktop; 33 | application/x-extension-xht=firefox.desktop; 34 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-magit/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-magit layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-magit-packages 17 | '(persp-mode 18 | ;; magithub 19 | ) 20 | "The list of Lisp packages required by the storax-magit layer.") 21 | 22 | (defun storax-magit/post-init-persp-mode () 23 | (use-package persp-mode 24 | :init 25 | (progn 26 | (spacemacs/transient-state-register-add-bindings "layouts" 27 | '(("m" storax-magit/persp-for-repo :exit t)))))) 28 | 29 | ;; (defun storax-magit/init-magithub () 30 | ;; (use-package magithub 31 | ;; :after magit 32 | ;; :config (magithub-feature-autoinject t))) 33 | 34 | 35 | (defun storax-magit/persp-for-repo (name path) 36 | (interactive (let ((repos (magit-repos-alist))) 37 | (let ((reply (assoc (magit-completing-read "Git repositories" (magit-repos-alist)) repos))) 38 | (list (car reply) (cdr reply))))) 39 | (persp-switch name) 40 | (magit-status path)) 41 | 42 | 43 | 44 | ;;; packages.el ends here 45 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/git.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-avy/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-avy layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-avy.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | 13 | * Description 14 | Enhances avy by always displaying the same face for the nth key. 15 | If you have paths with different length, the 16 | faces are selected according to the order you have to press them 17 | This way the first key to press is always the same color and easier to 18 | identify. 19 | This is done by reversing the face selection order in 20 | =avy--overlay-at-full=. 21 | Before: 22 | #+BEGIN_EXAMPLE emacs-lisp 23 | (set-text-properties 24 | (- len i 1) (- len i) 25 | `(face ,(nth i avy-lead-faces)) 26 | str) 27 | #+END_EXAMPLE 28 | After: 29 | #+BEGIN_EXAMPLE emacs-lisp 30 | (set-text-properties 31 | (- len i 1) (- len i) 32 | `(face ,(nth (- len i) avy-lead-faces)) 33 | str) 34 | #+END_EXAMPLE 35 | It will also set =avy-background= to =t=. 36 | 37 | * Install 38 | To use this contribution add it to your =~/.spacemacs= 39 | 40 | #+begin_src emacs-lisp 41 | (setq-default dotspacemacs-configuration-layers '(storax-avy)) 42 | #+end_src 43 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-helm/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-helm layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[file:img/helm-logo.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | - [[Key bindings][Key bindings]] 13 | 14 | * Description 15 | Adds keybindings to helm and helm-swoop. 16 | In find files mode, it will skip the first two candidates if they are =.= or =..= 17 | This can sometimes be super useful and sometimes super annoying. 18 | 19 | * Install 20 | To use this contribution add it to your =~/.spacemacs= 21 | 22 | #+begin_src emacs-lisp 23 | (setq-default dotspacemacs-configuration-layers '(storax-helm)) 24 | #+end_src 25 | 26 | * Key bindings 27 | 28 | | Key Binding | Description | 29 | |-------------+--------------------------| 30 | | ~M-y~ | show kill ring with helm | 31 | | ~C-x C-f~ | helm find files | 32 | | ~C-x C-h C-i~ | helm imenu | 33 | | ~C-x b~ | helm buffer | 34 | 35 | In helm swoop mode: 36 | 37 | | Key Binding | Description | 38 | |-------------+---------------| 39 | | ~C-r~ | previous line | 40 | | ~C-s~ | next line | 41 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/spotify.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/images/spotify.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/dim.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * dim_xpm[] = { 3 | "15 16 48 1", 4 | " c None", 5 | ". c #060606", 6 | "+ c #000000", 7 | "@ c #050505", 8 | "# c #020202", 9 | "$ c #595959", 10 | "% c #868686", 11 | "& c #787878", 12 | "* c #4F4F4F", 13 | "= c #282828", 14 | "- c #CCCCCC", 15 | "; c #8C8C8C", 16 | "> c #404040", 17 | ", c #FFFFFF", 18 | "' c #F9F9F9", 19 | ") c #D6D6D6", 20 | "! c #262626", 21 | "~ c #DADADA", 22 | "{ c #272727", 23 | "] c #FEFEFE", 24 | "^ c #2C2C2C", 25 | "/ c #282827", 26 | "( c #010101", 27 | "_ c #D2D2D2", 28 | ": c #040404", 29 | "< c #5A5A5A", 30 | "[ c #F3F3F3", 31 | "} c #525252", 32 | "| c #474747", 33 | "1 c #FBFBFB", 34 | "2 c #747474", 35 | "3 c #878787", 36 | "4 c #757575", 37 | "5 c #585858", 38 | "6 c #8D8D8D", 39 | "7 c #505050", 40 | "8 c #D0D0D0", 41 | "9 c #252525", 42 | "0 c #D4D4D4", 43 | "a c #DDDDDD", 44 | "b c #222222", 45 | "c c #2E2E2E", 46 | "d c #C9C9C9", 47 | "e c #818181", 48 | "f c #3C3C3C", 49 | "g c #F4F4F4", 50 | "h c #5C5C5C", 51 | "i c #838383", 52 | " ", 53 | " . ++ @ ", 54 | " #$%&*+ ", 55 | " +=-;>,')!+ ", 56 | " =~{++,,,]^ ", 57 | " .#-/+(+,,,,_:@", 58 | " <;+((+,,,,[} ", 59 | " +%|+(#+,,,,12+", 60 | " +3|+##+,,,,14+", 61 | " 56+#(+,,,,[7 ", 62 | " @+89+#+,,,,0#@", 63 | " {ab++,,,,^ ", 64 | " +cdef,g0^+ ", 65 | " @hi27# ", 66 | " @ ++ @ ", 67 | " "}; 68 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/js.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * js_xpm[] = { 3 | "16 16 48 1", 4 | " c None", 5 | ". c #F7DF1E", 6 | "+ c #74690E", 7 | "@ c #837610", 8 | "# c #D4C01A", 9 | "$ c #5F560C", 10 | "% c #494209", 11 | "& c #9C8D13", 12 | "* c #322D06", 13 | "= c #2B2605", 14 | "- c #1E1B04", 15 | "; c #4A4209", 16 | "> c #161403", 17 | ", c #DFC91B", 18 | "' c #F6DE1E", 19 | ") c #080701", 20 | "! c #59500B", 21 | "~ c #F5DD1E", 22 | "{ c #E9D31C", 23 | "] c #655B0C", 24 | "^ c #000000", 25 | "/ c #2C2705", 26 | "( c #A89714", 27 | "_ c #272305", 28 | ": c #948612", 29 | "< c #D1BD19", 30 | "[ c #2E2906", 31 | "} c #4D4609", 32 | "| c #AC9C15", 33 | "1 c #F2DB1D", 34 | "2 c #F4DC1E", 35 | "3 c #6D630D", 36 | "4 c #0D0B02", 37 | "5 c #4D4509", 38 | "6 c #020200", 39 | "7 c #827510", 40 | "8 c #BFAC17", 41 | "9 c #030300", 42 | "0 c #50490A", 43 | "a c #786C0F", 44 | "b c #E8D21C", 45 | "c c #6F650E", 46 | "d c #484109", 47 | "e c #7B6F0F", 48 | "f c #EFD81D", 49 | "g c #BBA917", 50 | "h c #847710", 51 | "i c #F1DA1D", 52 | "................", 53 | "................", 54 | "................", 55 | "................", 56 | "................", 57 | "................", 58 | "................", 59 | ".......+@.#$%&..", 60 | ".......*%.=-;>,.", 61 | ".......*%')!~{..", 62 | ".......*%.]^/(..", 63 | ".......*%.'&_^:.", 64 | "....~<.[}'|12_%.", 65 | "....3456789*09a.", 66 | "....bcdef.g!%hi.", 67 | "................"}; 68 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/yas.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * yas_xpm[] = { 3 | "15 16 49 1", 4 | " c None", 5 | ". c #2D5597", 6 | "+ c #3F78D4", 7 | "@ c #407AD7", 8 | "# c #305AA0", 9 | "$ c #3A71C8", 10 | "% c #498BF6", 11 | "& c #3C73CC", 12 | "* c #203F6E", 13 | "= c #223E6F", 14 | "- c #3768B8", 15 | "; c #498AF5", 16 | "> c #3668B8", 17 | ", c #224172", 18 | "' c #3D75CE", 19 | ") c #427DDE", 20 | "! c #4889F2", 21 | "~ c #4889F3", 22 | "{ c #3C71C9", 23 | "] c #3F78D5", 24 | "^ c #3566B3", 25 | "/ c #396BBF", 26 | "( c #4583E8", 27 | "_ c #2B5291", 28 | ": c #29518E", 29 | "< c #3360AC", 30 | "[ c #427EE0", 31 | "} c #4787EE", 32 | "| c #396CBF", 33 | "1 c #417CDB", 34 | "2 c #3361AD", 35 | "3 c #407BD9", 36 | "4 c #4686EC", 37 | "5 c #396DC0", 38 | "6 c #3565B1", 39 | "7 c #396BBE", 40 | "8 c #4787EF", 41 | "9 c #4788F0", 42 | "0 c #2A508E", 43 | "a c #3B70C5", 44 | "b c #2C5292", 45 | "c c #2C5392", 46 | "d c #437FE1", 47 | "e c #26467F", 48 | "f c #294B87", 49 | "g c #4482E7", 50 | "h c #234276", 51 | "i c #26487F", 52 | "j c #3E76D1", 53 | " ", 54 | " .+@# ", 55 | " $%%& ", 56 | " **=-;%>,** ", 57 | "*')))!~))){ ", 58 | "*)%%%%%%%%] ", 59 | "*)%%%%%%%%] ", 60 | "*^/(%%%%%%]_: ", 61 | " <;%%%%%[[}| ", 62 | " :}%%%%%%%%1 ", 63 | " 2;%%%%%[345 ", 64 | "*67(%89%%%]0: ", 65 | "*)%;abc&%%] ", 66 | "*)%de fg%] ", 67 | "*')'h ij){ ", 68 | " *** *** "}; 69 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-notmuch/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-notmuch layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2016 David Zuber 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/storax/ 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | 11 | ;;; Commentary: 12 | 13 | ;;; Code: 14 | (defconst storax-notmuch-packages 15 | '(notmuch) 16 | "The list of Lisp packages required by the storax-notmuch layer.") 17 | 18 | (defun storax-notmuch/post-init-notmuch () 19 | "Init notmuch." 20 | (use-package notmuch 21 | :defer t 22 | :commands notmuch 23 | :init 24 | (progn 25 | (require 'message) 26 | (require 'sendmail) 27 | (setq message-kill-buffer-on-exit t 28 | sendmail-program "msmtp" 29 | send-mail-function 'sendmail-send-it 30 | notmuch-fcc-dirs '(("zuber.david@gmx.de" . "gmx/Gesendet/")) 31 | notmuch-search-oldest-first nil 32 | notmuch-hello-thousands-separator ". " 33 | message-sendmail-envelope-from 'header 34 | mail-specify-envelope-from 'header 35 | notmuch-show-all-multipart/alternative-parts nil 36 | notmuch-crypto-process-mime t 37 | mml2015-encrypt-to-self t 38 | mml2015-sign-with-sender t 39 | mail-interactive t 40 | notmuch-show-indent-messages-width 4)))) 41 | 42 | ;;; packages.el ends here 43 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-semantic/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-semantic layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;; See the Spacemacs documentation and FAQs for instructions on how to implement 15 | ;; a new layer: 16 | ;; 17 | ;; SPC h SPC layers RET 18 | ;; 19 | ;; 20 | ;; Briefly, each package to be installed or configured by this layer should be 21 | ;; added to `storax-semantic-packages'. Then, for each package PACKAGE: 22 | ;; 23 | ;; - If PACKAGE is not referenced by any other Spacemacs layer, define a 24 | ;; function `storax-semantic/init-PACKAGE' to load and initialize the package. 25 | 26 | ;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so 27 | ;; define the functions `storax-semantic/pre-init-PACKAGE' and/or 28 | ;; `storax-semantic/post-init-PACKAGE' to customize the package as it is loaded. 29 | 30 | ;;; Code: 31 | 32 | (defconst storax-semantic-packages 33 | '(helm)) 34 | 35 | (setq storax-semantic-excluded-packages '(stickyfunc-enhance)) 36 | 37 | (defun storax-semantic/post-init-helm () 38 | (use-package helm 39 | :defer t 40 | :config 41 | (spacemacs/set-leader-keys "so" 'helm-semantic-or-imenu))) 42 | 43 | ;;; packages.el ends here 44 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-erc/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-erc layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[img/storax-erc.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Gitter][Gitter]] 12 | - [[Install][Install]] 13 | - [[Key bindings][Key bindings]] 14 | 15 | * Description 16 | Configures erc. 17 | The default erc server is =irc.gitter.im=. 18 | Enables the following modules: 19 | - autojoin 20 | - button 21 | - completion 22 | - fill 23 | - hl-nicks 24 | - image 25 | - irccontrols 26 | - list 27 | - log 28 | - match 29 | - menu 30 | - move-to-prompt 31 | - netsplit 32 | - networks 33 | - noncommands 34 | - pcomplete 35 | - readonly 36 | - ring 37 | - stamp 38 | - track 39 | - youtube 40 | 41 | Also configures the auto join list. 42 | 43 | ** Gitter 44 | Gitter requires a special token you can fetch from [[https://irc.gitter.im/][irc.gitter.im]]. 45 | It should be stored in =storax-secret-file=. 46 | 47 | * Install 48 | To use this contribution add it to your =~/.spacemacs= 49 | 50 | #+begin_src emacs-lisp 51 | (setq-default dotspacemacs-configuration-layers '(storax-erc)) 52 | #+end_src 53 | 54 | * Key bindings 55 | 56 | | Key Binding | Description | 57 | |-------------+-----------------------| 58 | | ~ a i g~ | storax-erc/erc-gitter | 59 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-dash/README.org: -------------------------------------------------------------------------------- 1 | #+TITLE: storax-dash layer 2 | #+HTML_HEAD_EXTRA: 3 | 4 | #+CAPTION: logo 5 | 6 | # The maximum height of the logo should be 200 pixels. 7 | [[file:img/dash-256.png]] 8 | 9 | * Table of Contents :TOC_4_org:noexport: 10 | - [[Description][Description]] 11 | - [[Install][Install]] 12 | - [[Key bindings][Key bindings]] 13 | 14 | * Description 15 | Installs the wonderful [[https://github.com/areina/helm-dash][helm-dash]] package. 16 | It's used to browse documentation offline. 17 | It also adds two functions to make installing docsets easier. 18 | =storax/dash-install-set= and =storax/dash-install-user-set=. 19 | It will check if a docset already exists on disk. 20 | Because docset name and directoy are sometimes different, 21 | the functions will escape the docstring name. 22 | 23 | * Install 24 | To use this contribution add it to your =~/.spacemacs= 25 | 26 | #+begin_src emacs-lisp 27 | (setq-default dotspacemacs-configuration-layers '(storax-dash)) 28 | #+end_src 29 | 30 | * Key bindings 31 | This adds a new prefix =d= for =dash=. 32 | 33 | | Key Binding | Description | 34 | |-------------+-------------------------------| 35 | | ~ d h~ | helm-dash-at-point | 36 | | ~ d H~ | helm-dash | 37 | | ~ d i~ | helm-dash-install-docset | 38 | | ~ d u~ | helm-dash-install-user-docset | 39 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/svg.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * svg_xpm[] = { 3 | "16 16 52 1", 4 | " c None", 5 | ". c #000000", 6 | "+ c #160F05", 7 | "@ c #DD9933", 8 | "# c #DB9833", 9 | "$ c #130C04", 10 | "% c #38270D", 11 | "& c #2B1E0A", 12 | "* c #FFB13B", 13 | "= c #33230C", 14 | "- c #2D1F0A", 15 | "; c #36250C", 16 | "> c #3A280D", 17 | ", c #F9AD3A", 18 | "' c #1B1306", 19 | ") c #ECA437", 20 | "! c #E8A136", 21 | "~ c #1F1607", 22 | "{ c #FAAE3A", 23 | "] c #FEB03B", 24 | "^ c #35250C", 25 | "/ c #2F210B", 26 | "( c #BC822B", 27 | "_ c #090602", 28 | ": c #EAA236", 29 | "< c #E6A035", 30 | "[ c #0A0702", 31 | "} c #BF852C", 32 | "| c #1E1507", 33 | "1 c #C1862D", 34 | "2 c #EFA637", 35 | "3 c #BE842C", 36 | "4 c #1D1407", 37 | "5 c #130D04", 38 | "6 c #34240C", 39 | "7 c #0C0803", 40 | "8 c #010100", 41 | "9 c #DE9A33", 42 | "0 c #EEA537", 43 | "a c #F3A938", 44 | "b c #F2A838", 45 | "c c #E09B34", 46 | "d c #F0A738", 47 | "e c #DC9933", 48 | "f c #140E05", 49 | "g c #C2872D", 50 | "h c #1C1306", 51 | "i c #2A1D0A", 52 | "j c #3B290E", 53 | "k c #201607", 54 | "l c #FBAE3A", 55 | "m c #140D04", 56 | " .. ", 57 | " +@#$ ", 58 | " .%&.%**=.-;. ", 59 | " >*,'.)!.~{]^ ", 60 | " /{*(_:<[}*,& ", 61 | " .|1*(2)}*34. ", 62 | " 56.71****}[.^$ ", 63 | "89*20a****b02*#.", 64 | "8c*20b****b0d*e.", 65 | " +;.[}****(_.%f ", 66 | " .4}*}2)g*(h. ", 67 | " /{*}[:<7g*,i ", 68 | " j*,h.)!.kl*; ", 69 | " .>-.%**=./%. ", 70 | " +c9m ", 71 | " 8. "}; 72 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/go.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * golang_xpm[] = { 3 | "17 17 54 1", 4 | " c None", 5 | ". c #74AAB4", 6 | "+ c #C0DFE4", 7 | "@ c #A0D1D9", 8 | "# c #70C9D6", 9 | "$ c #D5F3F9", 10 | "% c #B8DADE", 11 | "& c #5F9199", 12 | "* c #78B1BB", 13 | "= c #BEBFC0", 14 | "- c #DCF2F6", 15 | "; c #7CC8D6", 16 | "> c #C9D2D3", 17 | ", c #D8E3E5", 18 | "' c #7EB6C0", 19 | ") c #7BC2CE", 20 | "! c #A2B6B9", 21 | "~ c #C3D8D8", 22 | "{ c #677F7D", 23 | "] c #9CB0B0", 24 | "^ c #B0D8DE", 25 | "/ c #83D1DE", 26 | "( c #77CFDD", 27 | "_ c #7EC9D5", 28 | ": c #78ADB1", 29 | "< c #716558", 30 | "[ c #77B4BA", 31 | "} c #6BC7D5", 32 | "| c #71CEDD", 33 | "1 c #73CEDD", 34 | "2 c #72CEDD", 35 | "3 c #7ECAD6", 36 | "4 c #A9C8CB", 37 | "5 c #79CAD7", 38 | "6 c #74CEDD", 39 | "7 c #73CEDE", 40 | "8 c #6ED1E0", 41 | "9 c #74CFDE", 42 | "0 c #75CFDE", 43 | "a c #6FCCDC", 44 | "b c #75D0DF", 45 | "c c #76D0DF", 46 | "d c #6DC8D9", 47 | "e c #7CB8BB", 48 | "f c #72CAD8", 49 | "g c #72CAD9", 50 | "h c #73CAD9", 51 | "i c #78AEB0", 52 | "j c #94A393", 53 | "k c #6EC1CE", 54 | "l c #6EC3D2", 55 | "m c #6EC4D3", 56 | "n c #6DC0CE", 57 | "o c #8E9482", 58 | " ", 59 | " ", 60 | " .+@#$%& ", 61 | " *=-;>,' ", 62 | " )!~{]^/ ", 63 | " (_:<[}| ", 64 | " 1234516 ", 65 | " 6678766 ", 66 | " 6666666 ", 67 | " 6666666 ", 68 | " 6666666 ", 69 | " 9666660 ", 70 | " ab969cd ", 71 | " efg6ghi ", 72 | " jkl9mno ", 73 | " ", 74 | " "}; 75 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-powerline layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-powerline-packages 17 | '(spaceline magit)) 18 | 19 | (defun storax-powerline/post-init-spaceline () 20 | (use-package spaceline-config 21 | :config 22 | (spaceline-define-segment storax/vc-segment 23 | (list (storax/powerline-remote default-face) (storax/powerline-vc)) 24 | :when (or vc-mode (string-match "magit" (format "%s" major-mode)))) 25 | (spaceline-define-segment storax/spotify-segment 26 | (list (storax/create-image-with-face storax/spotify-data default-face)) 27 | :when storax/spotify-connected) 28 | (storax/spaceline-spacemacs-theme '(new-version :when active)))) 29 | 30 | (defun storax-powerline/post-init-magit () 31 | (use-package magit 32 | :config 33 | (defun storax/setremoteurl () 34 | "Save the current remote url." 35 | (make-local-variable 'storax/remoteurl) 36 | (setq storax/remoteurl (magit-get "remote" "origin" "url"))) 37 | ;; Kinda like each time we open a file we set the storax/remoteurl 38 | ;; then we can display an icon in the modeline accordingly 39 | (add-hook 'after-change-major-mode-hook 'storax/setremoteurl))) 40 | 41 | ;;; packages.el ends here 42 | -------------------------------------------------------------------------------- /zsh/.zsh.d/zplug.zsh: -------------------------------------------------------------------------------- 1 | # ███████╗███████╗██╗ ██╗ 2 | # ╚══███╔╝██╔════╝██║ ██║ 3 | # ███╔╝ ███████╗███████║ 4 | # ███╔╝ ╚════██║██╔══██║ 5 | # ███████╗███████║██║ ██║ 6 | # ╚══════╝╚══════╝╚═╝ ╚═╝ 7 | # zplug 8 | 9 | if [[ -z $ZPLUG_HOME ]]; then 10 | export ZPLUG_HOME=~/.zplug 11 | fi 12 | 13 | # Install zplug if it does not exist 14 | [ -d $ZPLUG_HOME ] || source ~/.zsh.d/zplug/installer.zsh 15 | 16 | source ~/.zplug/init.zsh 17 | 18 | zplug "agkozak/zsh-z" 19 | zplug "b4b4r07/zsh-vimode-visual", defer:3 20 | zplug "zsh-users/zaw" 21 | # zplug "oknowton/zsh-dwim" 22 | zplug "plugins/colored-man-pages", from:oh-my-zsh 23 | zplug "plugins/colorize", from:oh-my-zsh 24 | zplug "plugins/command-not-found", from:oh-my-zsh 25 | zplug "plugins/copydir", from:oh-my-zsh 26 | zplug "plugins/copyfile", from:oh-my-zsh 27 | #zplug "plugins/cp", from:oh-my-zsh 28 | zplug "plugins/dirhistory", from:oh-my-zsh 29 | zplug "plugins/emacs", from:oh-my-zsh 30 | zplug "plugins/gem", from:oh-my-zsh 31 | zplug "plugins/git", from:oh-my-zsh 32 | zplug "plugins/git-flow", from:oh-my-zsh 33 | zplug "plugins/nyan", from:oh-my-zsh 34 | zplug "plugins/pip", from:oh-my-zsh 35 | zplug "plugins/python", from:oh-my-zsh 36 | zplug "plugins/sudo", from:oh-my-zsh 37 | zplug "plugins/vagrant", from:oh-my-zsh 38 | zplug "rupa/z", use:z.sh 39 | zplug "zsh-users/zsh-autosuggestions" 40 | zplug "zsh-users/zsh-completions" 41 | zplug "zsh-users/zsh-syntax-highlighting", defer:2 42 | zplug "mafredri/zsh-async", from:"github", use:"async.zsh" 43 | 44 | # if ! zplug check; then 45 | # zplug install 46 | # fi 47 | 48 | zplug load 49 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-i3/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-i3 layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;; See the Spacemacs documentation and FAQs for instructions on how to implement 15 | ;; a new layer: 16 | ;; 17 | ;; SPC h SPC layers RET 18 | ;; 19 | ;; 20 | ;; Briefly, each package to be installed or configured by this layer should be 21 | ;; added to `storax-i3-packages'. Then, for each package PACKAGE: 22 | ;; 23 | ;; - If PACKAGE is not referenced by any other Spacemacs layer, define a 24 | ;; function `storax-i3/init-PACKAGE' to load and initialize the package. 25 | 26 | ;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so 27 | ;; define the functions `storax-i3/pre-init-PACKAGE' and/or 28 | ;; `storax-i3/post-init-PACKAGE' to customize the package as it is loaded. 29 | 30 | ;;; Code: 31 | 32 | (defconst storax-i3-packages 33 | '(i3wm 34 | (i3wm-config-mode 35 | :location (recipe :fetcher github :repo "Alexander-Miller/i3wm-Config-Mode"))) 36 | "The list of Lisp packages required by the storax-i3 layer.") 37 | 38 | (defun storax-i3/init-i3wm () 39 | (use-package i3wm 40 | :defer t)) 41 | 42 | (defun storax-i3/init-i3wm-config-mode () 43 | (use-package i3wm-config-mode 44 | :defer t 45 | :mode "\\.i3/config$")) 46 | ;;; packages.el ends here 47 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-dired/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-dired layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;; See the Spacemacs documentation and FAQs for instructions on how to implement 15 | ;; a new layer: 16 | ;; 17 | ;; SPC h SPC layers RET 18 | ;; 19 | ;; 20 | ;; Briefly, each package to be installed or configured by this layer should be 21 | ;; added to `storax-dired-packages'. Then, for each package PACKAGE: 22 | ;; 23 | ;; - If PACKAGE is not referenced by any other Spacemacs layer, define a 24 | ;; function `storax-dired/init-PACKAGE' to load and initialize the package. 25 | 26 | ;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so 27 | ;; define the functions `storax-dired/pre-init-PACKAGE' and/or 28 | ;; `storax-dired/post-init-PACKAGE' to customize the package as it is loaded. 29 | 30 | ;;; Code: 31 | 32 | (defconst storax-dired-packages 33 | '(dired dired-narrow) 34 | "The list of Lisp packages required by the storax-dired layer.") 35 | 36 | (defun storax-dired/post-init-dired () 37 | (use-package dired 38 | :init 39 | (setq dired-listing-switches "-alh"))) 40 | 41 | (defun storax-dired/init-dired-narrow () 42 | (use-package dired-narrow 43 | :bind (:map dired-mode-map 44 | ("/" . dired-narrow)))) 45 | 46 | ;;; packages.el ends here 47 | -------------------------------------------------------------------------------- /vim/.SpaceVim.d/init.toml: -------------------------------------------------------------------------------- 1 | # This is a basic configuration example for SpaceVim 2 | 3 | # All SpaceVim options are below [options] snippet 4 | [options] 5 | # set spacevim theme. by default colorscheme layer is not loaded, 6 | # if you want to use more colorscheme, please load the colorscheme 7 | # layer, the value of this option is a string. 8 | colorscheme = "gruvbox" 9 | colorscheme_bg = "dark" 10 | # Disable guicolors in basic mode, many terminal do not support 24bit 11 | # true colors, the type of the value is boolean, true or false. 12 | enable_guicolors = true 13 | # Disable statusline separator, if you want to use other value, please 14 | # install nerd fonts 15 | statusline_separator = "nil" 16 | statusline_separator = "bar" 17 | buffer_index_type = 4 18 | # Display file type icon on the tabline, If you do not have nerd fonts 19 | # installed, please change the value to false 20 | enable_tabline_filetype_icon = true 21 | # Display current mode text on statusline, by default It is disabled, 22 | # only color will be changed when switch modes. 23 | enable_statusline_mode = false 24 | 25 | # Enable autocomplete layer 26 | [[layers]] 27 | name = "autocomplete" 28 | auto-completion-return-key-behavior = "complete" 29 | auto-completion-tab-key-behavior = "cycle" 30 | 31 | [[layers]] 32 | name = "shell" 33 | default_position = "top" 34 | default_height = 30 35 | 36 | # This is an example for adding custom plugins lilydjwg/colorizer 37 | [[custom_plugins]] 38 | repo = "lilydjwg/colorizer" 39 | merged = false 40 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/archive.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-org/config.el: -------------------------------------------------------------------------------- 1 | ;;; config.el --- storax-org layer config file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defvar storax/org-organization-task-id "6a726688-4bf5-4d7d-b00c-83d766c221a3" 17 | "Id of the default clocking task that has to live in some file. 18 | Use `org-id-get-create' to create a new id for some task.") 19 | (defvar storax/org-hide-scheduled-and-waiting-next-tasks t) 20 | (defvar storax/org-source-link-file-hist nil 21 | "History for files to insert links in.") 22 | 23 | (defvar storax-org-layer-dir (file-name-directory load-file-name)) 24 | 25 | (defvar storax-org-caputre-dir 26 | (mapconcat 27 | 'file-name-as-directory 28 | (list storax-org-layer-dir "capture") 29 | nil)) 30 | 31 | (defvar storax-org-template-dir 32 | (mapconcat 33 | 'file-name-as-directory 34 | (list storax-org-layer-dir "templates") 35 | nil)) 36 | 37 | (defvar storax-org-rtd-template 38 | (concat storax-org-template-dir "rtdsinglefile.html")) 39 | 40 | (defvar storax-org-rtd-theme-path 41 | (mapconcat 42 | 'file-name-as-directory 43 | (list storax-org-template-dir "rtd") 44 | nil)) 45 | 46 | (defvar storax-org-warning-sound 47 | (concat storax-org-layer-dir "warning.wav")) 48 | 49 | (defvar storax-org-lob-file 50 | (concat storax-org-layer-dir "lob.org")) 51 | ;;; config.el ends here 52 | -------------------------------------------------------------------------------- /gentoo/bin/kernelmake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | oldpath="$PATH" 3 | export PATH="/usr/lib/ccache/bin${PATH:+:}$PATH" 4 | export CCACHE_DIR="/media/data/gentoo/ccache" 5 | 6 | KERNEL_CONFIG=/home/david/.config/kernel/config 7 | 8 | if [ ! -e $KERNEL_CONFIG ]; then 9 | echo "Kernel config at $KERNEL_CONFIG not found" 10 | exit 1 11 | fi 12 | 13 | # check if boot is mounted 14 | mount | grep -q /boot 15 | if [ $? -eq 1 ]; then 16 | mount /boot 17 | BOOT_MOUNTED=1 18 | fi 19 | 20 | echo "Set the symlink..." 21 | eselect kernel list 22 | 23 | echo "Enter the selection for the latest kernel" 24 | echo 25 | read PICKED 26 | eselect kernel set $PICKED 27 | 28 | echo "Copying previous configuration..." 29 | ln -sf $KERNEL_CONFIG /usr/src/linux/.config 30 | 31 | cd /usr/src/linux 32 | 33 | echo "Configuring new kernel..." 34 | make oldconfig 35 | 36 | echo "Saving new config" 37 | cp -L /usr/src/linux/.config $KERNEL_CONFIG 38 | 39 | echo "Compiling the new kernel..." 40 | make -j8 41 | 42 | echo "Preparing Modules..." 43 | make -j8 modules_prepare 44 | 45 | echo "Installing Modules..." 46 | make -j8 modules_install 47 | 48 | echo "Installing the kernel..." 49 | make -j8 install 50 | 51 | echo "Rebuilding Packages..." 52 | emerge @module-rebuild 53 | 54 | echo "Generating initramfs..." 55 | export PATH="$oldpath" 56 | genkernel --install --lvm initramfs 57 | 58 | echo "Please Remove Old Files from /boot Before Continuing" 59 | read 60 | 61 | echo "Updating GRUB..." 62 | grub-mkconfig -o /boot/grub/grub.cfg 63 | 64 | echo "Cleaning Old Kernel Sources..." 65 | emerge --ask --depclean gentoo-sources 66 | 67 | [[ -v BOOT_MOUNTED ]] && umount /boot 68 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-go/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-go layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2018 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;; See the Spacemacs documentation and FAQs for instructions on how to implement 15 | ;; a new layer: 16 | ;; 17 | ;; SPC h SPC layers RET 18 | ;; 19 | ;; 20 | ;; Briefly, each package to be installed or configured by this layer should be 21 | ;; added to `storax-go-packages'. Then, for each package PACKAGE: 22 | ;; 23 | ;; - If PACKAGE is not referenced by any other Spacemacs layer, define a 24 | ;; function `storax-go/init-PACKAGE' to load and initialize the package. 25 | 26 | ;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so 27 | ;; define the functions `storax-go/pre-init-PACKAGE' and/or 28 | ;; `storax-go/post-init-PACKAGE' to customize the package as it is loaded. 29 | 30 | ;;; Code: 31 | 32 | (defconst storax-go-packages 33 | '(dap-mode) 34 | "The list of Lisp packages required by the storax-go layer.") 35 | 36 | (defun storax-go/pre-init-dap-mode () 37 | (add-to-list 'spacemacs--dap-supported-modes 'go-mode) 38 | (add-hook 'go-mode-local-vars-hook #'storax-go/go-setup-lsp-dap)) 39 | 40 | 41 | (defun storax-go/post-init-dap-mode () 42 | (use-package dap-mode 43 | :config 44 | (progn 45 | (dap-register-debug-provider "go" 'storax-go/dap-go-populate-default-args)))) 46 | 47 | ;;; packages.el ends here 48 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/term.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * term_xpm[] = { 3 | "16 16 60 1", 4 | " c None", 5 | ". c #090909", 6 | "+ c #080808", 7 | "@ c #070707", 8 | "# c #616161", 9 | "$ c #6B6B6B", 10 | "% c #6C6C6C", 11 | "& c #6D6D6D", 12 | "* c #6E6E6E", 13 | "= c #626262", 14 | "- c #3E3E3E", 15 | "; c #303030", 16 | "> c #404040", 17 | ", c #313131", 18 | "' c #323232", 19 | ") c #3F3F3F", 20 | "! c #3A3A3A", 21 | "~ c #515151", 22 | "{ c #D3D3D3", 23 | "] c #828282", 24 | "^ c #2D2D2D", 25 | "/ c #2F2F2F", 26 | "( c #2C2C2C", 27 | "_ c #060606", 28 | ": c #363636", 29 | "< c #D8D8D8", 30 | "[ c #3B3B3B", 31 | "} c #262626", 32 | "| c #2B2B2B", 33 | "1 c #2A2A2A", 34 | "2 c #393939", 35 | "3 c #A9A9A9", 36 | "4 c #BEBEBE", 37 | "5 c #252525", 38 | "6 c #292929", 39 | "7 c #282828", 40 | "8 c #373737", 41 | "9 c #494949", 42 | "0 c #B4B4B4", 43 | "a c #474747", 44 | "b c #222222", 45 | "c c #272727", 46 | "d c #343434", 47 | "e c #2E2E2E", 48 | "f c #1C1C1C", 49 | "g c #171717", 50 | "h c #5B5B5B", 51 | "i c #8A8A8A", 52 | "j c #242424", 53 | "k c #050505", 54 | "l c #202020", 55 | "m c #1D1D1D", 56 | "n c #1F1F1F", 57 | "o c #1B1B1B", 58 | "p c #191919", 59 | "q c #232323", 60 | "r c #212121", 61 | "s c #1E1E1E", 62 | "t c #040404", 63 | "u c #353535", 64 | " ", 65 | " .++++++++++. ", 66 | " @#$%&&***&%$=@ ", 67 | " @-;>,''''',;)@ ", 68 | " @!~{]^////^(!@ ", 69 | " _:]<[}||||112@ ", 70 | " _'-3456666678_ ", 71 | " _/90abccccccd_ ", 72 | " _efgfhiij555'_ ", 73 | " k/lmnoppmqbb/k ", 74 | " k^lrrnnnnrrl^k ", 75 | " k|nnnnnnnnnn|k ", 76 | " k6mmmssssmmm6k ", 77 | " t/dduuuuuuud/t ", 78 | " tkkkkkkkkkkt ", 79 | " "}; 80 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/py.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/coffee.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * coffee_xpm[] = { 3 | "16 16 61 1", 4 | " c None", 5 | ". c #272737", 6 | "+ c #1F1F2E", 7 | "@ c #535363", 8 | "# c #393948", 9 | "$ c #30303F", 10 | "% c #171726", 11 | "& c #616170", 12 | "* c #5B5B6A", 13 | "= c #242534", 14 | "- c #1D1D2D", 15 | "; c #0F0F1F", 16 | "> c #505060", 17 | ", c #494959", 18 | "' c #414251", 19 | ") c #383848", 20 | "! c #302F3F", 21 | "~ c #282837", 22 | "{ c #202130", 23 | "] c #1A1A29", 24 | "^ c #141423", 25 | "/ c #101020", 26 | "( c #0F0F1E", 27 | "_ c #4E4E5D", 28 | ": c #4B4B5A", 29 | "< c #454555", 30 | "[ c #434352", 31 | "} c #40404F", 32 | "| c #3B3B49", 33 | "1 c #353544", 34 | "2 c #2E2E3D", 35 | "3 c #272736", 36 | "4 c #20202F", 37 | "5 c #10101F", 38 | "6 c #3A3A49", 39 | "7 c #353644", 40 | "8 c #323141", 41 | "9 c #2D2D3C", 42 | "0 c #262736", 43 | "a c #212130", 44 | "b c #1B1A2A", 45 | "c c #151625", 46 | "d c #111120", 47 | "e c #2D2D3D", 48 | "f c #2C2C3B", 49 | "g c #292938", 50 | "h c #252433", 51 | "i c #201F2F", 52 | "j c #161625", 53 | "k c #121120", 54 | "l c #262635", 55 | "m c #242433", 56 | "n c #1D1D2C", 57 | "o c #151524", 58 | "p c #121221", 59 | "q c #1E1D2D", 60 | "r c #191928", 61 | "s c #171625", 62 | "t c #141422", 63 | "u c #171727", 64 | "v c #131322", 65 | " ", 66 | " ", 67 | " .+ ", 68 | " @ #$ % ", 69 | " &* =- ;;", 70 | " >,')!~{]^/( ", 71 | " _:< ;( ", 72 | " [}|1234]^5((( ", 73 | " 6#7890abcd(((; ", 74 | "$ efghi]jk(((( ", 75 | "0l m4n]op((((; ", 76 | " q rst/((((( ", 77 | " u vd(((((( ", 78 | " ;(((((; ", 79 | " ", 80 | " "}; 81 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/java.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /x11/.xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ██╗ ██╗██╗███╗ ██╗██╗████████╗██████╗ ██████╗ 3 | # ╚██╗██╔╝██║████╗ ██║██║╚══██╔══╝██╔══██╗██╔════╝ 4 | # ╚███╔╝ ██║██╔██╗ ██║██║ ██║ ██████╔╝██║ 5 | # ██╔██╗ ██║██║╚██╗██║██║ ██║ ██╔══██╗██║ 6 | # ██╔╝ ██╗██║██║ ╚████║██║ ██║ ██║ ██║╚██████╗ 7 | # ╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ 8 | # xinitrc 9 | 10 | _main() { 11 | echo "Running X session wrapper" 12 | 13 | # Load resources 14 | for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do 15 | if [ -f "$file" ]; then 16 | echo "Loading resource: $file" 17 | xrdb -merge "$file" 18 | fi 19 | done 20 | 21 | # Load keymaps 22 | for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do 23 | if [ -f "$file" ]; then 24 | echo "Loading keymap: $file" 25 | setxkbmap `cat "$file"` 26 | XKB_IN_USE=yes 27 | fi 28 | done 29 | 30 | # Load xmodmap if not using XKB 31 | if [ -z "$XKB_IN_USE" ]; then 32 | for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do 33 | if [ -f "$file" ]; then 34 | echo "Loading modmap: $file" 35 | xmodmap "$file" 36 | fi 37 | done 38 | fi 39 | 40 | unset XKB_IN_USE 41 | 42 | # Run all system xinitrc shell scripts. 43 | xinitdir="/etc/X11/xinit/xinitrc.d" 44 | if [ -d "$xinitdir" ]; then 45 | for script in $xinitdir/*; do 46 | echo "Loading xinit script $script" 47 | if [ -x "$script" -a ! -d "$script" ]; then 48 | . "$script" 49 | fi 50 | done 51 | fi 52 | 53 | echo "X session wrapper complete, running session" 54 | exec dbus-launch --exit-with-session /usr/bin/i3 55 | } 56 | 57 | _main &> ~/.xlog 58 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-powerline/config.el: -------------------------------------------------------------------------------- 1 | ;;; config.el --- storax-powerline layer config file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defvar storax-powerline/imgdir 17 | (file-name-as-directory (concat (file-name-directory load-file-name) "images"))) 18 | 19 | (defvar storax/spotify-connected nil) 20 | 21 | (defvar storax/github-mark-data 22 | (storax/string-from-file (concat storax-powerline/imgdir "mark-github.svg"))) 23 | (defvar storax/bitbucket-mark-data 24 | (storax/string-from-file (concat storax-powerline/imgdir "mark-bitbucket.svg"))) 25 | (defvar storax/wl-decrypt-success-img 26 | (storax/string-from-file (concat storax-powerline/imgdir "wl-decrypt-success.svg"))) 27 | (defvar storax/wl-decrypt-fail-img 28 | (storax/string-from-file (concat storax-powerline/imgdir "wl-decrypt-fail.svg"))) 29 | (defvar storax/wl-verify-success-img 30 | (storax/string-from-file (concat storax-powerline/imgdir "wl-verify-success.svg"))) 31 | (defvar storax/wl-verify-fail-img 32 | (storax/string-from-file (concat storax-powerline/imgdir "wl-verify-fail.svg"))) 33 | (defvar storax/spotify-data 34 | (storax/string-from-file (concat storax-powerline/imgdir "spotify.svg"))) 35 | (defvar storax/mpc-right 36 | (storax/create-img (concat storax-powerline/imgdir "mpc-right.png") " " 'png)) 37 | (defvar storax/mpc-left 38 | (storax/create-img (concat storax-powerline/imgdir "mpc-left-with-text.png") " " 'png)) 39 | 40 | ;; Save the current remote url in each buffer 41 | (defvar storax/remoteurl "") 42 | 43 | ;;; config.el ends here 44 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-helm/funcs.el: -------------------------------------------------------------------------------- 1 | ;;; funcs.el --- storax-helm layer functions file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defun storax/helm-skip-dots (old-func &rest args) 17 | "Skip . and .. initially in helm-find-files. First call OLD-FUNC with ARGS." 18 | (apply old-func args) 19 | (let ((sel (helm-get-selection))) 20 | (if (and (stringp sel) (string-match "/\\.$" sel)) 21 | (helm-next-line 2))) 22 | (let ((sel (helm-get-selection))) ; if we reached .. move back 23 | (if (and (stringp sel) (string-match "/\\.\\.$" sel)) 24 | (helm-previous-line 1)))) 25 | 26 | (defun storax/helm-ag-in-dir (dir) 27 | "Search with ag in the given DIR." 28 | (helm-do-ag nil (list dir))) 29 | 30 | (defun storax/create-helm-ag-bindings (dir-alist) 31 | "Create keybindings for searching dirs with helm-ag. 32 | 33 | The given DIR-ALIST should map keybindings to directories. 34 | All keybindings are prepended with `storax-helm-ag-dirs-prefix'" 35 | (dolist (keydir dir-alist) 36 | (let* ((key (car keydir)) 37 | (dir (cdr keydir)) 38 | (keychord (concat storax-helm-ag-dirs-prefix key)) 39 | (symname (concat "storax-helm-ag-" (file-name-base (directory-file-name dir)))) 40 | (sym (make-symbol symname)) 41 | (lf `(lambda () 42 | ,(concat "Search in " dir " with `helm-ag'.") 43 | (interactive) 44 | (storax/helm-ag-in-dir ,dir)))) 45 | (fset sym lf) 46 | (spacemacs/set-leader-keys keychord sym)))) 47 | 48 | ;;; funcs.el ends here 49 | -------------------------------------------------------------------------------- /rofi/bin/roficlip: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Original code: https://github.com/gilbertw1/roficlip 4 | # Verify clipster is running, fail otherwise 5 | # clipster -o > /dev/null 2>&1 6 | # if [ $? -ne 0 ]; then 7 | # echo 'Failed to retrieve history from Clipster, please ensure daemon is running!' 8 | # exit 1 9 | # fi 10 | 11 | # Extract clipboard history from clipster and format for rofi 12 | # - Remove Newlines from clips 13 | # - Limit line length to 200 chars (for display in rofi) 14 | # - Split into lines based on NUL byte 15 | # - Remove Leading whitespace 16 | # - Remove empty clipboard items 17 | # - Add line numbers to clip items 18 | # NOTE: This is all done in a single line because bash can't store a NUL byte 19 | C_HIST="$(clipster -c -o -n 500 -0 \ 20 | | gawk 'BEGIN {RS = "\0"; ORS = "\0"} NF > 0 { print substr($0, 1, 250) }' \ 21 | | gawk 'BEGIN {RS = "\0"; FS="\n"; OFS=" " } { $1=$1; print $0 }' \ 22 | | sed 's/^ *//' \ 23 | | gawk '{printf("%003d %s\n", NR, $0)}')" 24 | 25 | # Echo clipboard items to Rofi and save the selection made by user 26 | SELECTION="$(echo "$C_HIST" | rofi -dmenu -i -p 'Clipboard: ')" 27 | 28 | # Verify user made a selection 29 | if [ -n "$SELECTION" ]; then 30 | 31 | # Retrieve the line number from the beginning of selection and remove leading zeros 32 | NUMBER="$(echo "$SELECTION" | cut -c1-3 | sed 's/^0*//')" 33 | 34 | # Extract clipboard history from clipster and find the nth non-empty clip based selected line number 35 | EXACT_SELECTION="$(clipster -c -o -n 500 -0 \ 36 | | gawk 'BEGIN {RS = "\0"; ORS = "\0"} NF > 0 { print }' \ 37 | | gawk 'BEGIN {RS = "\0"}'"NR == $NUMBER { print; exit }")" 38 | 39 | # Echo the selection back to clipster 40 | echo -n "$EXACT_SELECTION" | clipster -p 41 | echo -n "$EXACT_SELECTION" | clipster -c 42 | fi 43 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/cl.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 16 | 17 | 20 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-prodigy/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-prodigy layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2018 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Code: 13 | 14 | (defconst storax-prodigy-packages 15 | '(prodigy) 16 | "The list of Lisp packages required by the storax-prodigy layer.") 17 | 18 | (defun storax-prodigy/post-init-prodigy () 19 | (use-package prodigy 20 | :config 21 | (progn 22 | (prodigy-define-tag 23 | :name 'flask 24 | :ready-message "Running on https://127\\.0\\.0\\.1:[0-9]+") 25 | (prodigy-define-tag 26 | :name 'mongod 27 | :ready-message "waiting for connections on port ") 28 | (prodigy-define-tag 29 | :name 'parceljs 30 | :ready-message "Server running at") 31 | (prodigy-define-service 32 | :name "crib server" 33 | :command "crib" 34 | :args '("-c" "config.yaml" "server" "run") 35 | :cwd "~/projects/crib" 36 | :tags '(flask) 37 | :kill-process-buffer-on-stop t 38 | :init (lambda () 39 | (pyvenv-workon "crib2"))) 40 | (prodigy-define-service 41 | :name "crib mongodb" 42 | :command "mongod" 43 | :args '("--config" "mongod.yaml") 44 | :cwd "~/projects/crib" 45 | :tags '(mongod) 46 | :kill-process-buffer-on-stop t) 47 | (prodigy-define-service 48 | :name "crib web-ui" 49 | :command "npm" 50 | :args '("run" "dev") 51 | :port 1234 52 | :cwd "~/projects/crib-web-ui" 53 | :tags '(parceljs) 54 | :kill-process-buffer-on-stop t)))) 55 | 56 | 57 | ;;; packages.el ends here 58 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/el.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 16 | 17 | 20 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/css.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * css_xpm[] = { 3 | "16 16 72 1", 4 | " c None", 5 | ". c #264EE4", 6 | "+ c #264DE4", 7 | "@ c #2652E6", 8 | "# c #2756E9", 9 | "$ c #2754E8", 10 | "% c #264DE5", 11 | "& c #2859EB", 12 | "* c #2965F1", 13 | "= c #285EED", 14 | "- c #7A90E7", 15 | "; c #C4CBEA", 16 | "> c #ADBFF3", 17 | ", c #D4E0FC", 18 | "' c #82A5F7", 19 | ") c #275CEC", 20 | "! c #254CE3", 21 | "~ c #6D86E7", 22 | "{ c #DEE7FD", 23 | "] c #FFFFFF", 24 | "^ c #87A9F7", 25 | "/ c #285AEB", 26 | "( c #264DE3", 27 | "_ c #264CE4", 28 | ": c #6792F5", 29 | "< c #739AF6", 30 | "[ c #2757EA", 31 | "} c #4365E5", 32 | "| c #9CACE8", 33 | "1 c #92AAF1", 34 | "2 c #A9C1F9", 35 | "3 c #C8D7FB", 36 | "4 c #608DF5", 37 | "5 c #2755E8", 38 | "6 c #4869E6", 39 | "7 c #EBEBEB", 40 | "8 c #C5D1F5", 41 | "9 c #4B7EF3", 42 | "0 c #2653E7", 43 | "a c #284EE4", 44 | "b c #4D6DE5", 45 | "c c #3E60E5", 46 | "d c #A0BBF9", 47 | "e c #3870F2", 48 | "f c #2751E6", 49 | "g c #E8E8EB", 50 | "h c #A3B1E8", 51 | "i c #B3C9FA", 52 | "j c #FAFBFF", 53 | "k c #2A66F1", 54 | "l c #264FE5", 55 | "m c #D8DCEA", 56 | "n c #E5E6EB", 57 | "o c #B5BFE9", 58 | "p c #86A1F0", 59 | "q c #C4D5FB", 60 | "r c #F8FAFF", 61 | "s c #E7EEFD", 62 | "t c #2965F0", 63 | "u c #6983E6", 64 | "v c #A7B5E9", 65 | "w c #DCDFEB", 66 | "x c #EDF2FE", 67 | "y c #B5CAFA", 68 | "z c #7199F6", 69 | "A c #2862F0", 70 | "B c #426DEC", 71 | "C c #2B66F1", 72 | "D c #2964F1", 73 | "E c #285DEC", 74 | "F c #285BEC", 75 | "G c #264EE5", 76 | " ", 77 | " ", 78 | " .+++++@####$+ ", 79 | " %+++++&****=+ ", 80 | " ++-;;;>,,,')+ ", 81 | " !+~;;;>,{]^/( ", 82 | " _+++++&*:]<[+ ", 83 | " +}|||123]45 ", 84 | " +67778]]]90 ", 85 | " +abc+&*d]ef ", 86 | " +agh+&*ijkl ", 87 | " ++mnopqrst+ ", 88 | " ++uvw8xyzA+ ", 89 | " .+++aBC*DE+ ", 90 | " (++++[F$.+( ", 91 | " G++ "}; 92 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/xml.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *xml[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "16 16 69 1 ", 5 | " c #CE392C", 6 | ". c #CE392D", 7 | "X c #CE3A2E", 8 | "o c #D2382B", 9 | "O c #D1382C", 10 | "+ c #D1392C", 11 | "@ c #D4392C", 12 | "# c #D7392C", 13 | "$ c #D9392D", 14 | "% c #D93A2D", 15 | "& c #DB3A2D", 16 | "* c #DE3B2E", 17 | "= c #DF3B2E", 18 | "- c #C73D31", 19 | "; c #CC3D31", 20 | ": c #CE3C30", 21 | "> c #CF3D31", 22 | ", c #D33D31", 23 | "< c #D23F33", 24 | "1 c #DD3D30", 25 | "2 c #E03B2E", 26 | "3 c #E03C2E", 27 | "4 c #E13C2E", 28 | "5 c #E23C2E", 29 | "6 c #E33C2E", 30 | "7 c #E73D2F", 31 | "8 c #E83D2F", 32 | "9 c #E93E30", 33 | "0 c #CF4337", 34 | "q c #CE453A", 35 | "w c #D14135", 36 | "e c #D94337", 37 | "r c #D04338", 38 | "t c #D1493E", 39 | "y c #D64B3F", 40 | "u c #D84B40", 41 | "i c #D84E43", 42 | "p c #D84F44", 43 | "a c #D9584D", 44 | "s c #DC6056", 45 | "d c #D9655C", 46 | "f c #DD6E65", 47 | "g c #E2756C", 48 | "h c #EB8D86", 49 | "j c #EB8E86", 50 | "k c #E99189", 51 | "l c #EC9088", 52 | "z c #ED9189", 53 | "x c #ED9D96", 54 | "c c #EF9D96", 55 | "v c #EF9F98", 56 | "b c #F0A6A0", 57 | "n c #F3ABA5", 58 | "m c #F3ACA6", 59 | "M c #F3ADA7", 60 | "N c #F7C4C0", 61 | "B c #FAE2E0", 62 | "V c #F9E4E2", 63 | "C c #FCEDEB", 64 | "Z c #FCEDEC", 65 | "A c #FDF2F1", 66 | "S c #FDF5F4", 67 | "D c #FCF6F5", 68 | "F c #FCFBFB", 69 | "G c #FEFAFA", 70 | "H c #FDFCFC", 71 | "J c #FEFDFD", 72 | "K c #FEFEFE", 73 | "L c #FFFFFF", 74 | /* pixels */ 75 | "LLLLLLLLLLLLLLLL", 76 | "LLLLLLLLLLLLLLLL", 77 | "LLLLLLLLLVDLLLLL", 78 | "LLLLLLLLs7,LLLLL", 79 | "LLLLLLLJo9XLLLLL", 80 | "LLLApd$995g", 83 | "t992zLl99lLn399;", 84 | "N.899,:9%Fw899+M", 85 | "LLc 8969rG29OjLL", 86 | "LLLLve98nKfhLLLL", 87 | "LLLLL-9@JLLLLLLL", 88 | "LLLLLxqbLLLLLLLL", 89 | "LLLLLLLLLLLLLLLL", 90 | "LLLLLLLLLLLLLLLL" 91 | }; 92 | -------------------------------------------------------------------------------- /backup/.config/backblaze/restic/run_backup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Runs Restic backup on a schedule via cron, emails with status 3 | 4 | EMAIL="zuber.david@gmx.de" 5 | LOG="/var/log/restic.log" 6 | RDIR="/home/david/.config/backblaze" 7 | RESTIC="sudo -u restic --preserve-env=B2_ACCOUNT_KEY,B2_ACCOUNT_ID,RESTIC_REPOSITORY,RESTIC_PASSWORD_FILE restic" 8 | 9 | ### keep last # of days of snapshots 10 | KEEPDAYS=10 11 | 12 | log() { 13 | echo -e "$(date "+%Y-%m-%d %H:%M:%S"): ${1}" | tee -a $LOG 14 | } 15 | 16 | notify() { 17 | echo -e "Subject: Errors running Restic Backup on host: $(hostname)\n\n${1}" | sendmail -v "${EMAIL}" 18 | } 19 | 20 | cd $RDIR 21 | 22 | echo -e "\n" | tee -a $LOG 23 | 24 | if [ ! -f pw ] 25 | then 26 | log "${RDIR}/pw file not present, exiting..\n\n" 27 | exit 1 28 | fi 29 | 30 | source ${RDIR}/cred 31 | 32 | log "starting backup.." 33 | 34 | msg=$(${RESTIC} backup --exclude-caches --files-from=restic/include --exclude-file=restic/exclude |& tee -a "${LOG}") 35 | 36 | if [ $? -eq 1 ] 37 | then 38 | notify "[restic backup]\n${msg}" 39 | log "${msg}\n-----------------------------------------" 40 | exit 1 41 | fi 42 | 43 | msg=$(${RESTIC} check |& tee -a "${LOG}") 44 | 45 | # Check for Errors 46 | if [ $? -eq 1 ] 47 | then 48 | notify "[restic check]\n${msg}" 49 | log "${msg}\n--------------------------------------" 50 | exit 1 51 | fi 52 | 53 | 54 | log "removing old snapshots.." 55 | 56 | msg=$(${RESTIC} forget --keep-daily ${KEEPDAYS} --prune |& tee -a "${LOG}") 57 | 58 | if [ $? -eq 1 ] 59 | then 60 | notify "[restic forget]\n${msg}" 61 | log "${msg}" 62 | exit 1 63 | fi 64 | 65 | 66 | # notify OK 67 | echo -e "Subject: Restic Backup OK on host: $(hostname)\n\nSnapshot complete, snapshots older than $KEEPDAYS days deleted." | sendmail -v "${EMAIL}" |& tee -a "${LOG}" 68 | 69 | log "end of run\n-----------------------------------------\n\n" 70 | 71 | 72 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-icons/images/ruby.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-helm/packages.el: -------------------------------------------------------------------------------- 1 | ;;; packages.el --- storax-helm layer packages file for Spacemacs. 2 | ;; 3 | ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors 4 | ;; 5 | ;; Author: David Zuber 6 | ;; URL: https://github.com/syl20bnr/spacemacs 7 | ;; 8 | ;; This file is not part of GNU Emacs. 9 | ;; 10 | ;;; License: GPLv3 11 | 12 | ;;; Commentary: 13 | 14 | ;;; Code: 15 | 16 | (defconst storax-helm-packages 17 | '(helm helm-ag)) 18 | 19 | (defun storax-helm/post-init-helm () 20 | (use-package helm 21 | :defer t 22 | :init 23 | (setq helm-move-to-line-cycle-in-source t ; move to end or beginning of source when reaching top or bottom of source. 24 | helm-scroll-amount 8 ; scroll 8 lines other window using M-/M- 25 | helm-ff-file-name-history-use-recentf t 26 | helm-kill-ring-threshold 2 27 | helm-candidate-number-limit 400) 28 | :config 29 | (progn 30 | (bind-key "M-i" 'helm-swoop-from-isearch isearch-mode-map) 31 | (helm-adaptive-mode 1) 32 | (advice-add #'helm-preselect :around #'storax/helm-skip-dots) 33 | (advice-add #'helm-ff-move-to-first-real-candidate :around #'storax/helm-skip-dots) 34 | (defun completing-read-with-properties (prompt collection &optional predicate require-match initial-input hist def inheri-input-method) 35 | "Completing read with text properties." 36 | (helm-comp-read prompt collection :test predicate :initial-input initial-input :must-match require-match :history hist :default def :alistp nil)) 37 | (setq completing-read-function 'completing-read-with-properties)))) 38 | 39 | (defun storax-helm/post-init-helm-ag () 40 | (use-package helm-ag 41 | :defer t 42 | :init 43 | (progn 44 | (spacemacs/declare-prefix storax-helm-ag-dirs-prefix "dir" "helm-ag in dir") 45 | (storax/create-helm-ag-bindings storax-helm-ag-dirs-alist)))) 46 | 47 | ;;; packages.el ends here 48 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/private/storax-mode-icons/icons/haml.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * haml_xpm[] = { 3 | "16 16 77 1", 4 | " c None", 5 | ". c #6A674E", 6 | "+ c #0E0E0D", 7 | "@ c #6A664D", 8 | "# c #373528", 9 | "$ c #050504", 10 | "% c #C0B88E", 11 | "& c #746F53", 12 | "* c #DBD29E", 13 | "= c #353326", 14 | "- c #BFB889", 15 | "; c #474434", 16 | "> c #ABA47A", 17 | ", c #B8B084", 18 | "' c #B1AB84", 19 | ") c #868060", 20 | "! c #A59E77", 21 | "~ c #3E3C2D", 22 | "{ c #A59D77", 23 | "] c #ECE2A9", 24 | "^ c #A29C79", 25 | "/ c #C3BA8B", 26 | "( c #F5EBB0", 27 | "_ c #7B7659", 28 | ": c #171717", 29 | "< c #605C45", 30 | "[ c #E3DAA2", 31 | "} c #E0D7A5", 32 | "| c #A29C77", 33 | "1 c #D0C795", 34 | "2 c #F2E8AD", 35 | "3 c #726D52", 36 | "4 c #09090C", 37 | "5 c #EFE6AF", 38 | "6 c #8D8765", 39 | "7 c #E9DFA7", 40 | "8 c #EBE1A8", 41 | "9 c #9E9772", 42 | "0 c #0A0A0A", 43 | "a c #99926D", 44 | "b c #F1E7AD", 45 | "c c #F4E9AE", 46 | "d c #605D47", 47 | "e c #101010", 48 | "f c #020202", 49 | "g c #9E9771", 50 | "h c #D2CA9B", 51 | "i c #080808", 52 | "j c #CDC69A", 53 | "k c #AAA37A", 54 | "l c #E7DEA6", 55 | "m c #817C61", 56 | "n c #030405", 57 | "o c #060606", 58 | "p c #5D5943", 59 | "q c #EAE0A8", 60 | "r c #2D2B21", 61 | "s c #959595", 62 | "t c #919191", 63 | "u c #424242", 64 | "v c #6A664C", 65 | "w c #E4DBA4", 66 | "x c #3A392F", 67 | "y c #CACACA", 68 | "z c #B5B5B5", 69 | "A c #D0C794", 70 | "B c #DCD29D", 71 | "C c #B3AC82", 72 | "D c #E4DAA3", 73 | "E c #CBC291", 74 | "F c #9F9872", 75 | "G c #9A9371", 76 | "H c #E8DEA6", 77 | "I c #C7BE8E", 78 | "J c #817B5E", 79 | "K c #7B7558", 80 | "L c #5A5641", 81 | " .+ ", 82 | " @#$ ", 83 | " %&* =-; ", 84 | " >,' )!~ ", 85 | " {] ^/(_: ", 86 | " <[}|1234 ", 87 | " 567889 0 ", 88 | " abcd ef ", 89 | " g]h i ", 90 | " jklmn o ", 91 | " p7qr stu ", 92 | " v(wx yz ", 93 | " ABC ", 94 | " DEF ", 95 | " GH7I ", 96 | " JKL "}; 97 | -------------------------------------------------------------------------------- /emacs/.spacemacs.d/snippets/python-mode/class: -------------------------------------------------------------------------------- 1 | # -*- utf-8 mode: snippet -*- 2 | # name: Class with sphinx doc 3 | # key: class 4 | # group: Definitions 5 | # expand-env: ((yas-indent-line 'nil) (yas-wrap-around-region 'nil) (curcol 0)) 6 | # contributor: Orestis Markou 7 | # contributor: Nishio Hirokazu 8 | # contributor: Yasser González Fernández 9 | # contributor: Michael Markert 10 | # contributor: David Zuber 11 | # -- 12 | class ${1:$(if (setq curcol (+ (current-column) 2)) nil)}${1:ClassName}(${2:object}): 13 | $>"""$3 14 | $>""" 15 | 16 | $>def __init__(self, $4): 17 | $>"""$5 18 | ${4:$(let ((indent (concat "\n" (make-string curcol 32))) 19 | (args (mapcar 'car 20 | (mapcar '(lambda (x) (split-string x "=")) 21 | (split-string (replace-regexp-in-string "[[:blank:]]*" "" yas-text) 22 | "," t))))) 23 | (setq params 24 | (mapconcat (lambda (x) 25 | (format ":param %s:%s:type %s:" x indent x)) 26 | args 27 | indent)) 28 | (unless (string= "" params) 29 | (concat indent params)) 30 | ) 31 | } 32 | $>:raises: ${6:None} 33 | $>""" 34 | $>super($1, self).__init__($7) 35 | $>${4:$(let ((indent (concat "\n" (make-string curcol 32))) 36 | (args (mapcar 'car 37 | (mapcar '(lambda (x) (split-string x "=")) 38 | (split-string (replace-regexp-in-string "[[:blank:]]*" "" yas-text) 39 | "," t))))) 40 | (mapconcat (lambda (x) 41 | (format "self._%s = %s" x x)) 42 | args 43 | indent)) 44 | } 45 | $>$0 --------------------------------------------------------------------------------