Skip to content

Instantly share code, notes, and snippets.

View rjdkolb's full-sized avatar

Richard Kolb rjdkolb

View GitHub Profile
@selcukcihan
selcukcihan / aws-certification-cheat-sheet.md
Created June 10, 2020 11:34
Cheat sheet for aws certification exams.

S3

  • By default all new buckets are private
  • You can have bucket policies and ACLs (ACL can go down to individual objects)
  • Read after write consistency for puts of new objects
  • Eventual consistency for overwrite PUTs and DELETEs
  • Storage classes
    • S3 standard (99.99 availability, 11 9s durability) can sustain loss of 2 facilities concurrently
    • S3-IA lower fee than S3 but you are charged a retrieval fee (99.9% availability)
    • S3 One Zone - IA lower cost option if you don't need multi AZ data resilience (99.5% availability)
  • S3 Intelligent Tiering
@dinowang
dinowang / Main.java
Last active April 2, 2021 22:05
Java program upload file to Azure Blob Storage with progress indicator
package com.cloudriches.sample;
import com.microsoft.azure.storage.CloudStorageAccount;
import com.microsoft.azure.storage.blob.CloudBlobClient;
import com.microsoft.azure.storage.blob.CloudBlobContainer;
import com.microsoft.azure.storage.blob.CloudBlockBlob;
import java.io.File;
import java.io.FileInputStream;
@appeltel
appeltel / pubsub.py
Last active May 5, 2024 09:40
asyncio pubsub example
import asyncio
import random
class Hub():
def __init__(self):
self.subscriptions = set()
def publish(self, message):
@billdozr
billdozr / ListOutOfLambdas.java
Last active December 16, 2015 04:39
Nice post titled "List Out of Lambda" [1] written by Steve Losh, implemented here in Java 8. Building blocks of lists: 1) Functions (lambdas) 2) `true` and `false` for empty lists .... [1] http://stevelosh.com/blog/2013/03/list-out-of-lambda/
package java8.func.abstraction;
/**
* Nice post titled "List Out of Lambda" [1] written by Steve Losh,
* implemented here in Java 8.
*
* Building blocks of lists:
* * Functions (lambdas)
* * `true` and `false` for empty lists
*
* [1] http://stevelosh.com/blog/2013/03/list-out-of-lambda/