Skip to content

Instantly share code, notes, and snippets.

View VladimirMakaev's full-sized avatar

Vladimir Makaev VladimirMakaev

View GitHub Profile
@VladimirMakaev
VladimirMakaev / ventoy-macos-install.py
Last active August 5, 2026 16:36
Install Ventoy on a USB drive from macOS - no VM, no macFUSE, no Linux required. Writes GPT + boot code directly via Python.
#!/usr/bin/env python3
"""
ventoy-macos-install.py - Install Ventoy on a USB drive from macOS.
This script installs Ventoy on a USB drive without requiring macFUSE,
Linux, or a VM. It writes the GPT partition table, boot code, and
EFI partition image directly to the raw block device.
Usage:
sudo python3 ventoy-macos-install.py /dev/diskN [--exfat|--ntfs] [--ventoy-version VERSION]
@VladimirMakaev
VladimirMakaev / MyPowershellProfile.ps1
Last active March 16, 2017 17:16
Powershell Profile that adds Visual Studio Environment to the PATH. Similar to Developer Console shortcut for Visual Studio
#$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin"
#ls C:\tools\poshgit -Recurse profile.example.ps1 | select -First 1 | foreach-object { ."$($_.FullName)"}
#if(Test-Path 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'){
# Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
#}
if(Test-Path 'c:\PSLocal'){
@VladimirMakaev
VladimirMakaev / DbSetRegistrationSource.cs
Created May 21, 2014 12:44
Autofac RegistrationSource to automatically inject IDbSet<T>
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Reflection;
using Anybill.Renaissance.Common;
using Autofac;
using Autofac.Builder;
using Autofac.Core;
@VladimirMakaev
VladimirMakaev / filepathresolver.cs
Created June 7, 2013 09:45
Resolver to parse tokesn {name_1} to values
public class FilePathResolver : IFilePathResolver, ISingletonDependency
{
private readonly string baseDirectory;
public FilePathResolver(string baseDirectory)
{
this.baseDirectory = baseDirectory;
}
#region IFilePathResolver Members
@VladimirMakaev
VladimirMakaev / .gitignore-vs
Created February 15, 2013 21:59
A .gitignore file for Visual Studio
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
@VladimirMakaev
VladimirMakaev / express.d.ts
Last active December 12, 2015 09:09
express.d.ts
///<reference path='..\node\node.d.ts' />
declare module "express" {
export function createServer(): ExpressServer;
export function static(path: string): any;
import http = module("http");
export var listen;
// Connect middleware
export function bodyParser(options?:any): (req: ExpressServerRequest, res: ExpressServerResponse, next) =>void;