Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.
# This is just a cheat sheet: | |
# On production | |
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
# On local | |
scp -C production:~/database.sql.gz | |
dropdb database && createdb database | |
gunzip < database.sql.gz | psql database |
FROM ruby:2.3.1 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
# Configuring main directory | |
RUN mkdir -p /app_name | |
WORKDIR /app_name | |
# Setting env up | |
ENV RAILS_ENV='production' | |
ENV RAKE_ENV='production' |
.git | |
.gitignore | |
/doc | |
.yardoc | |
coverage | |
jsdoc | |
/tmp | |
/log | |
Dockerfile | |
Dockerfile.prod |
ALTER TABLE logs.trades CHANGE recentprice price int;
#!/bin/bash | |
# Description: Recursively moves and replaces conflicted Dropbox files keeping the newer one of each pair | |
# Usage: <script-name> - Shows what files would be moved and replaced but does not do any replacements | |
<script-name> replace - Performs file replacements | |
# Based on: http://mechanicalscribe.com/notes/fix-dropbox-conflicts-automatically/ | |
# Thx, http://stackoverflow.com/questions/20723868/batch-rename-dropbox-conflict-files |