This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
token = '' | |
def github_request(uri, method='get', **kwargs): | |
'''GitHub API wrapper for auth and baseline vars''' | |
if not uri.startswith('http'): |
OlderNewer