-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1password ssh for git.devinl.im and other configs
- Loading branch information
Showing
17 changed files
with
119 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ create_default_packages: | |
- ipython | ||
- ipykernel | ||
- pylatexenc | ||
- ipywidgets |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# first for soft-Serve | ||
[[ssh-keys]] | ||
item = "Git" | ||
vault = "Personal" | ||
|
||
[[ssh-keys]] | ||
item = "Hetzner" | ||
vault = "Personal" | ||
|
||
[[ssh-keys]] | ||
vault = "Personal" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
{ | ||
"$schema" : "https:\/\/schema.linearmouse.app\/0.10.0", | ||
"schemes" : [ | ||
{ | ||
"scrolling" : { | ||
"reverse" : { | ||
"vertical" : true | ||
}, | ||
"acceleration" : 1, | ||
"distance" : "auto", | ||
"speed" : 0 | ||
}, | ||
"pointer" : { | ||
"disableAcceleration" : true | ||
}, | ||
"if" : { | ||
"device" : { | ||
"productName" : "USB Receiver", | ||
"productID" : "0xc547", | ||
"vendorID" : "0x46d", | ||
"category" : "mouse", | ||
"productName" : "USB Receiver" | ||
"category" : "mouse" | ||
} | ||
}, | ||
"scrolling" : { | ||
"reverse" : { | ||
"vertical" : true | ||
}, | ||
"distance" : "auto", | ||
"acceleration" : 1, | ||
"speed" : 0 | ||
} | ||
}, | ||
{ | ||
"if" : { | ||
"device" : { | ||
"vendorID" : "0x5ac", | ||
"category" : "trackpad", | ||
"productName" : "Apple Internal Keyboard \/ Trackpad", | ||
"productID" : "0x343" | ||
"productID" : "0x343", | ||
"vendorID" : "0x5ac", | ||
"productName" : "Apple Internal Keyboard \/ Trackpad" | ||
} | ||
}, | ||
"scrolling" : { | ||
"acceleration" : { | ||
"vertical" : 1 | ||
}, | ||
"reverse" : { | ||
"vertical" : false | ||
}, | ||
"acceleration" : { | ||
"vertical" : 1 | ||
} | ||
} | ||
} | ||
], | ||
"$schema" : "https:\/\/schema.linearmouse.app\/0.10.0" | ||
] | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Submodule .oh-my-zsh
updated
10 files
+1 −1 | .github/workflows/dependencies/requirements.txt | |
+1 −0 | lib/cli.zsh | |
+23 −0 | plugins/eza/README.md | |
+8 −0 | plugins/eza/eza.plugin.zsh | |
+1 −0 | plugins/grc/grc.plugin.zsh | |
+1 −1 | plugins/rust/rust.plugin.zsh | |
+1 −0 | plugins/web-search/README.md | |
+2 −0 | plugins/web-search/web-search.plugin.zsh | |
+2 −0 | themes/af-magic.zsh-theme | |
+1 −1 | themes/sonicradish.zsh-theme |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,21 @@ | |
export PATH="$HOME/.local/bin:$PATH" # pip? | ||
export PATH="$HOME/.cargo/bin/:$PATH" # rust | ||
|
||
# Tokens and API Keys | ||
load_gemini_key() { | ||
export GEMINI_API_KEY="$(op read "op://Personal/Gemini API Key/credential")" | ||
} | ||
|
||
gemini() { | ||
if [ -z "${GEMINI_API_KEY}" ]; then | ||
echo "GEMINI_API_KEY not set. Run load_gemini_key first." | ||
return 1 | ||
fi | ||
|
||
xh POST "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=${GEMINI_API_KEY}" \ | ||
contents:="$1" | ||
} | ||
|
||
# powerlevel10k | ||
[[ ! -f ~/powerlevel10k/powerlevel10k.zsh-theme ]] || source ~/powerlevel10k/powerlevel10k.zsh-theme | ||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | ||
|
@@ -88,12 +103,18 @@ alias status="git status" | |
alias pull="git pull" | ||
alias push="git push" | ||
alias clean="git clean -dfx" | ||
alias nuke="git clean -dfx && git reset --hard HEAD" | ||
alias stashlist="git stash list" | ||
alias stashshow="git stash show -p" | ||
alias stashpop="git stash pop" | ||
alias branches="git --no-pager branch --all" | ||
alias commits="git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | ||
alias lfsconfig='echo -e "[lfs]\nurl = [email protected]:$(basename $(git rev-parse --show-toplevel)).git\nlocksverify = true" > .lfsconfig' | ||
|
||
nuke() { | ||
git fetch origin && \ | ||
git clean -dfx && \ | ||
git reset --hard origin $(git symbolic-ref --short HEAD) | ||
} | ||
|
||
## aliases requiring params | ||
backmerge() { | ||
|
@@ -119,13 +140,19 @@ checkout() { | |
return $? | ||
fi | ||
|
||
# 2: Check if it's a valid commit ID | ||
# 2: Check if it's a remote branch | ||
if git rev-parse --verify --quiet "origin/$1" >/dev/null 2>&1; then | ||
git checkout -b "$1" "origin/$1" | ||
return $? | ||
fi | ||
|
||
# 3: Check if it's a valid commit ID | ||
if git rev-parse --verify --quiet "$1^{commit}" >/dev/null 2>&1; then | ||
git checkout "$1" | ||
return $? | ||
fi | ||
|
||
# 3: Check if it's a number to go back in history | ||
# 4: Check if it's a number to go back in history | ||
if [[ "$1" =~ ^[0-9]+$ ]]; then | ||
git checkout "HEAD~$1" | ||
return $? | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.