Skip to content

Instantly share code, notes, and snippets.

@spaceshiptrip
spaceshiptrip / gist:4d18b2f697db79926bd1d82c34a965a8
Created February 12, 2025 17:40
Updating file in a Tag (release)

To ensure that GitHub recognizes your latest changes and allows you to use the same version number for the release while incorporating the new PR, follow these steps:

1. Confirm Your Main Branch is Updated

Ensure that the latest commit (with your updated file) is indeed in main:

git checkout main
git pull origin main

If you made changes in a PR, make sure the PR is merged into main first.

@spaceshiptrip
spaceshiptrip / autoaupdate.sh
Created July 2, 2024 01:06
Autoupdate AWS AMI EC2
#!/bin/bash
/usr/bin/dnf upgrade --security --assumeyes --releasever=latest
echo "Update script executed at $(date)" > /var/log/autoupdate.log
@spaceshiptrip
spaceshiptrip / example_vimrc_for_CoC.vim
Created November 15, 2022 19:21
Reference vimrc file for CoC
set number
set belloff=all
set autoindent
set backspace=indent,eol,start
set copyindent
set smartindent
set noswapfile
set shiftwidth=2
set tabstop=2
@spaceshiptrip
spaceshiptrip / Prevent Command W from closing iTerm2
Last active November 5, 2022 03:11
Prevent command-w from closing terminal. This is useful when using vim since vim uses Control-W and it is easy to confuse
System Preferences --> Keyboard --> Shortcuts --> App Shortcuts --> Click + --> Select `iTerm` --> Enter `Close` --> <command><control> w
@spaceshiptrip
spaceshiptrip / gist:54aefeb54dc527607089d633cd506b73
Created October 26, 2022 21:38
Delete github from mac keychain
git credential-osxkeychain erase
host=github.com
protocol=https
# [Now Press Return]

Getting Docker on your mac with homebrew:

Docker Desktop via brew cask --install docker

You can install docker through brew. If you use the --cask option, it will install Docker Desktop and you'll need to:

  1. Make sure you have the appropriate license if applicable
  2. Run Docker.app in your /Applications folder to complete the install

Bottom line: You install the Docker Desktop app, but kicked off the download through Homebrew.

  • Homebrew
    export HOMEBREW_BREW_GIT_REMOTE="..."  # put your Git mirror of Homebrew/brew here
    export HOMEBREW_CORE_GIT_REMOTE="..."  # put your Git mirror of Homebrew/homebrew-core here
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    
  • iTerm2 https://iterm2.com/downloads.html
    • Terminal Colors: material-design-colors.itermcolors

$ cd Downloads

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
@spaceshiptrip
spaceshiptrip / my_configs.vim
Last active July 29, 2025 23:16
my_configs.vim settings for gVim and ultimate vim: https://github.com/amix/vimrc -- See comments for my_plugins list There's also ctags: https://stackoverflow.com/questions/19934060/vim-how-to-go-to-the-declaration-of-a-class-method-function-variable-etc
"""""""""""
" Folding lines Settings
"""""""""""
set nofoldenable
"""""""""""
" tabs
"""""""""""
set expandtab
set tabstop=2
listen l1
bind 0.0.0.0:443
mode tcp
timeout connect 4000
timeout client 180000
timeout server 180000
server srv1 host.example.com:9443