Download cloudtrail logs from S3 bucket to current working directory
aws s3 sync s3://<s3_bucket> .
Extract compressed cloudtrail log files
find . -type f -exec gunzip {} \;
Download cloudtrail logs from S3 bucket to current working directory
aws s3 sync s3://<s3_bucket> .
Extract compressed cloudtrail log files
find . -type f -exec gunzip {} \;
ThinkPad X1 Carbon Gen 13 is new laptop with Lunar Lake based CPU. Currently running latest Ubuntu 24.10 with Linux kernel 6.11.
# Requires boto3 1.35 or newer | |
# Run this on Organization management account or delegated Administrator account | |
import boto3 | |
import botocore | |
import os | |
os.environ["AWS_STS_REGIONAL_ENDPOINTS"] = "regional" | |
client_organization = boto3.client('organizations') | |
client_sts = boto3.client('sts') |
#!/bin/bash | |
set -e | |
STATE_LIST=$(terraform state list) | |
IFS=$'\n' | |
for state in $STATE_LIST; | |
do | |
# Skip if use data import | |
if [[ "$state" == *"data"* ]]; then |
Some example rules for CloudFlare firewall: https://developers.cloudflare.com/firewall/cf-firewall-rules/fields-and-expressions
(http.request.uri.path contains "/wp-content/" and http.request.uri.path contains ".php") or (http.request.uri.path contains "/wp-includes/" and http.request.uri.path contains ".php") or (http.request.uri.path eq "/xmlrpc.php") or (http.request.uri.path contains "wp-config")
#!/bin/bash | |
# Run this daily to cleanup unused images and networks | |
# chmod +x /etc/cron.daily/docker-clean.sh | |
# Create new log file | |
touch /var/log/docker-clean.log | |
# Delete all unused images and volumes | |
/usr/bin/docker system prune --volumes -a -f >> /var/log/docker-clean.log |
This is tested Samsung Qualcomm phones S20/S21/Note20 Hong Kong and Taiwan versions.
Prerequisities: You need to download and install Google Phone app from Google Play market (Phone by Google-Caller ID & Spam Protection)
Dialer app by default: After the first launch, the application will ask you to make it the default dialer, confirm by selecting its blue icon from the list of available ones. You can return the native dialer after service menu manipulations (Settings - Apps - 3 dots in the upper right corner - Default apps - Phone)
Activation of the service menu:
Go to the Google Phone and dial *#*#27663368378#*#*
for Android 10 or *#*#276633683782#*#*
for Android 11. After pressing the last asterisk, the service menu will appear.
Data is taken from OnePlus 8 11.0.5.5 Carrier Policy files. All OnePlus Unlocked models share same modem configurations but hardware supported combinations are different.
Check in cacombos.com site supported combinations:
8-model:
Data is taken from OnePlus 9 Pro firmware 11.2.1.1.LE15BA Carrier Policy files. All OnePlus Unlocked models share same modem configurations but hardware supported combinations are different.
Check in cacombos.com site supported combinations:
# docker stack deploy docker-compose.yml | |
version: "3.8" | |
services: | |
do-agent: | |
image: digitalocean/do-agent:stable | |
deploy: | |
mode: global | |
volumes: | |
- /proc:/host/proc:ro | |
- /sys:/host/sys:ro |