-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
how to add secrets to macOS keychain
+ how to move already committed git files to git LFS + fix beamer xcolor bug in ubuntu 22.04
- Loading branch information
Showing
8 changed files
with
1,397 additions
and
1,121 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: More tips and tricks | ||
--- | ||
|
||
### Store ENV variables in macOS keychain | ||
|
||
Add item to keychain: | ||
|
||
```bash | ||
security add-generic-password -a "$USER" -s 'API_KEY' -w 'xxxxyyyyzzzz' | ||
``` | ||
|
||
Get secret from keychain: | ||
|
||
```bash | ||
security find-generic-password -a "$USER" -s 'API_KEY' -w | ||
``` | ||
|
||
Automatically export secret variables via `.zshrc` or `.bashrc`: | ||
|
||
```bash | ||
export API_KEY=$(security find-generic-password -a "$USER" -s "API_KEY" -w) | ||
``` |
Oops, something went wrong.