Code Monkey home page Code Monkey logo

anubis's Introduction

Anubis

My Personal dotfiles


Usage

  1. Clone the repository.
# Create space directory
$ mkdir -p ~/space

$ git clone [email protected]:clivern/anubis.git ~/space/anubis
  1. Install opswork and pip globally.
$ brew install yq

$ pip install -r requirements.freeze.txt
$ alias op=opswork
  1. Init the configs
$ op config init
$ op config dump
  1. Add local as a host.
$ make hosts
  1. Add dotfiles recipes.
$ make recipes
  1. Run recipes one by one or the needed ones. for example to run clivern/ping towards host with name localhost.
$ 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 .
  1. To install dotfiles.
$ make run
  1. To run command either locally or remotely.
# 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
  1. Store the secrets in OpsWork vault.
$ op secret add clivern/ai/google_palm_api_key "~~" -t ai
$ op secret add clivern/ai/openai_api_key "~~" -t ai
  1. Secret can be loaded as environmental variable by adding it to configs/secrets.j2 like the following.
$ export OPENAI_API_KEY="$(op secret get clivern/ai/openai_api_key -o json | jq -r '.[0].value')"
  1. To load secrets from terminal.
$ source ~/.secrets
  1. To list all recipes
$ op recipe list -o json | jq -r '.[].name'

Ngrok Usage

To install ngrok

$ op recipe run clivern/anubis/ngrok -h localhost

To add ngrok secrets like the key and domain

# 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

$ ngrok config add-authtoken $NGROK_KEY

To proxy to local port 8000

$ ngrok http --domain=$NGROK_DOMAIN 8000

Technology Radar

My Technology Radar is stored in tradar.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": ".."
  }
]

License

ยฉ 2010, Clivern. Released under MIT License.

Anubis is authored and maintained by @clivern.

anubis's People

Contributors

clivern avatar github-actions[bot] avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

anubis's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

bundler
docs/Gemfile
  • jekyll '3.9.0'
  • kramdown-parser-gfm "~> 1.1"
  • webrick "~> 1.8"
  • jekyll-paginate undefined
  • jekyll-sitemap undefined
  • github-pages undefined
docker-compose
home_lab/docker-compose.yml
  • prom/prometheus v2.54.0
  • grafana/grafana 11.1.4
  • grafana/loki 3.1.1
  • prom/alertmanager v0.27.0
  • nginx 1.25.4-alpine3.18
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
.github/workflows/update-requirements.yml
  • actions/checkout v4
  • actions/setup-python v5
pip_requirements
requirements.freeze.txt
  • ansible ==10.3.0
  • ansible-core ==2.17.3
  • ansible-runner ==2.4.0
  • certifi ==2024.7.4
  • cffi ==1.17.0
  • charset-normalizer ==3.3.2
  • click ==8.1.7
  • cryptography ==43.0.0
  • docutils ==0.21.2
  • gitdb ==4.0.11
  • GitPython ==3.1.43
  • idna ==3.7
  • Jinja2 ==3.1.4
  • lockfile ==0.12.2
  • markdown-it-py ==3.0.0
  • MarkupSafe ==2.1.5
  • mdurl ==0.1.2
  • opswork ==0.8.16
  • packaging ==24.1
  • pexpect ==4.9.0
  • pexy ==0.9.4
  • prettytable ==3.11.0
  • ptyprocess ==0.7.0
  • pycparser ==2.22
  • Pygments ==2.18.0
  • python-daemon ==3.0.1
  • PyYAML ==6.0.2
  • requests ==2.32.3
  • resolvelib ==1.0.1
  • rich ==13.7.1
  • smmap ==5.0.1
  • urllib3 ==2.2.2
  • wcwidth ==0.2.13
requirements.txt
  • ansible ==10.3.0
  • opswork ==0.8.16
  • pexy ==0.9.4
ruby-version
docs/.ruby-version
  • ruby 3.1.2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.