Skip to content

Instantly share code, notes, and snippets.

View frankie7413's full-sized avatar

Francisco Rivas frankie7413

View GitHub Profile
@frankie7413
frankie7413 / .zshrc
Last active July 31, 2024 03:54
Personal Zshrc Settings
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@frankie7413
frankie7413 / portainer_stack.py
Last active January 26, 2024 18:41
Portainer Gist
#!/usr/bin/env python3
"""Script to start/stop portainer stacks"""
import json
import os
import sys
from datetime import datetime
from enum import Enum
from typing import NamedTuple, TypedDict, Union
from urllib.parse import urljoin
@frankie7413
frankie7413 / keybindings.json
Created June 16, 2023 01:32
VS code tmux like navigation
[
{
"key": "ctrl+k",
"command": "workbench.action.navigateUp"
},
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown"
},
{
@frankie7413
frankie7413 / docker-compose.yml
Created June 16, 2023 01:29
Postgres & Pgadmin container set up
# https://belowthemalt.com/2021/06/09/run-postgresql-and-pgadmin-in-docker-for-local-development-using-docker-compose/
services:
db:
image: postgres:11.6
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password123
@frankie7413
frankie7413 / .bashrc
Last active March 4, 2023 05:05
WSL 2 settings for docker and tmux
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@frankie7413
frankie7413 / vimrc.local
Last active September 9, 2021 06:59
WSL VIM Settings
call plug#begin('~/.vim/plugged')
Plug 'airblade/vim-gitgutter'
Plug 'editorconfig/editorconfig-vim'
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
" Plug 'mattn/emmet-vim'
" Plug 'scrooloose/nerdtree'
Plug 'terryma/vim-multiple-cursors'
@frankie7413
frankie7413 / .tmux.conf
Last active October 19, 2021 21:10
My Tmux Settings
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %