Skip to content

Instantly share code, notes, and snippets.

View lucasvscn's full-sized avatar

Lucas Vasconcelos lucasvscn

View GitHub Profile
@lucasvscn
lucasvscn / pint.js
Created May 31, 2025 14:06
pint.json
{
"preset": "empty",
"notPath": [
"tests/TestCase.php"
],
"rules": {
"array_syntax": true,
"assign_null_coalescing_to_coalesce_equal": true,
"clean_namespace": true,
"heredoc_indentation": true,
@lucasvscn
lucasvscn / qemu
Created May 28, 2024 17:30
libvirt hook script
#!/bin/bash
# vim: ft=sh ts=2 sw=2 et:
# ----------------------------------------------------------------------------
#
# qemu - libvirt hook script
#
# ----------------------------------------------------------------------------
#
# This script is called by libvirt when a guest is started or stopped.
# It will look for a script in the qemu.d directory with the same name as the
@lucasvscn
lucasvscn / archive-dl.sh
Last active May 25, 2024 19:05
Download files from archive.org
#!/usr/bin/env bash
# vim: set ts=2 sw=2 sts=2 et:
#
# ----------------------------------------------------------------------------
#
# archive-dl.sh - Download files from archive.org
#
# Author : Lucas Vasconcelos <[email protected]>
# Date ..: 2024-05-25
# URL ...: https://gist.github.com/lucasvscn/a8e8dcc4908a92c01dd0af0bed54219a
<domain type="kvm">
<name>win11-real</name>
<uuid>30d10fdf-4453-4928-b25d-049ef66a578e</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/11"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">16777216</memory>
<currentMemory unit="KiB">16777216</currentMemory>
@lucasvscn
lucasvscn / win11.xml
Created November 30, 2023 19:33 — forked from akitaonrails/win11.xml
My Windows 11 libvirt XML configuration
<domain type='kvm'>
<name>win11-real</name>
<uuid>45768371-b871-4937-b7c2-60ed835011de</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>33554432</memory>
<currentMemory unit='KiB'>33554432</currentMemory>