Skip to content

Instantly share code, notes, and snippets.

View engineervix's full-sized avatar

Victor Miti engineervix

View GitHub Profile
@engineervix
engineervix / run_ollama_on_vastai.sh
Created September 18, 2024 13:17
Run Ollama on vast.ai
#!/bin/bash
# ============================================================================
# Description: This script bootstraps a new vast.ai GPU instance, installs
# ollama and sets up a custom model for inference.
#
# author: Victor Miti <https://github.com/engineervix>
# ============================================================================
# Exit immediately if any command fails
@engineervix
engineervix / auto_poetry_update.sh
Created August 9, 2024 12:05
Automate updating Poetry dependencies with individual commits for each package, including version changes.
#!/bin/bash
# =================================================================================================
# Description: This script updates all outdated Poetry dependencies for a Python project, ensuring
# each package is kept up-to-date with the latest compatible versions available.
# It processes each outdated package individually, updating them one by one.
# If an update is successful, the script commits these changes to git
# with a clear message indicating the package name and the version change.
# This granular approach to updating and committing allows for
# better tracking of changes and simplifies rollback procedures if an update
@engineervix
engineervix / vscode-extensions.list
Last active July 28, 2023 20:43
VS Code Extensions
aaron-bond.better-comments
akamud.vscode-theme-onedark
alefragnani.Bookmarks
bibhasdn.django-html
bibhasdn.django-snippets
bradgashler.htmltagwrap
charliermarsh.ruff
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
Codium.codium
@engineervix
engineervix / ubuntu_desktop_setup.sh
Last active May 1, 2024 07:51
Ubuntu Desktop Setup
#!/usr/bin/env bash
# =============================================================================
# description: Ubuntu 22.04 Desktop Setup Script
# author: Victor Miti <https://github.com/engineervix>
# note: In its current state, this won't run unattended without issues.
# There are some manual interventions in between certain steps.
# The script primarily serves as documentation of the setup process
# for future reference.
# TODO: make this run unattended.
@engineervix
engineervix / dokku_setup.sh
Last active July 2, 2022 21:35
Dokku setup
#!/usr/bin/env bash
# ================================================================================================================
# author: Victor Miti <https://github.com/engineervix>
# NOTES:
# 1. this is not meant to be executed as a script!
# rather, it's a documented sequence of steps to follow
# in setting up Dokku & deploying your web applications.
# 2. this is mostly based on my experience deploying a
@engineervix
engineervix / OpenSUSE_notes.md
Last active March 8, 2022 05:38
openSUSE setup
manjaro encrypt disk on install - Google Search
https://www.google.com/search?q=manjaro+encrypt+disk+on+install&client=firefox-b-d&sxsrf=APq-WBs3lUyKP1DSZ1KrIH49CCwP3-jjHg%3A1645869510456&ei=xvkZYu-3G8S6aaP5o4gF&ved=0ahUKEwjvspHcjZ32AhVEXRoKHaP8CFEQ4dUDCA0&uact=5&oq=manjaro+encrypt+disk+on+install&gs_lcp=Cgdnd3Mtd2l6EAM6BwgAEEcQsAM6BwgAELADEEM6BAgAEEM6BQgAEIAEOgoIABCABBCHAhAUOgUIABCRAjoGCAAQFhAeOggIABAWEAoQHjoECAAQDToGCAAQDRAeOggIABAIEA0QHjoGCAAQBxAeSgQIQRgASgQIRhgAUPsGWJeHAWCvigFoAnABeACAAeEDiAHAPJIBBjMtMjAuMpgBAKABAcgBCsABAQ&sclient=gws-wiz
Fresh Manjaro Installation With Encryption : ManjaroLinux
https://www.reddit.com/r/ManjaroLinux/comments/bc3r7e/fresh_manjaro_installation_with_encryption/
[HowTo] Install Manjaro fully encrypted using Manjaro Architect - Contributions / Tutorials - Manjaro Linux Forum
https://forum.manjaro.org/t/howto-install-manjaro-fully-encrypted-using-manjaro-architect/2709/4
Manjaro - First Steps
@engineervix
engineervix / models.py
Created September 19, 2021 13:10
Wagtail branching workflows based on value of specified Page field
# see https://stackoverflow.com/questions/69028083/branching-workflows-based-on-value-of-specified-page-field/69060134
# Django imports
from django import forms
from django.db import models
from django.utils.functional import cached_property
# Additional dependencies
# ...
@engineervix
engineervix / fedora_setup.sh
Last active April 10, 2025 09:29
Things to do after installing Fedora
#!/usr/bin/env bash
# ---------------------------------------------
# This has been updated to work with Fedora 35
# ---------------------------------------------
# Run a System Update
sudo dnf update
# Enable RPM Fusion
#!/bin/bash
function die()
{
echo "${@}"
exit 1
}
function backup_previous_install()
{