Skip to content

Instantly share code, notes, and snippets.

@midoriiro
midoriiro / bluetooth_switcher.py
Last active September 11, 2021 15:04
Bluetooth switcher in PyQt 5.5
'''
I've installed a new wifi card on my laptop with bluetooth support,
but there is no shortcut in my keyboard to swtich on/off bluetooth.
This script + custom shortcut with your linux DE (or other) work perfectly
'''
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtBluetooth import QBluetoothLocalDevice
if __name__ == '__main__':
@midoriiro
midoriiro / app.component.ts
Last active April 24, 2020 12:54
Angular2 - Django Template Application
import {Component} from 'angular2/core';
@Component({
selector: 'my-app',
template: '<h1>My First Angular 2 App</h1>'
})
export class AppComponent{}
@midoriiro
midoriiro / qt_rasp-pi3_cross_compile.md
Last active February 8, 2024 18:00
Cross-compile Qt-5.11.3 from Linux to Raspberry PI 3 B+

Ultimate Beginner's Guide to Proxmox GPU Passthrough

mirror of The Ultimate Beginner's Guide to GPU Passthrough (Proxmox, Windows 10) by /u/cjalas

>Welcome all, to the first installment of my Idiot Friendly tutorial series! I'll be guiding you through the process of configuring GPU Passthrough for your Proxmox Virtual Machine Guests. This guide is aimed at beginners to virtualization, particularly for Proxmox users. It is intended as an overall guide for passing through a GPU (or multiple GPUs) to your Virtual Machine(s). It is not intended as an all-exhaustive how-to guide; however, I will do my best to provide you with all the necessary resources and sources for the passthrough process, from start to finish. If something doesn't work properly, please check /r/Proxmox, /r/Homelab, /r/VFIO, or

@midoriiro
midoriiro / convert-image.psm1
Created November 15, 2023 18:08
Convert OCI image to LXC format
Function Convert-Image
{
Param (
[Parameter(Mandatory = $true)]
[string]$Name,
[Parameter(Mandatory = $true)]
[string]$Tag,
[Parameter(Mandatory = $false)]