Skip to content

Instantly share code, notes, and snippets.

# Copyright 2021 Jonathan Bowman. All documentation and code contained
# in this file may be freely shared in compliance with the
# Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
# and is **provided "AS IS" without warranties or conditions of any kind**.
#
# Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# iwr -useb https://gist.github.com/bowmanjd/cd284d8da97d7d254da2c71c9761eba8/raw | iex
#
# You may read a brief synopsis at
# https://dev.to/bowmanjd/get-github-default-branch-from-the-command-line-powershell-or-bash-zsh-37m9
#!/bin/sh
# Copyright 2021 Jonathan Bowman. All documentation and code contained
# in this file may be freely shared in compliance with the
# Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
# and is **provided "AS IS" without warranties or conditions of any kind**.
#
# OUT="$(mktemp)"; wget -q -O - https://gist.github.com/bowmanjd/d72e2e89996087f71ffe3e9777dea5a2/raw > $OUT; . $OUT
#
# You may read a brief synopsis at
# Copyright 2021 Jonathan Bowman. All documentation and code contained
# in this file may be freely shared in compliance with the
# Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
# and is **provided "AS IS" without warranties or conditions of any kind**.
#
# Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# iwr -useb https://gist.github.com/bowmanjd/08ccc1af6419d3388aa919aee3497e06/raw | iex
#
# You may read a brief synopsis at
# https://dev.to/bowmanjd/get-github-default-branch-from-the-command-line-powershell-or-bash-zsh-37m9
#!/bin/sh
# Copyright 2021 Jonathan Bowman. All documentation and code contained
# in this file may be freely shared in compliance with the
# Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
# and is **provided "AS IS" without warranties or conditions of any kind**.
#
# OUT="$(mktemp)"; wget -q -O - https://gist.github.com/bowmanjd/d72e2e89996087f71ffe3e9777dea5a2/raw > $OUT; . $OUT
#
# You may read a brief synopsis at
@bowmanjd
bowmanjd / dotfiles.sh
Last active January 15, 2021 13:59
Adds two functions for instantiating dotfile management with git
# OUT="$(mktemp)"; wget -q -O - https://gist.github.com/bowmanjd/3d56cf4e2fc11cba2137cb7ce36c4de6/raw > $OUT; . $OUT
dtfnew () {
git init -b base
git remote add origin $1
# Uncomment one of the following 3 lines
git config --local status.showUntrackedFiles no
# echo '/**' >> .git/info/exclude
# echo '/**' >> .gitignore; git add -f .gitignore
@bowmanjd
bowmanjd / dotfiles.ps1
Last active January 15, 2021 13:34
Adds two functions for instantiating dotfile management with git
# Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# iwr -useb https://gist.githubusercontent.com/bowmanjd/14d5df511548a39cd5c53dff4f3df3f5/raw/61ac0e7b2298789bc4b35d988597989c15dadf62/dotfiles-ps.ps1 | iex
function dtfnew
{
Param ([string]$repo)
git init -b base
git remote add origin $repo
# Uncomment one of the following 3 lines
@bowmanjd
bowmanjd / snippet.csv
Last active September 19, 2020 09:54
Short CSV Sample
Last name First name Middle name Role School Grade
Herman Preston Elliott Teacher Southside
Randolph Finnegan Braylon Student Eastside 12
Hood Easton Fernando Student Southside 7
Kemp Logan Kinsley Teacher Southside
@bowmanjd
bowmanjd / keybase.md
Created September 17, 2020 09:47
Keybase

Keybase proof

I hereby claim:

  • I am bowmanjd on github.
  • I am bowmanjd (https://keybase.io/bowmanjd) on keybase.
  • I have a public key ASC--E0EPhO1uXxodHiP2U8E6gzAypfdQKrbQPoqorhrxgo

To claim this, I am signing this object:

@bowmanjd
bowmanjd / oldvimrc.vim
Last active September 9, 2020 17:57
Old vimrc 2020-08-07
" Copyright (c) 2020 Jonathan Bowman
"
" Permission to use, copy, modify, and/or distribute this software for any
" purpose with or without fee is hereby granted.
"
" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
" AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
@bowmanjd
bowmanjd / init.vim
Created September 7, 2020 01:44
Neovim config pointing to ~/.vimrc
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc