Skip to content

Instantly share code, notes, and snippets.

View srhopkins's full-sized avatar

Steven Hopkins srhopkins

View GitHub Profile
@srhopkins
srhopkins / .tmux.conf
Last active September 18, 2020 18:29
Finally updated my tmux to fix everything that broke in v2.9
# curl -L https://gist.github.com/srhopkins/f1cbe2932750fb383884919f9e53f23c/raw/
# Setting the prefix from C-b to C-a
# START:prefix
set -g prefix C-a
# END:prefix
# Free the original Ctrl-b prefix keybinding
# START:unbind
unbind C-b
# END:unbind
# alias jupyter='curl -s https://gist.githubusercontent.com/srhopkins/f6eddd7761fefee9a49bfa6cfba73642/raw/3adebd63093637ba0bfd56a0c466ab04ebdc2da2/jupyter.yaml | docker compose -f - up'
version: "3.2"
services:
jupyter:
image: jupyter/datascience-notebook
volumes:
- ${HOME}/.ssh:/home/jovyan/.ssh
- ${HOME}/.aws:/home/jovyan/.aws
- ${HOME}/.kube/config:/home/jovyan/.kube/config
@srhopkins
srhopkins / .gitconfig
Last active August 17, 2021 17:35
.gitconfig
# curl -s https://gist.githubusercontent.com/srhopkins/9a9f85d08a6420b1287368aeac1d2520/raw/.gitconfig
[user]
email = [user_email]
name = [user_full_name]
[core]
excludesFile = ~/.gitignore_global
[pull]
rebase = true
[fetch]
import requests
token = ''
def github_request(uri, method='get', **kwargs):
'''GitHub API wrapper for auth and baseline vars'''
if not uri.startswith('http'):