Skip to content

Instantly share code, notes, and snippets.

View xykj61's full-sized avatar

keaton "kj" livermore-dunsford xykj61

View GitHub Profile
@xykj61
xykj61 / m1-setup.md
Created April 25, 2022 00:13
Apple MacBook M1 setup
@xykj61
xykj61 / ubuntu-startup.md
Last active January 4, 2023 05:10
ubuntu 20.04 lts cloud startup

start it up

initial server config ubuntu 20.04 lts

ufw allow OpenSSH
ufw enable
adduser keaton
usermod -aG sudo keaton
@xykj61
xykj61 / init.vim
Last active April 25, 2022 00:07
neovim init (~/.config/nvim/init.vim)
"" vim-plug
" vim-plug auto-install if src not found.
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
@xykj61
xykj61 / .zshrc
Last active April 25, 2022 00:07
.zshrc (~/.zshrc)
# 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
@xykj61
xykj61 / .screenrc
Created April 24, 2022 10:51
.screenrc (~/.screenrc)
autodetach on
startup_message off
hardstatus alwayslastline
shelltitle 'zsh'
hardstatus string '%{gk}[%{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= w}%?%+Lw%?%? %{g}][%{d}%l%{g}][ %{= w}%Y/%m/%d %0C:%s%a%{g} ]%{W}'
#!/bin/bash
# install bash first by hand
#
chsh -s $(which bash)
# determine if this (linode) server size needs a swapfile configured
# for now we're going to assume no, since I want a dedicated server
#
~bacbec
~bacbel
~bacben
~bacbep
~bacber
~bacbes
~bacbet
~bacbex
~bacbud
~bacbur
@xykj61
xykj61 / init.vim
Created July 31, 2018 20:13
~/.config/nvim/init.vim - Neovim configuration.
" ~/.config/nvim/init.vim
"" Basics
"" Vim is old.
""
"" Disable compatibility with legacy Vi.
""
set nocompatible
@xykj61
xykj61 / macos.sh
Last active July 27, 2018 07:37
macOS fresh setup.
#! /bin/bash
# Initial setup
cd ~;
# macOS defaults
# h/t https://github.com/mathiasbynens/dotfiles/blob/master/.macos
## Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false;
#! /bin/bash
# Initial setup
cd ~;
# Initial APT packages update/upgrade
sudo apt update;
sudo apt upgrade --yes --allow-change-held-packages --allow-downgrades --allow-remove-essential;
# Mosh setup