I hereby claim:
- I am cesalazar on github.
- I am cesalazar (https://keybase.io/cesalazar) on keybase.
- I have a public key whose fingerprint is 30C6 435D BE8D 4AA1 CE91 B4FB 8A43 6D6D 57EC E83B
To claim this, I am signing this object:
| # hooks onto `chpwd` with the official util `add-zsh-hook` | |
| # `export N=false` to disable auto-switching versions | |
| function auto-switch-node-version() { | |
| # track if the version changed | |
| local changed=false | |
| # exit early | |
| [[ ${N} == false || ! $(command -v n) ]] && return | |
| # attempt to change the version based on the "engine" entry in package.json |
| #!/bin/bash | |
| # | |
| # Display playerctl's metadata in a notification | |
| # Debug options | |
| # set -euxo pipefail | |
| metadata=$(playerctl metadata) | |
| notification_icon=${1} |
| #!/bin/bash | |
| # | |
| # Create inside of an Obsidian vault symlinks to files located elsewhere | |
| # Debug options | |
| # set -euxo pipefail | |
| # Obsidian vault where the symlinks will be created | |
| vault=${HOME}/Sync/obsidian/obsidian-vault/no-sync |
| #!/bin/bash | |
| # | |
| # Clone a git repository and cd into it | |
| # | |
| # NOTE: this file needs to be *sourced*. E.g. | |
| # alias gclin="source /path/to/git-clone-and-auto-cd.sh" | |
| # | |
| # (my personal mnemonic for (g)it (cl)one (in)) | |
| # gclin https://github.com/cesalazar/.vim.git my_vim |
| # useful general .bash_profile tweaks for color loving VI fans | |
| export TERM=xterm-color | |
| export GREP_OPTIONS='--color=auto' GREP_COLOR='1;36' | |
| export CLICOLOR=1 | |
| alias ls='ls -G' | |
| export LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rb=90' | |
| export COLOR_NC='\e[0m' # No Color | |
| export COLOR_WHITE='\e[1;37m' | |
| export COLOR_BLACK='\e[0;30m' |
| /* Rules for Stylus | |
| * https://addons.mozilla.org/en-US/firefox/addon/styl-us/ | |
| */ | |
| /* Hide the annoying (i) button on the top-right corner */ | |
| .ytp-chrome-top-buttons { | |
| display: none; | |
| } | |
| /* Display the controls and title only on hover */ |
| // ==UserScript== | |
| // @name Re-enable YouTube keyboard controls | |
| // @namespace com.cesalazar.ytkbctrl | |
| // @version 0.8 | |
| // @description Re-enable (some) keyboard controls, after disabling YT defaults using uBlock Origin. | |
| // @author Carlos E. Salazar | |
| // @match https://www.youtube.com/* | |
| // @grant none | |
| // ==/UserScript== |
| { | |
| "keymaps": { | |
| "0": { "type": "scroll.home" }, | |
| ":": { "type": "command.show" }, | |
| "o": { "type": "command.show.open", "alter": false }, | |
| "O": { "type": "command.show.open", "alter": true }, | |
| "t": { "type": "command.show.tabopen", "alter": false }, | |
| "T": { "type": "command.show.tabopen", "alter": true }, | |
| "w": { "type": "command.show.winopen", "alter": false }, | |
| "W": { "type": "command.show.winopen", "alter": true }, |
I hereby claim:
To claim this, I am signing this object:
| set smoothscroll | |
| let defaultengine = "duckduckgo" | |
| let completionengine = ["duckduckgo"] | |
| map <A-j> previousTab | |
| map <A-k> nextTab | |
| map yt :tabnew @%<CR> | |
| map yf yankUrl | |
| map R reloadTabUncached | |
| map , lastUsedTab |