Skip to content

Instantly share code, notes, and snippets.

View dedoussis's full-sized avatar

Dimitrios Dedoussis dedoussis

View GitHub Profile
@dedoussis
dedoussis / anisette.py
Created May 21, 2023 14:37
Retrieve local anisette data
#!/usr/bin/env python3
import sys
import json
import typing as t
import objc
from Foundation import NSBundle, NSClassFromString, NSISO8601DateFormatter, NSDate, NSTimeZone
from AppKit import *
@dedoussis
dedoussis / Dockerfile
Created December 27, 2022 00:34
Docker build of the icloud-hide-my-email browser extension
# Place this dockerfile in the root dir of this repo: https://github.com/dedoussis/icloud-hide-my-email-browser-extension
FROM node:18-alpine
RUN apk upgrade && apk add --update --no-cache --virtual .builds-deps build-base python3
COPY . /opt/icloud-hide-my-email-extension
WORKDIR /opt/icloud-hide-my-email-extension
@dedoussis
dedoussis / icloud_api_auth_playground.py
Created August 22, 2022 15:48
iCloud API authentication (Python)
import requests
import typing as t
from uuid import uuid4
HEADERS = (
ACCOUNT_COUNTRY_HEADER := "X-Apple-ID-Account-Country",
SESSION_ID_HEADER := "X-Apple-ID-Session-Id",
SESSION_TOKEN_HEADER := "X-Apple-Session-Token",
TWOSV_TRUST_TOKEN_HEADER := "X-Apple-TwoSV-Trust-Token",
@dedoussis
dedoussis / SUPPORT_FLOW.md
Last active March 31, 2022 09:32
Support request flow
flowchart TD
    support_request(You have a support request)
    squad_member_decision{Can a fellow engineer of your team help?}
    devops_champion_decision{Can the DevOps champion of your team help?}
    sre_decision{Can the SRE of your team help?}
    cloud_support_ask(Ask cloud support)
    resolved(Resolved)

 support_request-->squad_member_decision
@dedoussis
dedoussis / set_default_pool_for_org.py
Last active October 13, 2021 14:25
Sets the default agent pool for the entirety of build definitions within an AZDO org
#!/usr/bin/env python3
"""
Description:
Sets the default agent pool for the entirety of build definitions within an org
Usage instructions:
python set_default_pool_for_org.py
@dedoussis
dedoussis / delete_deployments.py
Created May 28, 2021 15:32
Delete all deployments of a given GitHub repository
#!/usr/bin/env python3
"""
Clears all deployments from a given repo
Requirements: pip install PyGithub
Usage: GITHUB_ACCESS_TOKEN=${MY_PAT} REPO_NAME=twbs/bootstrap delete_deployments.py
"""
from github import Github

Keybase proof

I hereby claim:

  • I am dedoussis on github.
  • I am dedoussis (https://keybase.io/dedoussis) on keybase.
  • I have a public key ASAG-gc93A_k3e7nz7FAUnbmI4zAELyC8Z9QN_BVTB7psgo

To claim this, I am signing this object: