-
Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.
brew tap jeffreywildman/homebrew-virt-manager brew install virt-viewer
-
Once that's installed should be able make a call
remote-viewer
with a pve-spice.vv file downloaded from proxmox web interface
""" | |
A micro event loop library implementation from scratch. | |
This library provides a minimal but feature-complete asynchronous event loop | |
implementation for educational purposes. It demonstrates the core concepts of | |
asynchronous programming including: | |
- Task scheduling and management | |
- I/O multiplexing with non-blocking sockets | |
- Timeouts and sleep functionality |
default_platform(:mac) | |
platform :mac do | |
before_all do | |
# Make sure we start off with a clean slate | |
ensure_git_status_clean | |
end | |
desc "Create a notarized build of the macOS App" | |
lane :notarized do |
# Change to name of TARGET-VM. | |
$vm='CHANGE_ME' | |
# Change to PCI device location (💡 Location). | |
$Location = 'CHANGE_ME' | |
# Enable CPU features. | |
Set-VM -GuestControlledCacheTypes $true -VMName $vm | |
# Host-Shutdown rule must be changed for the VM. | |
Set-VM -Name $vm -AutomaticStopAction TurnOff |
use std::ffi::CString; | |
use std::os::raw::{c_char, c_int}; | |
use std::{ptr, mem}; | |
#[no_mangle] | |
unsafe extern "C" fn get_strings(outlen: *mut c_int) -> *mut *mut c_char { | |
let mut v = vec![]; | |
// Let's fill a vector with null-terminated strings | |
v.push(CString::new("Hello").unwrap()); |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
package main | |
import ( | |
"encoding/binary" | |
"errors" | |
"fmt" | |
"io" | |
"net" | |
) |
I'm buiding a command line tool in Go that has an option to install itself as a service on Windows, which it needs admin rights for. I wanted to be able to have it reliably detect if it was running as admin already and if not, relaunch itself as admin. When the user runs the tool with the specific switch to trigger this functionality (-install or -uninstall in my case) they are prompted by UAC (User Account Control) to run the program as admin, which allows the tool to relaunch itself with the necessary rights.
To detect if I was admin, I tried the method described here first:
https://coolaj86.com/articles/golang-and-windows-and-admins-oh-my/
This wasn't accurately detecting that I was elevated, and was reporting that I was not elevated even when running the tool in CMD prompt started with "Run as Administrator" so I needed a more reliable method.
I didn't want to try writing to an Admin protected area of the filesystem or registry because Windows has the ability to transparently virtualize those writes
#!/usr/bin/python | |
bpf_text = """ | |
#include <linux/ptrace.h> | |
#include <linux/sched.h> /* For TASK_COMM_LEN */ | |
#include <linux/icmp.h> | |
#include <linux/netdevice.h> | |
struct probe_icmp_data_t | |
{ |
#!/bin/bash | |
# Steps to create the macOS Catalina (10.15) VM: | |
# login to developer.apple.com or beta.apple.com to download a tester's profile for your OS. Install it. | |
# Go to System Preferences > Software Update and start the update process | |
# When the Catalina Installer (few MBytes) is started, it downloads the remain part of installation. | |
# After all `Install Catalina Beta.app` should lay in the /Applications folder with approx. 6.5g size | |
# Proceed with the following script. | |
set -eux |