Skip to content

Instantly share code, notes, and snippets.

View jasonmorganson's full-sized avatar

Jason Morganson jasonmorganson

View GitHub Profile
# This file controls the behaviour of line input editing for
# programs that use the GNU Readline library. Existing
# programs include FTP, Bash, and GDB.
# Manual https://www.gnu.org/software/bash/manual/html_node/Readline-Init-File.html
# Copied from "A ~/.inputrc for Humans" (https://www.topbug.net/blog/2017/07/31/inputrc-for-humans)
# Include any system-wide bindings and variable assignments
$include /etc/inputrc
# DIRCOLOR file for the mac.
# Designed for a text on black terminal.
# Below, there should be one TERM entry for each terminal
# type that can be colored.
TERM linux
TERM linux-c
TERM mach-color
TERM console
TERM con132x25
import os
if 'PYTHONHISTFILE' in os.environ:
history = os.path.expanduser(os.environ['PYTHONHISTFILE'])
elif 'XDG_DATA_HOME' in os.environ:
history = os.path.join(os.path.expanduser(os.environ['XDG_DATA_HOME']), 'python', 'python_history')
else:
history = os.path.join(os.path.expanduser('~'), '.python_history')
history = os.path.abspath(history)
format = """
$username\
$hostname\
$directory\
$git_branch\
$git_state\
$git_status\
$cmd_duration\
$line_break\
$python\
keybinds {
normal {
bind "Ctrl a" { SwitchToMode "tmux"; }
}
}
plugins {
tab-bar { path "tab-bar"; }
status-bar { path "status-bar"; }
strider { path "strider"; }
@jasonmorganson
jasonmorganson / LLM.md
Created March 28, 2023 21:05 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

open .default-cloud-sdk-components | lines | each { |component| gcloud components install $component }