Skip to content

Instantly share code, notes, and snippets.

View engineervix's full-sized avatar
🎯
Focusing

Victor Miti engineervix

🎯
Focusing
View GitHub Profile
@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 July 30, 2023 16:56
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 September 27, 2022 13:26
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()
{
@engineervix
engineervix / make_dirs_if_not_exists.py
Created January 28, 2020 20:36
create directories if they don't exist
import os
d = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
out_dir = os.path.join(d, "dir_name")
os.makedirs(out_dir, exist_ok=True)
@engineervix
engineervix / index.html
Created January 8, 2020 19:23
Electricity Tariff Calculator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="" />
<meta name="author" content="" />