https://github.com/clivern/anubis
🔥 My Personal dotfiles.
https://github.com/clivern/anubis
clivern dotfiles neovim opswork
Last synced: 10 months ago
JSON representation
🔥 My Personal dotfiles.
- Host: GitHub
- URL: https://github.com/clivern/anubis
- Owner: Clivern
- License: mit
- Created: 2019-01-19T23:26:33.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T19:54:33.000Z (over 1 year ago)
- Last Synced: 2024-10-19T14:55:57.545Z (over 1 year ago)
- Topics: clivern, dotfiles, neovim, opswork
- Language: Jinja
- Homepage: https://clivern.com/
- Size: 70.7 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
Anubis
My Personal dotfiles
### Usage
1. Clone the repository.
```zsh
# Create space directory
$ mkdir -p ~/space
$ git clone git@github.com:clivern/anubis.git ~/space/anubis
```
2. Install the following manually
- [Homebrew](https://brew.sh/)
- [Google Chrome](https://www.google.com/intl/en_uk/chrome/)
- [Iterm2](https://iterm2.com/)
- [omz](https://ohmyz.sh/)
- [Sublime](https://www.sublimetext.com/)
- [Fonts for Terminal & Neovim](./fonts/)
3. Install [opswork](https://pypi.org/project/opswork/) and `pip` globally.
```zsh
$ brew install yq
$ brew install python@3.11
$ pip install -r requirements.freeze.txt
$ alias op=opswork
```
4. Init the configs
```zsh
$ op config init
$ op config dump
```
5. Add local as a host.
```zsh
$ make hosts
```
6. Add dotfiles recipes.
```zsh
$ make recipes
```
7. Run recipes one by one or the needed ones. for example to run `clivern/ping` towards host with name `localhost`.
```zsh
$ op recipe run clivern/linux/ping -h localhost -v key=value
# To get the must have list
$ op recipe list -t must_have -o json | jq .
```
8. To install dotfiles.
```zsh
$ make run
```
9. To run command either locally or remotely.
```zsh
# Add a Remote Linux Host
$ op host add clivern -i ~x.x.x.x~ -p 22 -u ~user~ -s /Users/root/.ssh/id_rsa.pem
# Check Uptime
$ op recipe run clivern/linux/cmd -h clivern -v cmd="uptime"
# Ping Remote Host
$ op recipe run clivern/linux/ping -h clivern
# Update
$ op recipe run clivern/linux/update -h clivern
# Upgrade
$ op recipe run clivern/linux/upgrade -h clivern
# Force Reboot
$ op recipe run clivern/linux/cmd -h clivern -v cmd="reboot"
# SSH to any Host
$ op host ssh clivern
```
10. Store the secrets in `OpsWork` vault.
```zsh
$ op secret add clivern/ai/google_palm_api_key "~~" -t ai
$ op secret add clivern/ai/openai_api_key "~~" -t ai
```
11. Secret can be loaded as environmental variable by adding it to `configs/secrets.j2` like the following.
```zsh
$ export OPENAI_API_KEY="$(op secret get clivern/ai/openai_api_key -o json | jq -r '.[0].value')"
```
12. To load secrets from terminal.
```zsh
$ source ~/.secrets
```
13. To list all recipes
```
$ op recipe list -o json | jq -r '.[].name'
```
### Ngrok Usage
To install `ngrok`
```zsh
$ op recipe run clivern/anubis/ngrok -h localhost
```
To add `ngrok` secrets like the `key` and `domain`
```zsh
# Define ngrok key and domain
$ op secret add clivern/ngrok_domain "x.x.x.ngrok-free.app" -t ngrok
$ op secret add clivern/ngrok_key "xxxxxxxxx" -t ngrok
$ source ~/.secrets
```
To configure `ngrok` auth token
```zsh
$ ngrok config add-authtoken $NGROK_KEY
```
To proxy to local port `8000`
```zsh
$ ngrok http --domain=$NGROK_DOMAIN 8000
```
### LSP Servers
Add recipes
```zsh
$ make recipes
```
Install LSP servers
```
$ opswork recipe run clivern/anubis/lsp -h localhost
```
### Technology Radar
My Technology Radar is stored in `tradar.json`
```json
[
{
"name": "..",
"ring": "adopt or trial or assess or hold",
"quadrant": "tools or techniques or platforms or languages-and-frameworks",
"isNew": "FALSE or TRUE",
"description": ".."
}
]
```
### Sublime Text Theme
Locate the Sublime Text packages directory by navigating to `Preferences → Browse Packages`.
Create a folder named daylerees-themes within this directory.
Either:
- Copy the contents of the Dayle Rees repository into this folder, or
- Clone the repository directly using Git:
```zsh
$ git clone https://github.com/daylerees/colour-schemes.git daylerees-themes
```
- Select the theme via Preferences → Color Scheme → daylerees-themes.
### License
© 2010, Clivern. Released under [MIT License](https://opensource.org/licenses/mit-license.php).
**Anubis** is authored and maintained by [@clivern](http://github.com/clivern).