strace -e trace=file -fp PID (file) or strace -e trace=desc -fp PID (file descriptors)
Common calls:
accessclose– close file handlefchmod– change file permissionsfchown– change file ownership
| from __future__ import annotations | |
| from typing import List, Optional | |
| from aws_lambda_powertools.utilities.parser.models import EventBridgeModel | |
| from aws_lambda_powertools.utilities.parser.envelopes import ( | |
| EventBridgeEnvelope, # only if you want to discard EventBridge metadata | |
| ) | |
| from aws_lambda_powertools.utilities.parser.parser import event_parser | |
| from pydantic import BaseModel |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: > | |
| SSM Automation Document run a custom SSM Command Document | |
| against a fleet of target instances. | |
| Parameters: | |
| AutomationDocumentName: | |
| Type: String | |
| Description: Name of created SSM Automation Document | |
| Default: MyAutomation |
| AWSTemplateFormatVersion: 2010-09-09 | |
| Parameters: | |
| LoggingBucket: | |
| Description: The name of the S3 bucket that contains your AWS logs | |
| Type: String | |
| Resources: | |
| GlueDatabase: | |
| Type: AWS::Glue::Database |
| #!/bin/bash | |
| # This script cleans all cache for Microsoft Teams on Linux | |
| # Tested on Ubuntu-like, Debian by @necrifede, Arch Linux by @lucas-dclrcq and Manjaro with flatpak by @danie1k. Feel free to test/use in other distributions. | |
| # Tested Teams via snap package. | |
| # Tested Teams via flatpak package. | |
| # | |
| # How to use in terminal: | |
| # ./clear_cache_MS_Teams.sh ( deb-stable | deb-insider | snap | flatpak ) | |
| # or |
| # I was looking for a rate limiting library to call rate limited apis as closely | |
| # as possible to their enforced limits. I looked at the first few python libraries | |
| # that I found, and when I glanced at the source, they were all clearly broken. | |
| # Curious how this could be, I took all the top google and pip search results for: python rate limiting | |
| # and tried to get them to do the wrong thing and fail to rate limit in situations that could come up | |
| # in normal use (though in some cases very specific use) | |
| # https://github.com/tomasbasham/ratelimit | |
| # Where broken: |
| AbortDocumentVersionUpload | |
| AbortEnvironmentUpdate | |
| AbortMultipartUpload | |
| AbortVaultLock | |
| AcceptAccountMapping | |
| AcceptCertificateTransfer | |
| AcceptDelegate | |
| AcceptDirectConnectGatewayAssociationProposal | |
| AcceptFxPaymentCurrencyTermsAndConditions | |
| AcceptHandshake |
| --silent true |
| #!/usr/bin/env python | |
| import getpass | |
| import json | |
| import requests | |
| import sys | |
| import urllib | |
| import boto3 |
| http://forked.yannick.io/ |