Skip to content

Instantly share code, notes, and snippets.

View CCecilia's full-sized avatar

christian cecilia CCecilia

  • Fubo TV
  • New Jersey
View GitHub Profile
@CCecilia
CCecilia / update-local-models.sh
Created January 24, 2026 15:22
Updates Ollama models
#!/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:"
@CCecilia
CCecilia / .tmux.conf
Created December 15, 2022 01:27
Tmux config to ease use
# 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
@CCecilia
CCecilia / encrypt.sh
Last active December 15, 2022 01:22
Shell script for encrypting/decrypting strings
#!/usr/bin/env bash
#####################################################
# Usage:
#
# Encryption
# ./encrypt.sh encrypt {{stringToEncrypt}} {{password}}
#
# Decryption
# ./encrypt.sh decrypt {{saltedString}} {{password}}
@CCecilia
CCecilia / subnet.sh
Last active November 23, 2022 04:00
Simple script to output only your subnet ip-address
#!/usr/bin/env bash
INTERFACE="your-interface-name"
subnetAddress() {
local inetResult="$(ifconfig "$INTERFACE" | grep inet)"
IFS=" " read -a inetArray <<< "$inetResult"
echo "${inetArray[1]}"
}
@CCecilia
CCecilia / .vimrc
Last active November 23, 2022 03:40
My vim config file
" 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'