Skip to content

Instantly share code, notes, and snippets.

View SaeedDarya's full-sized avatar

Saeed Darya SaeedDarya

View GitHub Profile
@SaeedDarya
SaeedDarya / delete_all_object_versions.sh
Created August 25, 2021 22:47 — forked from weavenet/delete_all_object_versions.sh
Delete all versions of all files in s3 versioned bucket using AWS CLI and jq.
#!/bin/bash
bucket=$1
set -e
echo "Removing all versions from $bucket"
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'`
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'`
@SaeedDarya
SaeedDarya / Text-summarization.py
Created January 23, 2020 23:42 — forked from edubey/Text-summarization.py
Text Summarizer in Python
#!/usr/bin/env python
# coding: utf-8
from nltk.corpus import stopwords
from nltk.cluster.util import cosine_distance
import numpy as np
import networkx as nx
def read_article(file_name):
file = open(file_name, "r")
@SaeedDarya
SaeedDarya / xls_to_json.py
Created May 24, 2018 20:05 — forked from yosemitebandit/xls_to_json.py
converting xls files to JSON dicts in python
"""XLS -> json converter
first:
$ pip install xlrd
then:
$ cat in.xls
date, temp, pressure
Jan 1, 73, 455
Jan 3, 72, 344