This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image, ImageDraw | |
| import math | |
| w = 3000 | |
| h = 3000 | |
| thickness = 25 | |
| padding = 300 | |
| black = (0, 0, 0) | |
| white = (255, 255, 255) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = Daniel | |
| email = [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Avoid flake8 errors | |
| # pylint: disable=C0111 | |
| c = c # noqa: F821 pylint: disable=E0602,C0103 | |
| config = config # noqa: F821 pylint: disable=E0602,C0103 | |
| # Don't autoplay | |
| c.content.autoplay = False | |
| # Font family and size | |
| c.fonts.default_family = ['JetBrainsMono Nerd Font'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| path_remove() { | |
| PATH=$(echo -n "$PATH" | awk -v RS=: -v ORS=: "\$0 != \"$1\"" | sed 's/:$//') | |
| } | |
| path_append() { | |
| path_remove "$1" | |
| PATH="${PATH:+"$PATH:"}$1" | |
| } | |
| path_prepend() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fzf settings | |
| export FZF_DEFAULT_OPTS="--height 90% --layout=reverse --border --preview 'bat --style=numbers --color=always --line-range :500 {}' --color 'bg+:-1'" | |
| # pager | |
| export PAGER="most" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create a directory and cd into it | |
| mcd() { | |
| mkdir "${1}" && cd "${1}" | |
| } | |
| # Execute a command in a specific directory | |
| xin() { | |
| ( cd "${1}" && shift && (eval "${@}") ) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew tap zegervdv/zathura | |
| brew install zathura --with-synctex --force | |
| brew install zathura-pdf-poppler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # open terminal | |
| cmd - return : open -a alacritty | |
| # open qutebrowser | |
| alt - return : open -a qutebrowser | |
| # empty trash | |
| ctrl - backspace : osascript -e 'tell application "Finder" to empty trash' | |
| # focus window |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # settings | |
| yabai -m config layout bsp | |
| yabai -m config top_padding 12 | |
| yabai -m config bottom_padding 12 | |
| yabai -m config left_padding 12 | |
| yabai -m config right_padding 12 | |
| yabai -m config window_gap 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Settings | |
| set selection-clipboard clipboard | |
| set statusbar-v-padding 11 | |
| set font "JetBrainsMono Nerd Font normal 15" | |
| # Colors (Nord) | |
| include "base16-zathura/build_schemes/colors/base16-nord.config" | |
| # Invert colors | |
| set recolor-keephue |
NewerOlder