I hereby claim:
- I am seffyroff on github.
- I am seffyroff (https://keybase.io/seffyroff) on keybase.
- I have a public key ASBbmH10gdfd6cNz7mxv1FHFXd8mGoh1CRNGaK_RXbdIvwo
To claim this, I am signing this object:
| <?xml version='1.0' ?> | |
| <!-- | |
| Why is this one giant script instead of a bunch of smaller scripts? | |
| Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't | |
| really much of a programming language there is no easy way to use an IDE and jump between | |
| includes, find usages of variables, and just generally quickly search things. It was found to | |
| be easier to have a single large file that a developer can quickly jump up and down in when | |
| trying to understand what the BuildGraph script is doing. |
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ;#Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| #SingleInstance force | |
| SetFormat, float, 03 ;remove decimals from joystick values | |
| ;This script will activate your game window whenever | |
| ;any joystick axis changes. Handy for when you're | |
| ;Alt-Tabbed out of the game on your second monitor. |
I hereby claim:
To claim this, I am signing this object:
| param( | |
| [Parameter(Mandatory)][string]$vmName | |
| ) | |
| $InformationPreference = "Continue" | |
| $ErrorActionPreference = "Stop" | |
| try { | |
| $vmPartitionAdapter = Get-VMGpuPartitionAdapter -VMName $vmName | |
| if ($vmPartitionAdapter) { | |
| Write-Information "Removing Partition Adapter. Checkpoints work." |
| Ubuntu 18.04, DBUS Fix Instructions with Troubleshooting | |
| After asking if there were updated instructions, and promising to write it up if I could figure it out...https://www.reddit.com/r/bashonubuntuonwindows/comments/9l46br/asking_wsl_ubuntu_1804_dbus_fix_updated/ | |
| From a truly clean 18.04.1 install it should be this: | |
| sudo apt install dbus-x11 | |
| sudo systemd-machine-id-setup |
Thanks a lot to mredbishop and others for their insturctions posted here. This is just a recap of what they figured out.
This process was tested on WSL Ubuntu 18.04.
| seffyroff@maasvm:~$ sudo ./lxd-p2c rombus.lan maas / --rsync-args="-vvv --exclude=/var/cache" | |
| Generating a temporary client certificate. This may take a minute... | |
| Certificate fingerprint: b8b5087b293d2e4891fddb416e390b31c5ae3b16c22de192779e5751520bb2b6 | |
| ok (y/n)? y | |
| Admin password for https://rombus.lan:8443: | |
| opening connection using: sh -c "/home/seffyroff/lxd-p2c netcat @lxd-p2c/bfba53aa-d314-4d52-87d2-6f21e3e5a3fb" localhost rsync --server -vvvlogDtpXrSze.iLsfxC --compress-level=2 --delete --partial --numeric-ids . /tmp/foo (13 args) | |
| sending incremental file list | |
| [sender] make_file(rootfs,*,0) | |
| send_file_list done | |
| [sender] pushing local filters for /tmp/lxd-p2c_mount_728675622/rootfs/ |
| #!/usr/bin/env python | |
| """ | |
| This script will update all the juju units using | |
| the hostname defined on the provided dns server | |
| Usage: | |
| {0} ip-of-maas-dns-server | |
| """ |
| config: | |
| boot.autostart: "true" | |
| linux.kernel_modules: openvswitch,nbd,ip_tables,ip6_tables,kvm | |
| raw.apparmor: mount, | |
| raw.lxc: |- | |
| lxc.cgroup.devices.allow = c 10:237 rwm | |
| lxc.cgroup.devices.allow = b 7:* rwm | |
| lxc.cgroup.devices.allow = b 259:* rwm | |
| lxc.cgroup.devices.allow = b 230:* rw | |
| security.nesting: "true" |
| #!/bin/bash | |
| set -eu | |
| _UID=$(id -u) | |
| GID=$(id -g) | |
| # give lxd permission to map your user/group id through | |
| grep root:$_UID:1 /etc/subuid -qs || sudo usermod --add-subuids ${_UID}-${_UID} --add-subgids ${GID}-${GID} root | |
| # set up a separate key to make sure we can log in automatically via ssh | |
| # with $HOME mounted |