<p style="font-size:small;">Content-Length: 1924 | <a href="http://clevelandohioweatherforecast.com//pFad.php?u=" style="font-size:small;">pFad</a> | <a href="https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh" style="font-size:small;">https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh</a></p>18

#!/bin/sh

#  install.sh
#  FITSImporter
#
#  Created by Cédric Foellmi on 29/08/16.
#  Copyright (c) 2016 onekiloparsec. All rights reserved.

#!/bin/sh

GENERATOR_NAME="FITSImporter.mdimporter"
DOWNLOAD_URL="https://github.com/onekiloparsec/FITSImporter/releases/download/1.2.0/${GENERATOR_NAME}.zip"
SYSTEM_IMPORTER_DIR="/Library/Spotlight"
LOCAL_IMPORTER_DIR="${HOME}/Library/Spotlight"
ZIP_FILE_PATH="${SYSTEM_IMPORTER_DIR}/${GENERATOR_NAME}.zip"

echo "\n *** Installing ${GENERATOR_NAME} into ${SYSTEM_IMPORTER_DIR}"

if [ -e "${LOCAL_IMPORTER_DIR}/${GENERATOR_NAME}" ]; then
    echo "\n >>> An old importer is located in ${LOCAL_IMPORTER_DIR}"
    echo " >>> You should remove it first, to avoid conflicts, and relaunch the same command."
    echo " >>> Here is the command to issue:\n$ rm -rf ${LOCAL_IMPORTER_DIR}/${GENERATOR_NAME}\n"
    exit 0
fi

sudo mkdir -p "${SYSTEM_IMPORTER_DIR}"
# curl -kL $DOWNLOAD_URL | /usr/bin/bsdtar -x -v -z -C "${SYSTEM_IMPORTER_DIR}"
echo "\n *** Downloading FITSImporter from https://github.com/onekiloparsec/FITSImporter..."
sudo curl -kL -# $DOWNLOAD_URL -o ${ZIP_FILE_PATH}
echo "\n *** FITSImporter successfully downloaded. Unzipping..."

sudo unzip -o -q ${ZIP_FILE_PATH} -d ${SYSTEM_IMPORTER_DIR}
if [ -s ${SYSTEM_IMPORTER_DIR}/${GENERATOR_NAME} ]
then
  echo " *** FITSImporter successfully unzipped. "
  sudo rm -f "${SYSTEM_IMPORTER_DIR}/${GENERATOR_NAME}.zip" >& /dev/null
else
  echo " *** Couldn't unzip the file: ${ZIP_FILE_PATH} ???"
  echo " *** Try restarting the script. Or send a mail to cedric@onekilopars.ec\n\n"
  exit 1
fi

echo "\n *** Importing the new Spotlight importer ..."
/usr/bin/mdimport -r /Library/Spotlight/FITSImporter.mdimporter

echo "\n *** FITSImporter successfuly installed! Enjoy. All inquiry to be sent to cedric@onekilopars.ec"
echo " *** More FITS utilities as well as awesome apps for astronomers: http://onekilopars.ec\n\n"
<!-- URL input box at the bottom -->
<form method="GET" action="">
    <label for="targeturl-bottom"><b>Enter URL:</b></label>
    <input type="text" id="targeturl-bottom" name="u" value="https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh" required><br><small>
    <label for="useWeserv-bottom">Disable Weserv Image Reduction:</label>
    <input type="checkbox" id="useWeserv-bottom" name="useWeserv" value="false"><br>
    <label for="stripJS-bottom">Strip JavaScript:</label>
    <input type="checkbox" id="stripJS-bottom" name="stripJS" value="true"><br>
    <label for="stripImages-bottom">Strip Images:</label>
    <input type="checkbox" id="stripImages-bottom" name="stripImages" value="true"><br>
    <label for="stripFnts-bottom">Stripout Font Forcing:</label>
    <input type="checkbox" id="stripFnts-bottom" name="stripFnts" value="true"><br>
    <label for="stripCSS-bottom">Strip CSS:</label>
    <input type="checkbox" id="stripCSS-bottom" name="stripCSS" value="true"><br>
    <label for="stripVideos-bottom">Strip Videos:</label>
    <input type="checkbox" id="stripVideos-bottom" name="stripVideos" value="true"><br>
    <label for="removeMenus-bottom">Remove Headers and Menus:</label>
    <input type="checkbox" id="removeMenus-bottom" name="removeMenus" value="true"><br></small>
<!-- New form elements Sandwich Strip -->
        <label for="start"><small>Remove from after:</label>
        <input type="text" id="start" name="start" value="<body>">
        <label for="end"><small>to before:</label>
        <input type="text" id="end" name="end">
        <input type="checkbox" id="applySandwichStrip" name="applySandwichStrip" value="1" onclick="submitForm()"> ApplySandwichStrip<br></small>
    <button type="submit">Fetch</button>
</form><!-- Header banner at the bottom -->
<p><h1><a href="http://clevelandohioweatherforecast.com//pFad.php?u=" title="pFad">pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <i>Saves Data!</i></a></h1><br><em>--- a PPN by Garber Painting Akron. <b> With Image Size Reduction </b>included!</em></p><p>Fetched URL: <a href="https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh" target="_blank">https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh</a></p><p>Alternative Proxies:</p><p><a href="http://clevelandohioweatherforecast.com/php-proxy/index.php?q=https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh" target="_blank">Alternative Proxy</a></p><p><a href="http://clevelandohioweatherforecast.com/pFad/index.php?u=https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh&useWeserv=true" target="_blank">pFad Proxy</a></p><p><a href="http://clevelandohioweatherforecast.com/pFad/v3index.php?u=https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh&useWeserv=true" target="_blank">pFad v3 Proxy</a></p><p><a href="http://clevelandohioweatherforecast.com/pFad/v4index.php?u=https://raw.github.com/onekiloparsec/FITSImporter/master/Scripts/install.sh&useWeserv=true" target="_blank">pFad v4 Proxy</a></p>