Note: this assumes Colima v0.4.0 or newer.
SSH into the VM colima ssh
Edit docker init script sudo vi /etc/init.d/docker
.
Note: this assumes Colima v0.4.0 or newer.
SSH into the VM colima ssh
Edit docker init script sudo vi /etc/init.d/docker
.
aws ssm start-session --target $INSTANCE_ID \
--document-name AWS-StartPortForwardingSession \
--parameters '{"portNumber":["80"],"localPortNumber":["9999"]}'
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: hello-world | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: hello-world |
#!/bin/bash | |
# USAGE: ./create-aws-console-user.sh $GROUPNAME $USERNAME $PASSWORD | |
# http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_cliwpsapi | |
# Create administrator group | |
aws iam create-group --group-name $1 |
lfs hsm_archive /mnt/lustre/<path>/<filename> Copies the file to the archive. | |
lfs hsm_release /mnt/lustre/<path>/<filename> Removes the file from the Lustre file system; does not affect the archived file. | |
lfs hsm_restore /mnt/lustre/<path>/<filename> Restores the archived file back to the Lustre file system. This is an asynchronous, non-blocking restore. A client’s request to access an archived file will also restore the file back the Lustre file system if is has been released; this will be a synchronous and blocking restore. | |
lfs hsm_cancel /mnt/lustre/<path>/<filename> Cancels an lfs_hsm command that is underway. |
#!/usr/bin/env python | |
from ipaddress import ip_network, ip_address | |
import sys | |
cidrs = [] | |
with open(sys.argv[1], "r") as f: | |
for line in f: |
#! /usr/bin/python | |
################################################################################ | |
## ebs-report - Creates a CSV report for EBS volumes, including some snapshot information | |
## Written by N2W Software | |
## Date: July 2014 | |
## License: You can use/modify/circulate or do whatever you want. | |
## Just note that this script is given "As Is" without any warranty | |
## | |
## Usage: see README file | |
## |
const http = require('https'); | |
exports.handler = async (event, context) => { | |
return new Promise((resolve, reject) => { | |
const options = { | |
host: 'httpbin.org', | |
path: '/uuid', | |
port: 443, | |
method: 'GET' | |
}; | |
const req = http.request(options, (res) => { |