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
| #!/bin/bash | |
| MODELS=$(ollama list | awk 'NR>1 {print $1}') | |
| if [ -z "$MODELS" ]; then | |
| echo "No models found to update." | |
| exit 0 | |
| fi | |
| echo "Found models to update:" |
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
| # set time on status bar to right | |
| set -g status-right "%H:%M" | |
| # set prefix key to a | |
| set -g prefix C-a | |
| unbind C-b | |
| bind C-a send-prefix | |
| # allow mouse to resize panes | |
| set -g mouse on |
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 bash | |
| ##################################################### | |
| # Usage: | |
| # | |
| # Encryption | |
| # ./encrypt.sh encrypt {{stringToEncrypt}} {{password}} | |
| # | |
| # Decryption | |
| # ./encrypt.sh decrypt {{saltedString}} {{password}} |
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 bash | |
| INTERFACE="your-interface-name" | |
| subnetAddress() { | |
| local inetResult="$(ifconfig "$INTERFACE" | grep inet)" | |
| IFS=" " read -a inetArray <<< "$inetResult" | |
| echo "${inetArray[1]}" | |
| } |
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
| " plugins | |
| let need_to_install_plugins = 0 | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| let need_to_install_plugins = 1 | |
| endif | |
| call plug#begin() | |
| Plug 'tpope/vim-sensible' |