This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #$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'){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class FilePathResolver : IFilePathResolver, ISingletonDependency | |
| { | |
| private readonly string baseDirectory; | |
| public FilePathResolver(string baseDirectory) | |
| { | |
| this.baseDirectory = baseDirectory; | |
| } | |
| #region IFilePathResolver Members |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///<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; |