<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
#!/bin/bash -e | |
# These need to be set. | |
#export EC2_HOME="/path/to/ec2-api-tools" | |
#export AWS_ACCESS_KEY='XXXXXXXXXXXXXXXXXXXX' | |
#export AWS_SECRET_KEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
#export PATH="$PATH:${EC2_HOME}/bin" | |
ami_id='ami-123abc12' | |
availability_zone='eu-west-1a' | |
keypair="johndoe@example.com" |
--- | |
language: node_js | |
node_js: | |
- '0.10' | |
branches: | |
only: | |
- master | |
before_script: .travis/before_script.sh | |
script: echo -e " >>> Do something... \"grunt\" for example\n" | |
after_success: .travis/after_success.sh |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by funcional category:
git status
list which (unstaged) files have changed
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/mashenjun/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
# replace the “user@hostname” info |
GOPATH=$(shell echo $$GOPATH) | |
GOBIN=$(shell pwd)/bin | |
GOFILES=$(wildcard *.go) | |
GONAME=$(shell basename "$(PWD)") | |
PID=/tmp/go-$(GONAME).pid | |
CONFIG_PATH = ./configs/conf.toml | |
build: | |
@echo "Building $(GOFILES) to ./bin" | |
@GOPATH=$(GOPATH) GOBIN=$(GOBIN) go build -race -o bin/$(GONAME) $(GOFILES) |
#!/bin/bash | |
usage () { | |
echo "Don't run this script directly, instead type 'source goactivate'. | |
Script to set PATH, GOPATH and shell prompt for your project. Drop this script | |
in your PATH. To activate environment, go in the root directory of the project | |
and type: |
name: Build Artifacts | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
{"$defs":{"extraVolumeTags":{"patternProperties":{"^.*$":{"maxLength":256,"minLength":0,"pattern":"^[a-zA-Z0-9 _.:/=+-@]*$","type":"string"}},"propertyNames":{"maxLength":128,"minLength":1,"pattern":"^[a-zA-Z0-9 _.:/=+-@]*$","type":"string"},"type":"object"}},"$schema":"https://json-schema.org/draft/2019-09/schema","additionalProperties":false,"description":"Configurable parameters of the AWS EBS CSI Driver","properties":{"a1CompatibilityDaemonSet":{"default":false,"description":"Enable compatibility for the A1 instance family via use of an AL2-based image in a separate DaemonSet","type":"boolean"},"additionalDaemonSets":{"default":{},"description":"Additional DaemonSets of the node pod","patternProperties":{"^.*$":{"$ref":"#/properties/node","type":"object"}},"type":"object"},"controller":{"additionalProperties":false,"properties":{"additionalArgs":{"default":[],"description":"Additional arguments passed to the controller pod","items":{"type":"string"},"type":"array"},"affinity":{"default":{"affinity":{"node |