Skip to content

Instantly share code, notes, and snippets.

@ayasns
ayasns / openwrt-efi-on-proxmox.md
Last active May 12, 2025 16:07 — forked from ryuheechul/openwrt-efi-on-proxmox.md
How to "Install" an OpenWRT VM in Proxmox with UEFI

Existing references I looked at before I went on trial and error until eventually I managed to make it work:

Note

Although links above were good references to look at so I didn't have to start from scratch, following none of them actually worked for me. Hence, I'm leaving my own note after figuring things out.

My situation:

@ayasns
ayasns / PrintBootCampESDInfo.swift
Created June 11, 2020 20:42 — forked from nuomi1/PrintBootCampESDInfo.swift
macOS and BootCamp Latest
#!/usr/bin/env swift
//
// REPL.swift
//
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
//
import Foundation
@ayasns
ayasns / createDirectoryRecursively.cpp
Created August 15, 2018 15:48 — forked from danzek/createDirectoryRecursively.cpp
Create Directory Recursively with Windows API
/* From http://blog.nuclex-games.com/2012/06/how-to-create-directories-recursively-with-win32/
* Retrieved April 12, 2017
* Posted by user Cygon (http://blog.nuclex-games.com/author/cygon/)
*
* This code is free for the taking and you can use it however you want.
*
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
@ayasns
ayasns / main.cpp
Created June 4, 2018 01:30 — forked from xandout/main.cpp
C++ directory lister
#include <stdio.h>
#include <string>
#include <iostream>
#include <windows.h>
#include <vector>
using namespace std;
//Simple struct to return from lsfiles
@ayasns
ayasns / probeFs.c
Created May 16, 2018 20:29 — forked from maxdeliso/probeFs.c
search filesystem for writable files
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
void* fallibleMalloc(int n);
@ayasns
ayasns / get_exe_directory.cpp
Created January 18, 2018 20:11 — forked from yoggy/get_exe_directory.cpp
GetModuleFileName() & boost::filesystem sample
std::string get_exe_fullpath()
{
char path[MAX_PATH];
::GetModuleFileName(NULL, path, MAX_PATH);
return std::string(path);
}
std::string get_exe_filename()
{
boost::filesystem::path path(get_exe_fullpath());