Skip to content

Instantly share code, notes, and snippets.

View Monarch73's full-sized avatar
💭
I may be slow to respond.

Niels Hüsken Monarch73

💭
I may be slow to respond.
View GitHub Profile
@Monarch73
Monarch73 / installmicrok8s.md
Created April 29, 2024 08:37
Install microk8s in proxmox

Installing microk8s in an LXC container (i.e.: proxmox)

This is an roundition of https://gist.github.com/acj/3cb5674670e6145fa4f355b3239165c7 which got a bit messy

  1. Create a LXC container through the Proxmox web interface (ie.: ubuntu.23-10-lts)
    • untick "unpriviledged" container
    • in memory, set swap to 1024
    • set mem to at least 4096
    • in network, make sure you assign static ip-adress to the container
  • create container but don't start it.
@Monarch73
Monarch73 / relocate.xml
Created May 24, 2021 20:56
relocate.xml to move profiles (users folder) to d:\
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>
</component>
</settings>
</unattend>
@Monarch73
Monarch73 / mkionicdevenv.ps1
Last active February 27, 2022 11:18
create VHD that contains dev enviroment for ionic and android dev env
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
$cwd = (Get-Item .).FullName
$arguments = "& '" +$myinvocation.mycommand.definition + "'"
#Start-Process powershell -Verb runAs -ArgumentList $arguments
Start-Process powershell -ArgumentList ("-NoExit",("cd {0}; $arguments" -f $cwd)) -Verb RunAs
Break
}