Skip to content

Instantly share code, notes, and snippets.

View cyc115's full-sized avatar

Mike Chen cyc115

  • Chicago, IL
  • 16:20 (UTC -12:00)
View GitHub Profile
@cyc115
cyc115 / notary-deployment
Last active December 27, 2017 21:15
Notary guideline
[TOC]
> additional important docs: [config references](https://github.com/docker/notary/tree/master/docs/reference)
## 0) Setting up DB(s)
1. Simply boot up two database instances (`i1` for server and `i2` for signer).
2. create a database named `notaryserver` on `i1` and create `notarysigner` on `i2`.
3. run SQL commands from [here](https://github.com/docker/notary/tree/master/migrations)
4. later configure the database urls in the `server-config.json` and `signer-config.json`
@cyc115
cyc115 / gist:d5d886f19f3d0b90410ce357ad6f559d
Last active November 11, 2017 22:29
debugging AWS bastion connectivity issue
# debugging AWS bastion connectivity issue
Sat. Nov 11 2017
Today I was setting up a public subnet bastion server to access instances on my private subnet. I was able to ssh on to the bastion server but was unable to establish ssh connection from the bastion instance to the private instance.
Any suggestions? And what could I do to improve or facilitate debugging similar problems in the future?
Here's my setup in a concise form:
@cyc115
cyc115 / pluralsight-course-dl.rb
Created March 1, 2020 19:37
Download a list of pluralsight courses
#! ruby
require 'optparse'
require 'fileutils'
# Usage: pluralsight-course-dl.rb --input file.txt --output ~/Videos -u username -p password
# file.txt contains a list of urls that youtube-dl can donwload.
Options = {}