Skip to content

Instantly share code, notes, and snippets.

@arthurdapaz
arthurdapaz / xclean.sh
Created July 25, 2020 00:43
Safely Reset Xcode from 9.3 to 11.6. Clean, clear module cache, Derived Data and Xcode Caches.
#!/bin/zsh
############
### zsh script to clear xcode caches and project
###
### Works from Xcode 9.3 to Xcode 11.6
###
### last date I tested: (7/24/2020)
###
### Move this script to /usr/bin/local so this will be the default usage:
### cd myXcodeWorkspace/
@Dineshkarthik
Dineshkarthik / dynamodb_replicate_table.py
Last active June 20, 2021 10:27
Copy dynamoDB table to another region using python, boto3. This script creates an exact replica of the table with same key schema and attribute definitions.
# Copyright (C) 2018 Dineshkarthik Raveendran
from __future__ import print_function # Python 2/3 compatibility
import boto3
import argparse
def replicate(table_name, existing_region, new_region, new_table_name):
"""
Replicate table in new region.