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
Leo 5.8.1 beta 1, http://leoeditor.com, is now available on GitHub.
Leo is an IDE, outliner and PIM, as described here.
- during installation, set config to enabled
- edit policy, add your user on Local Comp Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment > Create symbolic links
- enable Windows Developer mode to bypass UAC requirement
- Search > For developer settings > Dev mode
Transcribed from an interview with Toby Schachman and Paula Te on The Afrofuturist Podcast:
There's this notion of the open-source movement. There are a lot of things
that we totally resonate with that because it's about understanding how your
technology works. We're totally 100% on board with that.
But then there are other issues with the open-source community, where it's
very internet-based and so open-source ends up benefitting this group of
people who have really strong access to internet and understand how to use
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
| # generate a data dictionary from an ArcGIS feature class | |
| # tested with ArcGIS Pro/Python3 | |
| # Run from command prompt in ArcGIS Pro environment | |
| # Takes 2 arguments: 1) path to feature class 2) path for output CSV file | |
| # Example: python C:\arcpy_data_dictionary.py C:\yourgeodatabase.gdb\featureclassname C:\output.csv | |
| import arcpy | |
| import sys | |
| import 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
| #!python2 | |
| # Example 1a adapted from https://www.reddit.com/r/gis/comments/4rhvhh/map_automation_arcpymapping_make_lyr/ | |
| # | |
| # Reference: 1) http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/layer-class.htm | |
| # 2) https://docs.python.org/2/library/json.html | |
| import arcpy | |
| import json | |
| lyr = # Layer object, typically from arcpy.mapping.ListLayers (arcpy._mapping.Layer) |
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 | |
| # Usage: | |
| # ./git-move.sh path/to/file/or/dir path/to/destination/repo | |
| echo "creating patch for path ${1}" | |
| git log --name-only --pretty="format:" --follow "${1}" \ | |
| | sort -u | \ | |
| xargs git log --pretty=email --patch-with-stat --reverse --full-index --binary -m --first-parent -- > "${2}/_patch_" \ | |
| && echo "moving to destination repo at ${2}" \ | |
| && cd "${2}" \ | |
| && echo "applying patch" \ |
My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.
My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion.
I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.
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
| :: --{ Remove-Win10-nag.bat }-- | |
| :: http://superuser.com/questions/955444/i-cancelled-microsoft-10-reservation-and-uninstalled-kb3035583-but-window-10-is | |
| :: must be run from elevated command prompt (Run As Administrator) | |
| for %%a in (3035583 3022345 3068708 3075249 3080149 2990214 3012973 2952664 2976978) do ( | |
| wusa /uninstall /kb:%%a /norestart /quiet | |
| ) | |
| echo Windows Registry Editor Version 5.00 >> "%temp%\disable-win10-upgrade.txt" | |
| echo. >> "%temp%\disable-win10-upgrade.txt" | |
| echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade] >> "%temp%\disable-win10-upgrade.txt" |