- the agent detects the change, sends it to the manager
- the manager sends the change to an authenticated API endpoint
- the API process the change (uploads the file if binary, updates the DB)
- the manager sends an external change notification to all connected clients
- the client refetches the sandbox contents (lazy fetching?)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@player:~# cd /usr/src | |
root@player:/usr/src# apt-get install -y golang | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
golang-doc golang-go golang-go-linux-amd64 golang-src | |
Suggested packages: | |
golang-go.tools | |
The following NEW packages will be installed: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
luck@hhvm-dev:~/dev/facebook/hhvm$ hphp/hhvm/hhvm --version | |
HipHop VM 3.1.0-dev (dbg) | |
Compiler: heads/master-0-gd8a76b38834df17dea1faf1901b13d8e68ba04a3 | |
Repo schema: b95de36ef533ec293e848834591b8ca6834c99ba | |
luck@hhvm-dev:~/dev/facebook/hhvm$ cat test1.php | |
<?php | |
namespace Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var logLevels = { | |
error: { | |
prio: 0, // lower has priority | |
method: "error" | |
}, | |
warning: { | |
prio: 1, | |
method: "warn" | |
}, | |
info: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)} | |
// Used when there is no 'main' module. | |
// The name is probably (hopefully) unique so minification removes for releases. | |
var register_3795 = function (id) { | |
var module = dem(id); | |
var fragments = id.split('.'); | |
var target = Function('return this;')(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const puppeteer = require('puppeteer'); | |
const AWS = require('aws-sdk'); | |
const s3Config = { | |
apiVersion: '2006-03-01', | |
region: 'eu-central-1', | |
bucket: 'codesandbox-thumbnails', | |
}; | |
const puppeteerConfig = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Koa = require('koa'); | |
const Router = require('koa-router'); | |
const AWS = require('aws-sdk'); | |
const app = new Koa(); | |
const router = new Router(); | |
const thumbnails = {}; | |
AWS.config.loadFromPath('./aws_lambda.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INTERFACE=ens33 # interface we're listening on | |
NUM_PACKETS=3 # number of packets sent at once | |
TIME_THRESHOLD=3 # max seconds between packets | |
PACKET_THRESHOLD=3 # packets needed to run command | |
COMMAND="echo DONE!" # command to run | |
packet_count=0 | |
last_timestamp=0 |
At the beginning of the workshop you should have all of the following installed:
- Node.js (preferably the latest LTS version, which as of now is 10.15.0): https://nodejs.org/en/download/
- Visual Studio Code: https://code.visualstudio.com/download
- after installing and starting, also install eslint, prettier and vetur plugins
- Vue.js devtools Chrome extension: https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd?hl=en
- git, which you can install from:
- for Windows - https://gitforwindows.org/ (also includes Git BASH and usual *NIX tools)
- for MacOS - https://git-scm.com/download/mac
- for Linux - use the distro package manager
- yarn and @vue/cli npm packages installed globally:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# run this inside an Ubuntu 18.04 container | |
set -e | |
set -u | |
set -x | |
DH_GOLANG_DEB=dh-golang_1.48_all.deb | |
BUILD_DIR=cri-o |
OlderNewer