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
const path = require('path'); | |
const cwd = process.cwd(); | |
module.exports = { | |
"includePaths": [ | |
path.resolve(cwd, 'node_modules'), | |
path.resolve(cwd, 'src') | |
] | |
}; |
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 req = require.context('./components/', true, /\.(js|vue)$/i); | |
req.keys().map(key => { | |
const name = key.match(/\w+/)[0]; | |
return Vue.component(name, req(key)) | |
}); |
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); |
[Unit] | |
Description=Scheduled Reboot | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/systemctl --force reboot |
<template> | |
<canvas ref="chart"></canvas> | |
</template> | |
<script> | |
import chart from 'chart.js' | |
export default { | |
props: ['options', 'data'], |
<style lang="scss"> | |
@import "~material-design-lite/material.css"; | |
</style> |
<hash>
with your gist's hash):
# with ssh
git clone [email protected]:<hash>.git mygist
# with https
git clone https://gist.github.com/.git mygist