This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SHELLY_KEY=<shelly-key from https://home.shelly.cloud/index.html#/user_settings> | |
| SHELLY_CLOUD_SERVER=<shelly-cloud-server from https://home.shelly.cloud/index.html#/user_settings eg. https://shelly-61-eu.shelly.cloud> | |
| DEVICE_ID= <device-id from https://home.shelly.cloud> | |
| CSV_OUTPUT_FILE=shelly_values.csv | |
| curl -s -X POST $SHELLY_CLOUD/device/status -d "id=$DEVICE_ID&auth_key=$SHELLY_KEY" | jq -r '.data.device_status."em:0" | del(.["user_calibrated_phase"]) | [.]' | \ | |
| jq -r '(map(keys) | add | unique) as $cols | map(. as $row | $cols | map($row[.])) as $rows | $cols, $rows[] | @csv' > file.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:7 | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get -qq update \ | |
| && apt-get -qq -y --no-install-recommends install \ | |
| autoconf \ | |
| automake \ | |
| build-essential \ | |
| curl \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| date | |
| function sendMessage { | |
| MESSAGE=$@; | |
| if [ "${MESSAGE}" != "" ]; | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Source/C/NCSEcw/NCSJP2/NCSJPCResolution.cpp b/Source/C/NCSEcw/NCSJP2/NCSJPCResolution.cpp | |
| index 12a0cce..8747b24 100644 | |
| --- a/Source/C/NCSEcw/NCSJP2/NCSJPCResolution.cpp | |
| +++ b/Source/C/NCSEcw/NCSJP2/NCSJPCResolution.cpp | |
| @@ -1773,10 +1773,10 @@ bool CNCSJPCResolution::SD_2D_OUTPUT4(ContextID nCtx, | |
| //Step0-1 == 2State. | |
| // | |
| - UINT32 n = 0; | |
| + INT32 n = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -Eeuo pipefail | |
| BLOCKSIZE=256 | |
| OVERVIEW_BLOCKSIZE=256 | |
| MIN_OVERVIEW_SIZE=256 | |
| KEEP_TEMP=0 | |
| MOSAIC_VRT="mosaic.vrt" | |
| MOSAIC_RGB_VRT="mosaicrgb.vrt" |
This process outlines the process for creating Cloud Optimised Geotiffs suitable for hosting in services such as AWS S3. COGs enables more efficient workflows use cases such as fast access from Functions as a Services (E.g AWS Lambda), or comsumption into client desktop GIS systems (e.g QGIS). For more details on COGs please see https://www.cogeo.org/in-depth.html
-
Install the Proxy Server package. Just go to Package Manager in DSM and install Proxy Server.
-
Edit squid.conf to tell it about your ad file. Ssh to the box, and edit the file
/var/packages/ProxyServer/target/squid/etc/squid.conf(viis installed by default)
You're going to add 2 lines to this file. First, under the auth_param section, you're going to add:
acl ads dstdom_regex -i "/var/packages/ProxyServer/target/squid/etc/squid.adservers"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xlsxwriter | |
| import arcpy | |
| workbook = xlsxwriter.Workbook('ResearchAreas.xlsx') | |
| worksheet = workbook.add_worksheet() | |
| fc = r"C:\ArcTutor\GP Service Examples\ClipAndShip\ToolData\Zion.gdb\Research_areas" | |
| fields = [f.name for f in arcpy.ListFields(fc) if f.name.upper() not in ("OBJECTID","SHAPE")] | |
| rows = [r for r in arcpy.da.SearchCursor(fc,fields)] | |
| rows_structured = [list(elem) for elem in rows] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import multiprocessing | |
| from arcrest import AGSTokenSecurityHandler | |
| from arcrest.ags.server import Server | |
| from arcrest.common.geometry import Envelope | |
| ags_admin_url = r"http://localhost:6080/arcgis/admin" | |
| ags_security_handler = AGSTokenSecurityHandler(username="username", | |
| password="password", | |
| org_url=ags_admin_url) |
NewerOlder