Skip to content

Instantly share code, notes, and snippets.

View spg's full-sized avatar

Simon-Pierre Gingras spg

View GitHub Profile
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session
from boto3 import Session
def assumed_session(role_arn, session_name, session=None):
"""STS Role assume a boto3.Session
With automatic credential renewal.
@christiangoudreau
christiangoudreau / gist:1144203
Created August 13, 2011 20:01
How to build an url with parameters in Gwt-Platform
@Inject
public MessagePresenter(final EventBus eventBus, final MyView view, final PlaceManager manager) {
super(eventBus, view);
PlaceRequest request = new PlaceRequest("album").with("id", "12351232");
InlineHyperlink hyperlink = new InlineHyperlink("album", manager.buildHistoryToken(request));
}