All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| # docker build -t ubuntu1604py36 | |
| FROM ubuntu:16.04 | |
| RUN apt-get update && \ | |
| apt-get install -y software-properties-common && \ | |
| add-apt-repository ppa:jonathonf/python-3.6 | |
| RUN apt-get update | |
| RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv | |
| RUN apt-get install -y git |
Today I wanted to make a recording of me running some commands inside a docker-container.
❯ docker-compose run app bash
root@e9bb2af4dc11:/usr/local/go/src/example.com/dev/project#
Needless to say it looked a bit bland with no colors and a long prompt that prevents me from recording a small terminal and show the full commands I'm
| #!/bin/bash | |
| # create directory for bundle in persistent storage | |
| cd /var/lib/jenkins | |
| mkdir ucp-bundle | |
| cd ucp-bundle | |
| set -e | |
| # set variables for getting client bundle |
| # This marathon.json deploys cadvisor to each node and exposes it on port 3002. | |
| cadvisor/marathon.json | |
| { | |
| "id": "cadvisor", | |
| "cpus": 0.1, | |
| "mem": 100, | |
| "disk": 0, | |
| "instances": 8, // equal to number of agent nodes you have | |
| "constraints": [["hostname", "UNIQUE"]], |
| #!/bin/bash | |
| # written and explained by others! | |
| # https://blogs.aws.amazon.com/cli/post/Tx93V7O09I96SO/AWS-re-Invent-2015-and-more | |
| # https://github.com/awslabs/awscli-reinvent2015-examples/blob/master/scripts/setup-dev-ec2-instance | |
| # Note: you need "jp" installed | |
| # to run this command. You can | |
| # brew tap jmespath/jmespath && brew install jp | |
| # to install on a Mac. |
| #!/bin/bash | |
| set -e | |
| # Send a private message to someone on slack | |
| # from the command line. | |
| # Print a usage message and exit. | |
| usage(){ | |
| local name=$(basename "$0") |
| # You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
| # This is how I upload my new Sol Trader builds (http://soltrader.net) | |
| # Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
| S3KEY="my aws key" | |
| S3SECRET="my aws secret" # pass these in | |
| function putS3 | |
| { | |
| path=$1 |
^ = Ctrl key
M = Alt key
^G (F1) Display this help text
^X (F2) Close the current file buffer / Exit from nano
^O (F3) Write the current file to disk
^J (F4) Justify the current paragraph
^R (F5) Insert another file into the current one
| package demo | |
| // The Savable interface should be implemented by any resource associated with | |
| // an Account that can be persisted. | |
| type Savable interface { | |
| Save(Account) (string, error) | |
| } | |
| // An Account ties together all records associated with a single client. | |
| // |