This is a list of controls that can be placed into an IAM policy document. All content comes from AWS documentation.
Something wrong? Try looking here.
Table of Contents generated with DocToc
from datetime import datetime | |
def datetime_to_cron(dt): | |
# FYI: not all cron implementations accept the final parameter (year) | |
return f"cron({dt.minute} {dt.hour} {dt.day} {dt.month} ? {dt.year})" |
This guide is a first draft (that will end up in the official docs) on writing resilient code for production with the Couchbase Java SDK. At the end, the reader will be able to write code that withstands bugs, latency issues or anything else that can make their application fail.
Note that lots of concepts can be applied for both synchronous and asynchronous access. When necessary, both patterns are discussed separately. Also, the focus is on database interaction, but if you are using RxJava as part of your stack you can apply most of the principles there as well (and should!).
When working with Observables, it is important to understand the difference between cold and hot. Cold Observables will start to emit events once a Observer subscribes, and will do it "fresh" for each Observer. Hot Observables instead are starting to emit data as soon as it becomes available, and will return the same (or parts of the same)
# System wide environment and startup programs, for login setup | |
# Functions and aliases go in /etc/bashrc | |
pathmunge () { | |
if [ -e $1 ]; then | |
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then | |
if [ "$2" = "after" ] ; then | |
PATH=$PATH:$1 | |
else | |
PATH=$1:$PATH | |
fi |
set -eu | |
yum -y update | |
yum -y install git | |
yum -y groupinstall "Development Tools" | |
yum -y install python-devel | |
yum -y install ncurses-devel | |
yum -y install dialog | |
yum -y install openssl-devel | |
yum -y install libjpeg-devel | |
yum -y install freetype-devel |
#-*- coding:utf-8 -*- | |
# Author: @chuangbo | |
# For: @likexian | |
import socket | |
import struct | |
class CIDR: | |
'''Check if ip in cidr |