Skip to content

Instantly share code, notes, and snippets.

@missioncloud
missioncloud / delete_recovery_points.py
Created April 20, 2019 20:08
Simple Python3 script to remove recovery points from an AWS Backup Vault. Used as an interim solution until a `force_delete` option becomes available.
import boto3
from time import sleep
from sys import argv
def get_recovery_points(vault_name: str) -> list:
pagination = True
restore_points = []
b = boto3.client('backup')
@marjanmo
marjanmo / youtube_to_mp3_splitter.py
Last active June 16, 2023 17:46
Download Youtube music compilation into separate .mp3 files
import subprocess
import sys, os
"""
#####################################
##### YOUTUBE TO MP3 SPLITTER ######
#####################################
@drorata
drorata / gist:146ce50807d16fd4a6aa
Last active May 23, 2024 02:48
Minimal Working example of Elasticsearch scrolling using Python client
# Initialize the scroll
page = es.search(
index = 'yourIndex',
doc_type = 'yourType',
scroll = '2m',
search_type = 'scan',
size = 1000,
body = {
# Your query's body
})