Skip to content

Instantly share code, notes, and snippets.

HOWTO: Installing Vault On AWS Linux

This is quick howto for installing vault on AWS Linux, mostly to remind myself. At the end of this tutorial, you'll have a working vault server, using s3 for the backend, self signed certificates for tls, and supervisord to ensure that the vault server is always running, and starts on reboot.

Setting up S3

First things first, let's set up an s3 bucket to use as the storage backend for our s3 instance.

  1. From the AWS Mangement Console, go to the S3 console.

  2. Click on the Create Bucket button

---
name: cf-diego
director_uuid: REPLACE-WITH-DIRECTOR-UUID
releases:
- {name: cf, version: latest}
- {name: diego, version: latest}
- {name: garden-runc, version: latest}
- {name: cflinuxfs2-rootfs, version: latest}
- {name: routing, version: latest}
@alwaysastudent
alwaysastudent / about.md
Created April 20, 2020 18:13 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
{"type": "server", "timestamp": "2020-05-06T21:34:01,873Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "elasticsearch-server", "node.name": "elasticsearch-server-es-default-0", "message": "using [1] data paths, mounts [[/usr/share/elasticsearch/data (10.96.117.72:6789:/volumes/data/elk)]], net usable_space [174.7gb], net total_space [174.7gb], types [ceph]" }
{"type": "server", "timestamp": "2020-05-06T21:34:01,877Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "elasticsearch-server", "node.name": "elasticsearch-server-es-default-0", "message": "heap size [1.9gb], compressed ordinary object pointers [true]" }
{"type": "server", "timestamp": "2020-05-06T21:34:01,979Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch-server", "node.name": "elasticsearch-server-es-default-0", "message": "node nam
@alwaysastudent
alwaysastudent / git.txt
Created September 18, 2020 18:17 — forked from ospatil/git.txt
Important git command for branch and tag management
1. get list of remote tags
git ls-remote --tags origin
2. get list of local tags
git tag
3. remove local tag
git tag -d <tag name>
4. delete remote tag

top (the UNIX process inspector) cheat sheet

This is a list of the most helpful keyboard commands I use within top.

The basics

h shows help on interactive commands. Also see the top manual page

q to quit the program.

Here are several different ways to test a TCP port without telnet.

$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C

$ cat &lt; /dev/tcp/127.0.0.1/23
@alwaysastudent
alwaysastudent / vim-cheatsheet.md
Created September 28, 2020 03:05 — forked from azadkuh/vim-cheatsheet.md
vim / vimdiff cheatsheet - essential commands

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...

@alwaysastudent
alwaysastudent / vimdiff.md
Created September 28, 2020 03:05 — forked from mattratleph/vimdiff.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)