Skip to content

Instantly share code, notes, and snippets.

@jtrees
jtrees / volume.sh
Created January 28, 2021 20:31 — forked from sebastiencs/volume.sh
Script to get volume notification with dunst http://imgur.com/a/qWgAw
#!/bin/bash
#
# Adjusts the volume and displays the change as a notification.
#
# Usage:
#
# ```sh
# $ ./volume.sh up
# $ ./volume.sh down
# $ ./volume.sh mute
@jtrees
jtrees / s3clonebucket.py
Last active April 25, 2020 12:27 — forked from erans/s3clonebucket.py
Clone S3 Bucket
import argparse
import time
from boto.s3.connection import S3Connection
from boto.exception import S3ResponseError
def run(args):
s3_connection = S3Connection(args.aws_access_key, args.aws_secret_access_key)
source_bucket = s3_connection.get_bucket(args.source_bucket)
destination_bucket = None