I hereby claim:
- I am bortels on github.
- I am tbortels (https://keybase.io/tbortels) on keybase.
- I have a public key ASAUnHiD-G0g6ue8r_9avYDaMu6idftEYxq08_XH5gWl-wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Create fine-grained session permissions using AWS Identity and Access Management (IAM) managed policies - | |
I've read this three times and I still don't understand what it does. Help? | |
Sure, I'd be happy to help you with that. | |
You use AWS STS (Simple Token Service) to assume a role and it's associated policies. So - you might call STS to assume | |
a role with "AdministratorAccess" policy in another account. | |
When you do this, you have an option to also add a "session role" on the fly - think of it as an addendum to the role. | |
Example, you might assume that "AdministratorAccess" role, but add in "No IAM access, please". This is handy because it |
#!/usr/bin/env python3 | |
"""Update pod inventory pages""" | |
import requests | |
from requests.auth import HTTPBasicAuth | |
import json | |
from pprint import pprint | |
import datetime | |
import gzip |
#!/usr/bin/env python3 | |
# export the AWS environment for a given profile | |
import boto3 | |
import argparse | |
parser = argparse.ArgumentParser(prog="exportaws", | |
description="Extract AWS credentials for a profile as env variables.") | |
parser.add_argument("profile", help="profile name in ~/.aws/config.") |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# Save all AD objects in a big json blob you can mess around with | |
require 'json' | |
require 'Open3' | |
require 'pry' | |
# replace below with correct AD server, baseDN, and bind account DN and password | |
cmd = "ldapsearch -E pr=1000/noprompt -xLLL " + |
// Open chrome://cache/ and paste the following script in the console. Feel free to edit the filter variable | |
var filter = /cask\.scotch\.io(.)*\.(jpg|jpeg|png|gif)/g; | |
/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ | |
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);retu |
<html> | |
<head> | |
<title>My first Three.js app</title> | |
<style> | |
body { | |
margin: 0; | |
} | |
canvas { | |
width: 100%; | |
height: 100% |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<html lang="en"> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<div id="main"> | |
</div> | |
</body> |
input { | |
stdin { | |
type => "stdin-type" | |
} | |
file { | |
type => "logstash" | |
path => [ "/var/log/logstash/logstash.log" ] | |
start_position => "beginning" |