I hereby claim:
- I am linuxiscool on github.
- I am ygg_anderson (https://keybase.io/ygg_anderson) on keybase.
- I have a public key ASCCxE8Nno4M7mFefooNqAXTTddQBPNppDdQCeEdbWk6nwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # make CapsLock behave like Ctrl: | |
| setxkbmap -option ctrl:nocaps | |
| # make short-pressed Ctrl behave like Escape: | |
| # Default timeout is 500ms | |
| xcape -t 300 -e 'Control_L=Escape' |
| gsettings set org.gnome.shell.app-switcher current-workspace-only true |
| # Shawn Anderson October 12 2019 | |
| # Inspired by https://github.com/corbanworks/fng-sin-tools/blob/master/fngsin.class.php | |
| import random | |
| from math import floor | |
| def generateSIN(): | |
| validPrefix = [1,2,3,4,5,6,7,9] | |
| sin = [random.choice(validPrefix)] | |
| length = 9 |
| # Name the environment, project and app | |
| set -q ENVIRONMENT_NAME; or set ENVIRONMENT_NAME channels_tutorial | |
| set -q PROJECT_NAME; or set PROJECT_NAME mysite | |
| set -q APP_NAME; or set APP_NAME chat | |
| # Initialize the environment | |
| vf new $ENVIRONMENT_NAME | |
| vf connect | |
| pip install django channels django-redis channels-redis |
| # install termpix from https://github.com/mmacedoeu/termpix | |
| # in init.vim, change path to termpix | |
| let g:fzf_layout = { 'down': '~60%' } | |
| let g:fzf_files_options = | |
| \ '--preview "(~/dev/termpix/bin/termpix --width 50 --true-color {} || cat {}) 2> /dev/null "' |
| [/] | |
| animate-app-switch=true | |
| appicon-margin=4 | |
| appicon-padding=8 | |
| available-monitors=[0, 1, 2] | |
| click-action='CYCLE-MIN' | |
| dot-color-1='#8ae234' | |
| dot-color-2='#73d216' | |
| dot-color-3='#4e9a06' | |
| dot-color-4='#4e9a06' |
| # Inspiration from: https://github.com/jorgebucaran/cookbook.fish#how-do-i-find-and-run-commands-in-fish | |
| # Set $all_commands to a list of all commands available on $PATH | |
| set -l all_commands (ls $PATH | column) | |
| # Use `whatis` to append a one-line description of each command to a file | |
| for p in $all_commands | |
| whatis $p | tee -a all_command_descriptions | |
| end |
| function _virtualfish | |
| if set -q VIRTUAL_ENV | |
| echo -n -s (set_color white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " " | |
| end | |
| end | |
| function fish_prompt | |
| set fish_greeting | |
| set -l cyan (set_color -o cyan) | |
| set -l red (set_color -o red) |
| function pacmd-loopback --description 'Loop a pacmd source into a pacmd sink interactively.' | |
| if test (set source (pacmd list-sources | grep name: | awk '{ print $2 }' | cut -d'<' -f2 | cut -d'>' -f1 | fzf-tmux --header="Select a source" --phony); set sink (pacmd list-sinks | grep name: | awk '{ print $2 }' | cut -d'<' -f2 | cut -d'>' -f1 | fzf-tmux --header="Select a sink:"); printf "No\nYes" | fzf-tmux --header="CONFIRM: <$source> -> <$sink>") = "Yes" | |
| pacmd load-module module-loopback source=$source sink=$sink | |
| else | |
| echo "Aborted." |