Skip to content

Instantly share code, notes, and snippets.

@doug65536
doug65536 / lxc-exec-all.sh
Last active December 14, 2021 15:46 — forked from lcherone/lxc-exec-all.sh
LXD run command in all running containers, optionally in parallel
#!/bin/bash
#
# Run command in all running containers
# Usage: $ ./lxc-exec-all.sh apt update && apt upgrade
#
# To run in all in parallel, put '*' as the first argument.
#
if "$1"=="*" then
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Synchronized Slider</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.1/socket.io.js"></script>
<script type="text/javascript">
var peers = [
@doug65536
doug65536 / tk
Last active August 29, 2015 14:07 — forked from anonymous/tk
var self = this,
renderFrame = self.document.getElementById("render_frame"),
iFrame = self.document.getElementById('iframe_exec'),
interval;
interval = setInterval(function() {
var nodes = iFrame.contentDocument.body.cloneNode(true), frag;
frag = document.createDocumentFragment();
for (var i = 0, ch = nodes.children; e = ch.length; i != e; ++i)