4343 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 43 / 218
Newer►
  • Note: s3 bucket size by api

    aws s3api list-objects --bucket BUCKET_NAME --output json --query "[sum(Contents[].Size), length(Contents[])]"

    Retourne la taille en bytes et le nombre d'objets

    Avec un ficheir qui contient le nom des bucket :

    for BUCKET_NAME in $(cat s3list); do echo -n "$BUCKET_NAME " ; region=$(aws s3api get-bucket-location --bucket $BUCKET_NAME|jq '.LocationConstraint' -r); aws s3api list-objects --region $region --bucket $BUCKET_NAME --output json --query "sum(Contents[].Size)"; done

    13 juin 2017 à 11:55:28 UTC+2 * - permalink - archive.org - https://links.infomee.fr/?pbKktw
    s3 size
  • network - Why does mounting an nfs share from linux require the use of a privileged port? - Ask Different

    Il faut utiliser l'option noresvport de mount pour que mount n'utilise pas des ports sources inférieur à 1024

    Why do you have to? Tradition, mostly. Once upon a time, restricting NFS to privileged ports (<1023) was considered a security measure. Back when people were using mainframe computers, this made sure that the NFS software on the client side was part of the OS/approved by the administrator, since a program can only use a privileged port if it's run by the root user. Today, this makes no sense because anyone can own a computer and have root access, so this doesn't mean anything in terms of security.

    By default, many NFS servers don't allow non-privileged source ports. Some NFS clients (such as Ubuntu's), default to using a privileged source port unless otherwise specified, which is why your Linux client works without issue. Clearly, the OS X client doesn't do this. I don't know if that was an Apple design choice or something inherited from BSD. I know that Solaris also defaults to a non-privileged port.

    The two ways of avoiding this problem are, telling the OS X client to use a privileged port, as you discovered, or configuring your NFS server to allow non-privileged ports (look it up in your server's documentation).

    How do you get OS X to use a privileged port using a GUI? As far as I know, you can't on versions > 10.6. One used to be able to mount NFS shares in Disk Utility and type in extra options, but that was removed. (details) It was never a simple button or anything. NFS is hardly something most of the "non-techy" crowd need, so I guess it wasn't a priority and there are reasons routinely using privileged ports isn't a great idea.

    I haven't tried it, but http://www.bresink.com/osx/NFSManager.html seems to allow configuration of OS X's NFS features without the command line.

    12 juin 2017 à 16:38:44 UTC+2 * - permalink - archive.org - https://apple.stackexchange.com/questions/142697/why-does-mounting-an-nfs-share-from-linux-require-the-use-of-a-privileged-port
    mount nfs
  • Example 2: Bucket Owner Granting Cross-Account Bucket Permissions - Amazon Simple Storage Service
    Donc pour autoriser un compte externe, on va créer une bucket policy sur notre bucket pour autoriser "arn:aws:iam::account_id:root" ou plus précis sur l'user arn:aws:iam::account_id:user/foobar ou le role

    C'est le compte en face qui va décider qui a le droit de venir sur notre bucket avec des user policy standard (quand on est dans le contexte du compte en face, c'est comme si le bucket nous appartenait)

    Exemple bucket policy à mettre sur le BUCKET de l'account A pour autoriser l'account xxx en RW


    {
        "Version": "2012-10-17",
        "Statement": [





            {
                "Sid": "Allow account_xx on aws account xxx RW",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::OTHER_ACCOUNT_ID:root"
                },
                "Action": ["s3:GetBucketLocation", "s3:ListBucket"],
                "Resource": "arn:aws:s3:::BUCKET"
            },
            {
                "Sid": "Allow account_xx on aws account xxx RW",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::OTHER_ACCOUNT_ID:root"
                },
                "Action": [
                    "s3:*"
                ],
                "Resource": "arn:aws:s3:::BUCKET/*"
            }




        ]
    }

    Pour Read only, remplacer action du deuxieme bloc par "Action": ["s3:Get*","s3:List*"],
    12 juin 2017 à 08:48:42 UTC+2 * - permalink - archive.org - http://docs.aws.amazon.com/AmazonS3/latest/dev/example-walkthroughs-managing-access-example2.html
    aws cross iam policy s3
  • thumbnail
    Copy between S3 buckets w/ different accounts · GitHub
    8 juin 2017 à 17:29:42 UTC+2 - permalink - archive.org - https://gist.github.com/ushu/7217693
    aws s3
  • The Challenges of EFS

    one more

    8 juin 2017 à 16:54:01 UTC+2 - permalink - archive.org - https://convox.com/blog/challenges-of-efs/
    aws efs
  • wordpress - Degrading Performance of AWS EFS - Stack Overflow

    why EFS sucks

    8 juin 2017 à 16:44:50 UTC+2 - permalink - archive.org - https://stackoverflow.com/questions/41673284/degrading-performance-of-aws-efs
    aws efs
  • Symfony 4: Best Practices – Fabien Potencier – Medium
    8 juin 2017 à 14:54:17 UTC+2 - permalink - archive.org - https://medium.com/@fabpot/symfony-4-best-practices-b4bbd6a9c994
    futur parameters symfony
  • Note: find world readable files

    find . -perm -o+r

    And the opposite :

    find . ! -perm -o+r

    8 juin 2017 à 11:36:50 UTC+2 - permalink - archive.org - https://links.infomee.fr/?fmn6vw
    find
  • thumbnail
    sickill/vim-monokai: Monokai color scheme for Vim converted from Textmate theme
    7 juin 2017 à 17:35:56 UTC+2 - permalink - archive.org - https://github.com/sickill/vim-monokai
    color vim
  • Dracula — A dark theme for Vim and 40+ apps
    7 juin 2017 à 17:35:22 UTC+2 - permalink - archive.org - https://draculatheme.com/vim/
    color vim
  • Buttercup

    via korben

    6 juin 2017 à 16:44:48 UTC+2 - permalink - archive.org - https://buttercup.pw/
    keepass manager password
  • thumbnail
    digital_video_introduction/README.md at master · leandromoreira/digital_video_introduction · GitHub
    4 juin 2017 à 12:14:28 UTC+2 - permalink - archive.org - https://github.com/leandromoreira/digital_video_introduction/blob/master/README.md
    video
  • Blocks, Proc et Lambda en Ruby
    3 juin 2017 à 15:56:40 UTC+2 - permalink - archive.org - https://www.synbioz.com/blog/block_proc_lambda_ruby
    block closures ruby
  • thumbnail
    Everything you should know about Ruby Splats Alex Castaño

    Les splat en Ruby, l'équivalent des kwargs en python

    3 juin 2017 à 15:42:18 UTC+2 - permalink - archive.org - https://alexcastano.com/everything-about-ruby-splats/
    kwargs ruby splat
  • thumbnail
    Guide: Performing CRUD operations on list using Vue.js - Vue.js Feed
    3 juin 2017 à 15:28:17 UTC+2 - permalink - archive.org - https://vuejsfeed.com/blog/guide-performing-crud-operations-on-list-using-vue-js
    crud js vue
  • MikroTik Routers and Wireless

    Il parait que c'est du bon matos pas très cher par rapport à la concurrence. Je garde ça de côté.

    Via Philippe

    1 juin 2017 à 11:28:41 UTC+2 - permalink - archive.org - https://mikrotik.com/
    hardware router wifi
  • thumbnail
    tsenart/vegeta: HTTP load testing tool and library. It's over 9000!

    via jesaisplusqui

    31 mai 2017 à 16:43:34 UTC+2 - permalink - archive.org - https://github.com/tsenart/vegeta
    bench http load
  • Amazon S3 :: How to set Public read permission to Selected folder

    all item in one folder public

    31 mai 2017 à 16:31:15 UTC+2 - permalink - archive.org - http://support.bucketexplorer.com/topic1995.html
    s3
  • Note: find/sed equivalent in python

    for root, dirs, files in os.walk("folder"):
    for file in files:
    if file.endswith(".yml"):
    print(os.path.join(root, file))
    with open(os.path.join(root, file), "r") as sources:
    lines = sources.readlines()
    with open(os.path.join(root, file), "w") as sources:
    for line in lines:
    sources.write(re.sub(r'pattern', 'foo', line))

    29 mai 2017 à 14:15:06 UTC+2 - permalink - archive.org - https://links.infomee.fr/?Y803hg
    find python sed
  • Utiliser la balise meta viewport pour contrôler la mise en page sur les navigateurs mobiles - Mozilla | MDN

    <meta name="viewport" content="width=device-width, user-scalable=no">

    29 mai 2017 à 11:49:53 UTC+2 - permalink - archive.org - https://developer.mozilla.org/fr/docs/Mozilla/Mobile/Balise_meta_viewport
    http meta mobile web
Links per page: 20 50 100
◄Older
page 43 / 218
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation