Skip to content

Instantly share code, notes, and snippets.

View Axelmdez's full-sized avatar

Axel Melendez Axelmdez

View GitHub Profile
@Axelmdez
Axelmdez / appsettings_updater.py
Last active October 1, 2025 15:44
Before using this script make sure you have a valid source JSON file (appsettings.json) and a target text file (copy-pasted-keys-&-vals-from-the-key-vault.txt). I made this script to update an appsettings.json file with values copied from Azure Key Vault, super useful for local development & quick and dirty fix for my issue..
import json
import os
import tkinter as tk
from tkinter import filedialog, messagebox
CONFIG_FILE = "appsettings-saved-config.json"
def load_config():
if os.path.exists(CONFIG_FILE):
with open(CONFIG_FILE, "r") as f:
@Axelmdez
Axelmdez / next-dev-ip.ts
Last active June 17, 2025 06:37
When running next dev -H 0.0.0.0 for network access, Next.js displays 0.0.0.0 instead of your actual local IP address. This is a quick fix to that. Simply drop and update your package.json to run with "dev"
// This script is used to start the Next.js dev server with the local IP address
// Only works on Windows
// ****ONLY WORKS ON WINDOWS****
// In your package.json, you can use the script to start the dev server
// run with:
// "dev": "ts-node scripts/next-dev-ip.ts",
// or drop ts-node and typescript for you folks who like to drive without seatbelts; your choice
// "dev": "node scripts/next-dev-ip.js"
const { spawn } = require("child_process");
@Axelmdez
Axelmdez / private_fork.md
Created November 24, 2023 05:59 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git