Skip to content

Instantly share code, notes, and snippets.

View atomaka's full-sized avatar

Andrew Tomaka atomaka

View GitHub Profile
# frozen_string_literal: true
require 'aws_kms_client'
# Client that interfaces with the AWS KMS API
class FakeKmsClient < AwsKmsClient
class << self
def iv
'o' * 12
end
# frozen_string_literal: true
require 'aws_kms_client'
# Client that interfaces with the AWS KMS API
class FakeKmsClient < AwsKmsClient
class << self
def iv
'o' * 12
end

Keybase proof

I hereby claim:

  • I am atomaka on github.
  • I am atomaka (https://keybase.io/atomaka) on keybase.
  • I have a public key ASD7sXOavBeiIgYjZIa-hVjZv6SREetEB1b0Eaue5wCd6Qo

To claim this, I am signing this object:

@atomaka
atomaka / .gitlab-ci.yml
Created April 23, 2017 21:47
Example .gitlab-ci.yml
stages:
- prepare
- analyze
- test
- build
- ship
variables:
DATABASE_HOST: "postgres"
build-test:
stage: prepare
@atomaka
atomaka / commit.txt
Created April 16, 2017 17:34
Details in commit message
Fix TouchBar when it (frequently) breaks
From http://osxdaily.com/2017/01/11/manually-refresh-touch-bar-mac/ this
will reset the control portion of the touch bar which has been
frequently breaking in New and Interesting Ways™.
|-127-> rm -f Gemfile.lock && rbenv local 2.0.0-p598 && RAILS_VERSION="~> 4.2.0" bundle install
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency activerecord-jdbcsqlite3-adapter (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency mime-types (< 2.99, ~> 2.6) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/.
Resolving dependencies...
Rubygems 2.0.14 is not t
@atomaka
atomaka / docker-compose.yml
Created March 1, 2017 03:42
docker-compose with build args
version: '2'
services:
app:
build:
context: .
args:
- BUNDLE_WITHOUT=
- RAILS_ENV=development
links:
- database
@atomaka
atomaka / Dockerfile
Created March 1, 2017 03:33
Shared Dockerfile
FROM ruby:2.3-alpine
ARG BUNDLE_WITHOUT=test:development
ENV BUNDLE_WITHOUT ${BUNDLE_WITHOUT}
ADD Gemfile* /app/
RUN apk add --no-cache --virtual .build-deps build-base \
&& apk add --no-cache postgresql-dev tzdata \
&& cd /app; bundle install \
@atomaka
atomaka / Dockerfile
Last active March 1, 2017 03:45
Simple development Dockerfile
FROM ruby:2.3-alpine
RUN apk add --no-cache build-base postgresql-dev tzdata
ADD Gemfile* /app/
RUN cd /app; bundle install
ADD . /app
RUN chown -R nobody:nogroup /app
@atomaka
atomaka / Dockerfile
Last active March 1, 2017 03:19
Simple production Dockerfile
FROM ruby:2.3-alpine
ADD Gemfile* /app/
RUN apk add --no-cache --virtual .build-deps build-base \
&& apk add --no-cache postgresql-dev tzdata \
&& cd /app; bundle install --without test production \
&& apk del .build-deps
ADD . /app