Reference: http://stroupaloop.com/blog/discourse-setup-using-aws/
VPC with a Single Public Subnet Create subnet for each availability zone Create security group for VPC Update inbound rules:
- SSH (22) - anywhere
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style type="text/css"> | |
| /*css to go here*/ | |
| svg {border: 1px solid red; overflow: visible;} | |
| .domain { | |
| fill: none; | |
| stroke: steelblue; | |
| } |
| var walked = []; | |
| var searchHaystack = function(haystack, needle, path, exactEquals) { | |
| //dumb truthiness handling | |
| exactEquals = exactEquals ? true : false; | |
| if(typeof haystack != "object") { | |
| console.warn("non-object haystack at " + path.join(".")); | |
| return [false, null]; |
Reference: http://stroupaloop.com/blog/discourse-setup-using-aws/
VPC with a Single Public Subnet Create subnet for each availability zone Create security group for VPC Update inbound rules:
| # IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User | |
| # TODO: change SOME_SECRET in this template | |
| templates: | |
| # - "templates/sshd.template.yml" | |
| - "templates/web.template.yml" | |
| - "templates/web.ratelimited.template.yml" | |
| expose: | |
| - "80:80" |
| Create origin certificate on CloudFlare | |
| (save as .crt + .key) | |
| Order custom hostname cert on CF | |
| update mup file with this: | |
| "ssl": { | |
| "certificate": "/Users/smokey/Keys/wild-field-test.crt", |
All tools are listed in order of importance (to me).
12 Factor Apps https://12factor.net/
Code of Conduct https://github.com/cncf/foundation/blob/master/code-of-conduct.md
The Programmer's Oath https://blog.cleancoder.com/uncle-bob/2015/11/18/TheProgrammersOath.html
| echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger