Skip to content

Instantly share code, notes, and snippets.

@cmosetick
cmosetick / .zshrc
Last active February 23, 2021 16:09 — forked from jedp/gist:2564204
basic zshrc
#!/usr/bin/env zsh
# Completions and autoload {{{
# note - you can get a clean config using compinstall and zsh-newuser-install
zstyle ':completion:*' completer _expand _complete _correct
zstyle ':completion:*' completions 4
zstyle ':completion:*' glob 1
zstyle ':completion:*' group-name ''
zstyle ':completion:*' ignore-parents parent pwd
@cmosetick
cmosetick / display-admin-passwd.md
Last active August 16, 2018 05:31
jenkins-x get admin password

kubectl get secrets jenkins -o yaml --namespace <jx-namespace>

example data below

apiVersion: v1
data:
  jenkins-admin-password: Y2hhdHRlcnF1aWNr
  jenkins-admin-user: YWRtaW4=
kind: Secret
@cmosetick
cmosetick / api-gateway-logging.tf
Created July 7, 2018 19:54
terraform aws api gateway disable logging for end point
# enable logging at the global level
resource "aws_api_gateway_method_settings" "init" {
rest_api_id = "${local.api_id}"
stage_name = "${aws_api_gateway_stage.init.stage_name}"
method_path = "*/*"
settings {
metrics_enabled = "${local.cloudwatch_metrics_enabled[terraform.workspace]}"
logging_level = "${local.cloudwatch_logging_level[terraform.workspace]}"
data_trace_enabled = "${local.cloudwatch_request_response_logging_enabled[terraform.workspace]}"
@cmosetick
cmosetick / keybase.md
Created January 26, 2017 23:26
keybase

Keybase proof

I hereby claim:

  • I am cmosetick on github.
  • I am cmosetick (https://keybase.io/cmosetick) on keybase.
  • I have a public key ASA4gVRUyHwiqH8QODPxeZZhDCIZpY9g7UPKzzra_tz5hQo

To claim this, I am signing this object:

chris@ubuntu~/src/Joyent/triton-touchbase$ ./start.sh
Starting example application
project prefix: tb
docker-compose file:
Pulling latest container images
Pulling consul (progrium/consul:latest)...
latest: Pulling from progrium/consul (req 25962d30-df43-11e5-a3e5-0bf9059e64be)
31f630c65071: Already exists
e66fb6787628: Pull complete
docker pull ubuntu:trusty
trusty: Pulling from ubuntu (2e4f38c0-df36-11e5-a3e5-0bf9059e64be)
1997914a7c23: Pulling metadata
8aa2fc7185e2: Downloading [=====> ] 7.701 MB/65.69 MB 7s
13a8e55f2d20: Pulling fs layer
1997914a7c23: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>=====================================>] 8.16 MB/8.16 MB
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
Error pulling image: Internal error (2e4f38c0-df36-11e5-a3e5-0bf9059e64be)
Error applying plan:
5 error(s) occurred:
* docker_container.nginx: Unable to create container: API error (500): first of 1 error: Could not get container for consul (920aa9b0-ded9-11e5-92c1-c102553b91fc)
* docker_container.touchbase: Unable to create container: API error (500): first of 1 error: Could not get container for consul (9217a200-ded9-11e5-92c1-c102553b91fc)
* docker_container.cloudflare: Unable to create container: API error (500): first of 1 error: Could not get container for consul (92172cd0-ded9-11e5-92c1-c102553b91fc)
* docker_container.couchbase.0: Unable to create container: API error (500): first of 1 error: Could not get container for consul (920811a0-ded9-11e5-92c1-c102553b91fc)
* docker_container.couchbase.1: Unable to create container: API error (500): first of 1 error: Could not get container for consul (920b45f0-ded9-11e5-92c1-c102553b91fc)
consul container
docker logs fe4b358e059b
==> WARNING: Bootstrap mode enabled! Do not enable unless necessary
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting raft data migration...
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
Node name: 'fe4b358e059b'
@cmosetick
cmosetick / -
Created February 28, 2016 21:11
touchbase
./start.sh -f docker-compose.yml
Starting Couchbase
Creating tb_consul_1
Creating tb_couchbase_1
Initializing cluster..
#
@cmosetick
cmosetick / -
Last active February 23, 2016 08:58
# setting up triton on a new system where I rsynced my .triton folder from exisiting system.
# chris.mosetick profile did not exisit on original system
triton profile set-current chris.mosetick
events.js:154
throw er; // Unhandled 'error' event
^
KeyNotFoundError: SSH key with fingerprint "ac:1f:83:8a:47:cc:1f:12:aa:fb:6b:16:76:b2:21:7c" could not be located in ssh-agent (3 keys) or dir /Users/chris/.ssh
at Function.KeyNotFoundError.join (/usr/local/lib/node_modules/triton/node_modules/smartdc-auth/lib/index.js:50:13)