Skip to content

Instantly share code, notes, and snippets.

@swabb
swabb / extract_telegram_macos.ipynb
Created January 27, 2025 16:03 — forked from stek29/extract_telegram_macos.ipynb
Extract Telegram messages from db_sqlite PostBox – made for Telegram for macOS, but should work with Telegram for iOS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@swabb
swabb / self-signed-certificate-with-custom-ca.md
Created December 8, 2022 09:27 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@swabb
swabb / postgres_master_slave_failover_failback.md
Created November 18, 2022 10:12 — forked from mac2000/postgres_master_slave_failover_failback.md
Postgres Master Slave Failover & Failback

Postgres Master Slave Failover & Failback

video

start

docker run -it --rm -p 5551:5432 --name=db1 --hostname=db1 ubuntu:20.04 bash
docker run -it --rm -p 5552:5432 --name=db2 --hostname=db2 ubuntu:20.04 bash
@swabb
swabb / lambda.py
Created November 6, 2019 12:13 — forked from alvarotuso/lambda.py
DynamoDB Autoscaling Manager
from __future__ import print_function, unicode_literals
import calendar
import datetime
from collections import defaultdict
import boto3