Skip to content

Instantly share code, notes, and snippets.

@SergeyMell
SergeyMell / test.ts
Created August 31, 2017 08:49
Angular 4 karma test configuration
import 'babel-polyfill/dist/polyfill.js';
import 'zone.js/dist/zone.js';
import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy.js';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/jasmine-patch';
import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test';
import { getTestBed } from '@angular/core/testing';
@SergeyMell
SergeyMell / s3_sync_service.rb
Last active January 18, 2017 19:35
Inspired by https://gist.github.com/bantic/4080793. A ruby class to copy files from one AWS S3 bucket to another one supporting aws-sdk v.2
require 'aws-sdk'
class S3SyncService
attr_reader :from_bucket, :to_bucket, :logger
attr_accessor :debug
# from_credentials and to_credentials are both hashes with these keys:
# * :access_key_id
# * :secret_access_key