Skip to content

Instantly share code, notes, and snippets.

View danielfalbo's full-sized avatar
🧘‍♂️

danielfalbo

🧘‍♂️
View GitHub Profile
@danielfalbo
danielfalbo / d_circle.py
Created October 22, 2025 12:52
D circle
from PIL import Image, ImageDraw
import math
w = 3000
h = 3000
thickness = 25
padding = 300
black = (0, 0, 0)
white = (255, 255, 255)
@danielfalbo
danielfalbo / .gitconfig
Created September 24, 2025 13:22
gitconfig
[user]
name = Daniel
email = [email protected]
@danielfalbo
danielfalbo / config.py
Created September 17, 2025 06:18
~/.config/qutebrowser/config.py
# 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']
@danielfalbo
danielfalbo / functions.sh
Created September 17, 2025 06:17
functions.sh
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() {
@danielfalbo
danielfalbo / external.sh
Created September 17, 2025 06:17
external.sh
# 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"
# Create a directory and cd into it
mcd() {
mkdir "${1}" && cd "${1}"
}
# Execute a command in a specific directory
xin() {
( cd "${1}" && shift && (eval "${@}") )
}
@danielfalbo
danielfalbo / install-zathura.sh
Created September 17, 2025 06:11
macos install zathura
brew tap zegervdv/zathura
brew install zathura --with-synctex --force
brew install zathura-pdf-poppler
@danielfalbo
danielfalbo / .skhdrc
Last active September 17, 2025 06:09
~/.skhdrc
# 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
@danielfalbo
danielfalbo / .yabairc
Last active September 17, 2025 06:10
~/.yabairc
#!/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
@danielfalbo
danielfalbo / zathurarc
Last active September 17, 2025 06:48
~/.config/zathura/zathurarc
# 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