Skip to content

Instantly share code, notes, and snippets.

GitHub

  • with 2FA and credentials, need to create an access token.
GitHub > Settings > Developper settings > access token

Use that as password next time a username + pw is asked. Link.

@tlienart
tlienart / aws-useful.md
Last active August 27, 2020 11:21
AWS cli useful commands

SM

  • (check) kill training job (throttled)
aws s3 stop-training-job --training-job-name $TRAINING_JOB_NAME

Can do that in for loop, can also check the status before killing

@tlienart
tlienart / s3-share.md
Last active September 11, 2020 17:49
Share a bucket with another AWS user granting RW access.
  • create a bucket, leave everything to default, say bucket name is $BUCKET
  • say target user has AWS account id $USER
  • select bucket click on Permissions then Bucket Policy
  • write
{
    "Version": "2012-10-17",
    "Id": "Policy$SOMEDESCR",
 "Statement": [