Skip to content

Instantly share code, notes, and snippets.

@ibm-jstart
ibm-jstart / cloudant-batch-upload.sh
Created January 6, 2016 16:05
This script batch uploads a directory containing chunks of JSON output from Spark.
#!/bin/bash
# -----------------------------------------
# (c) Copyright IBM Corp. 2015. All Rights Reserved.
# Author: Nathan Hernandez
# License: Apache 2.0 ( http://www.apache.org/licenses/LICENSE-2.0 )
#
# IBM cannot guarantee or imply reliability, serviceability, or function of this script file. The script code is provided "AS IS", without warranty of any kind. IBM shall not be liable for any damages arising out of your use of this code.
# -----------------------------------------
@ibm-jstart
ibm-jstart / cloudant-download.sh
Created January 6, 2016 16:04
A small bash script to download a Cloudant database via cURL.
#!/bin/bash
# -----------------------------------------
# (c) Copyright IBM Corp. 2015. All Rights Reserved.
# Author: Nathan Hernandez
# License: Apache 2.0 ( http://www.apache.org/licenses/LICENSE-2.0 )
#
# IBM cannot guarantee or imply reliability, serviceability, or function of this script file. The script code is provided "AS IS", without warranty of any kind. IBM shall not be liable for any damages arising out of your use of this code.
# -----------------------------------------
@ibm-jstart
ibm-jstart / split.sh
Created January 6, 2016 16:02
A bash shell utility for splitting large files into chunks of a defined size without splitting the file in the middle of lines
#!/bin/bash
# -----------------------------------------
# (c) Copyright IBM Corp. 2015. All Rights Reserved.
# Author: Nathan Hernandez
# License: Apache 2.0 ( http://www.apache.org/licenses/LICENSE-2.0 )
#
# IBM cannot guarantee or imply reliability, serviceability, or function of this script file. The script code is provided "AS IS", without warranty of any kind. IBM shall not be liable for any damages arising out of your use of this code.
# -----------------------------------------