Skip to content

Instantly share code, notes, and snippets.

View JamieCressey's full-sized avatar

Jamie Cressey JamieCressey

  • GameSparks
  • United Kingdom
View GitHub Profile
@numberoverzero
numberoverzero / boto3_retry.py
Created July 8, 2015 21:48
Exponential backoff retries
import botocore
import boto3
import functools
import time
DEFAULT_BACKOFF_COEFF = 50.0
DEFAULT_MAX_ATTEMPTS = 4
MAX_BATCH_SIZE = 25
RETRYABLE_ERRORS = [
@bummzack
bummzack / restful_simpleauth.md
Last active November 20, 2016 19:25
Authentication using Ember simple auth and SilverStripe RESTfulAPI

Authentication using Ember simple auth and SilverStripe RESTful API

The goal of this GIST is to give a short summary of what is needed to perform authentication from an ember.js application using simple-auth and the SilverStripe RESTful API module

Prerequisites

Here's a list of the software that was used:

Frontend

@albsen
albsen / watch_log.py
Created October 17, 2012 06:04
python log file watcher
#!/usr/bin/env python
"""
Real time log files watcher supporting log rotation.
Author: Giampaolo Rodola' <g.rodola [AT] gmail [DOT] com>
License: MIT
"""
import os