This is an example script of how to host VDI / VMDK (VirtualBox images) directly over PXE (Network boot).
Example relies on LTSP.
Can be any distro, but requires ltsp-client-core, example with Debian:
sudo apt-get -y install ltsp-client-core
<style lang="scss"> | |
@import "~material-design-lite/material.css"; | |
</style> |
<template> | |
<canvas ref="chart"></canvas> | |
</template> | |
<script> | |
import chart from 'chart.js' | |
export default { | |
props: ['options', 'data'], |
import Vue from 'vue'; | |
import 'material-design-lite'; | |
Vue.mixin({ | |
mounted() { | |
for (const el of this.$el.querySelectorAll('[class*=mdl-js-]')) { | |
if (!el.dataset.upgraded) { | |
componentHandler.upgradeElement(el); | |
} | |
} |
import 'material-design-lite' | |
Vue.mixin({ | |
mounted() { | |
if (!this.$el || !this.$el.querySelectorAll) return; | |
componentHandler.upgradeElement(this.$el); | |
for (const el of this.$el.querySelectorAll('[class*=mdl-js-]')) { | |
if (!el.dataset.upgraded) { | |
componentHandler.upgradeElement(el); |
const req = require.context('./components/', true, /\.(js|vue)$/i); | |
req.keys().map(key => { | |
const name = key.match(/\w+/)[0]; | |
return Vue.component(name, req(key)) | |
}); |
FROM base/archlinux | |
RUN pacman -Syu | |
RUN pacman -S --noconfirm git base-devel | |
WORKDIR /build | |
RUN useradd -d /build build-user | |
RUN echo "build-user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
RUN chown -R build-user /build |
const path = require('path'); | |
const cwd = process.cwd(); | |
module.exports = { | |
"includePaths": [ | |
path.resolve(cwd, 'node_modules'), | |
path.resolve(cwd, 'src') | |
] | |
}; |
import Vue from 'vue'; | |
import Vuex from 'vuex'; | |
Vue.use(Vuex); | |
function teenageAutoMutateTurtles(...props) { | |
return props.reduce((o, p) => (o[`set${p[0].toUpperCase()}${p.slice(1)}`] = (s, v) => s[p] = v) && o, {}); | |
} | |
export default new Vuex.Store({ |
<!DOCTYPE html> | |
<body> | |
<script src="https://unpkg.com/@eirikb/[email protected]"></script> | |
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/1.0.2/js/msal.min.js"></script> | |
<script type="text/babel"> | |
const azureAdAppClientId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'; | |
const sharePointUrl = 'https://xxxxxx.sharepoint.com'; |