mkdir ubuntu-x11
cd ubuntu-x11
cat > Dockerfile
FROM ubuntu:bionic
RUN apt update
RUN apt install -y x11-apps
CMD ["/usr/bin/xeyes"]
sudo docker build -t xeyes .
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Getting started with ReactJS</title> | |
| </head> | |
| <body> | |
| <-- Create a button --> | |
| <div id="like_button_container"></div> | |
| <-- Add ReactJS --> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Getting started with ReactJS</title> | |
| </head> | |
| <body> | |
| <div id="hello"></div> | |
| <script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script> | |
| <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script> |
| #include "config.h" | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <mysql.h> | |
| int main(int argc, char **argv) | |
| { |
| pragma solidity ^0.4.18; | |
| contract Utils{ | |
| function addressToBytes(address x) internal pure returns (bytes) { | |
| bytes memory buffer = new bytes(20); | |
| for (uint i = 0; i < 20; i++) | |
| buffer[i] = byte(uint8(uint(x) / (2**(8*(19 - i))))); | |
| return buffer; | |
| } | |
| function uintToBytes(uint v) internal pure returns (bytes) { |
| make | |
| gcc -o netlinkUser netlinkUser.c | |
| sudo insmod netlinkKernel.ko | |
| ./netlinkUser | |
| sudo rmmod netlinkKernel | |
| make lean |
| logfile="/var/log/trustbox" | |
| # Clear all rules | |
| iptables -F | |
| iptables -X | |
| # LOG all connection | |
| iptables -A INPUT -j LOG | |
| iptables -A OUTPUT -j LOG | |
| # ALLOW ssh port 63378 | |
| # Allowed ip define in file 'ip.txt' | |
| for ip in `cat ip.txt` |
| #!/bin/bash | |
| case "$1" in | |
| start) | |
| /path/to/hit.sh & | |
| echo $!>/var/run/hit.pid | |
| ;; | |
| stop) | |
| kill `cat /var/run/hit.pid` | |
| rm /var/run/hit.pid |
| #!/usr/bin/env/python | |
| # | |
| # More of a reference of using jinaj2 without actual template files. | |
| # This is great for a simple output transformation to standard out. | |
| # | |
| # Of course you will need to "sudo pip install jinja2" first! | |
| # | |
| # I like to refer to the following to remember how to use jinja2 :) | |
| # http://jinja.pocoo.org/docs/templates/ | |
| # |
| var settings = { | |
| "async": true, | |
| "crossDomain": true, | |
| "url": "/docker/create/netapi", | |
| "method": "POST", | |
| "headers": { | |
| "Content-Type": "application/x-www-form-urlencoded", | |
| "cache-control": "no-cache", | |
| }, | |
| "data": { |