How to setup Proxmox to use Keycloak as authentication realm.
root@proxmox:/etc/pve# cat domains.cfg
pam: pam
comment Linux PAM standard authentication
{ | |
"add_disks": [ | |
{ | |
"media": "disk", | |
"model": "virtio", | |
"nocreate": true, | |
"boot": false, | |
"path": "/dev/zvol/rdsk/tank/purpose", | |
"size": 20480 | |
} |
// Created by Pedro Rojas (aka Pitt) | |
// Link to learn more about this code: https://youtu.be/kZ7JPFUVv1w | |
import SwiftUI | |
import WebKit | |
@resultBuilder | |
struct HtmlBuilder { | |
static func buildBlock() -> [HtmlTag] { | |
[] |
import UIKit | |
import PhotosUI | |
class ViewController: UIViewController { | |
@IBAction func presentPickerForImagesIncludingLivePhotos(_ sender: Any ) { | |
presentPicker( filter: PHPickerFilter.images ) | |
} | |
private func presentPicker( filter: PHPickerFilter ) { |
import Foundation | |
// Model. | |
struct Employee: Codable { | |
let id: Int | |
let name: String | |
} |
Disclaimer it's illegal to run MacOS X virtualize on non-Apple hardware supposedly.
... and inspiration: https://gist.github.com/onnet/39f436921db688d9a087f3f11738746b
#!/bin/sh | |
### Desktop & Screen Saver | |
# Desktopを黒に | |
echo "Change Desctop Pictures" | |
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Gray Pro Ultra Dark.png"' | |
# ScreenSaver Kill | |
echo "Disable screensaver" |
import UIKit | |
public enum DisplayType { | |
case unknown | |
case iphone4 | |
case iphone5 | |
case iphone6 | |
case iphone6plus | |
static let iphone7 = iphone6 | |
static let iphone7plus = iphone6plus |