My Personal dotfiles
- Clone the repository.
# Create space directory
$ mkdir -p ~/space
$ git clone git@github.com:clivern/matrix.git ~/space/matrix- Install the following manually
- Install opswork and
pipglobally.
$ brew install yq
$ brew install python@3.11
$ pip install -r requirements.freeze.txt
$ alias op=opswork- Init the configs
$ op config init
$ op config dump- Add local as a host.
$ make hosts- Add dotfiles recipes.
$ make recipes- Run recipes one by one or the needed ones. for example to run
clivern/pingtowards host with namelocalhost.
$ 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 .- To install dotfiles.
$ make run- 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- Store the secrets in
OpsWorkvault.
$ op secret add clivern/ai/google_palm_api_key "~~" -t ai
$ op secret add clivern/ai/openai_api_key "~~" -t ai- Secret can be loaded as environmental variable by adding it to
configs/secrets.j2like the following.
$ export OPENAI_API_KEY="$(op secret get clivern/ai/openai_api_key -o json | jq -r '.[0].value')"- To load secrets from terminal.
$ source ~/.secrets- To list all recipes
$ op recipe list -o json | jq -r '.[].name'
To install ngrok
$ op recipe run clivern/matrix/ngrok -h localhostTo 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 ~/.secretsTo configure ngrok auth token
$ ngrok config add-authtoken $NGROK_KEYTo proxy to local port 8000
$ ngrok http --domain=$NGROK_DOMAIN 8000Add recipes
$ make recipesInstall LSP servers
$ opswork recipe run clivern/matrix/lsp -h localhost
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": ".."
}
]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:
$ git clone https://github.com/daylerees/colour-schemes.git daylerees-themes- Select the theme via Preferences → Color Scheme → daylerees-themes.
© 2010, Clivern. Released under MIT License.
Matrix is authored and maintained by @clivern.
