There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
- The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
AWSTemplateFormatVersion: 2010-09-09 | |
Description: cloudformation template for minimal k8s cluster | |
Parameters: | |
KeyName: | |
ConstraintDescription: must be the name of an existing EC2 KeyPair. | |
Description: Name of an existing EC2 KeyPair to enable SSH access to the instances | |
Type: AWS::EC2::KeyPair::KeyName | |
Ami: | |
Type: String | |
Default: ami-0440e5026412ff23f |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: cloudformation template for minimal k8s cluster | |
Parameters: | |
SSHLocation: | |
AllowedPattern: (\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/(\d{1,2}) | |
ConstraintDescription: must be a valid IP CIDR range of the form x.x.x.x/x. | |
Default: 0.0.0.0/0 | |
Description: The IP address range that can be used to SSH to the EC2 instances | |
MaxLength: '18' | |
MinLength: '9' |
import http from 'http' | |
import { on } from 'events' | |
const server = http.createServer() | |
const requests = on(server.listen(3000), 'request') | |
for await (let req of requests) { | |
console.log('req', req) | |
} |
#!/bin/bash | |
usage(){ | |
echo "usage: ./crypt.sh [open|close] <encrypted_dev>" | |
} | |
OP=$1 | |
TARGET=$2 | |
# we bail out in case no first argument is passed |
#!/bin/bash | |
# the lambda function corresponds to dir name | |
lambdaName=${1%/} | |
cd $lambdaName | |
#remove the old zip file | |
rm ./index.zip |
#!/bin/bash | |
########################################### | |
# Utility functions | |
########################################### | |
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
function write_sorted_results { | |
echo "$@" >> $script_dir/_typeTrainerResults |
#!/bin/zsh | |
#need to be read from shell | |
# ex: . ./bin/my-agents.zsh | |
# | |
# create an array with all the keyfile in $HOME/.ssh | |
karr=() | |
sshdir="$HOME/.ssh" | |
for f in "$sshdir"/*; do | |
file=$(basename $f) |
var randomWords = require('random-words'); | |
console.log(randomWords()); |
#!/bin/bash | |
# simple script fo initializing an empty browser project in current dir | |
# with -d= prefix you define the creation of a new folder in which the projects starts | |
# otherwise you'll populate the CWD with project folders and files. | |
# all other arguments are used for creation of a folder and a file named "app" with ext of FOLDER_NAME | |
# html file will be placed in the root and named index.html | |
# html argument can be omitted, it will be added by default | |
# typical use: |