Skip to content

Instantly share code, notes, and snippets.

@kgjenkins
kgjenkins / readme.md
Last active May 3, 2024 12:21
Creating halftones in QGIS

Creating halftones in QGIS

A quick demo using a hexagon grid with a centroid fill of points sized using raster values from the image layer.

qgis-hex-halftones2

@mdsumner
mdsumner / fveg_15.md
Last active December 15, 2022 17:50
git clone https://github.com/r-barnes/ArcRasterRescue.git
cd ArcRasterRescue
make
cd ..
./ArcRasterRescue/arc_raster.exe fveg15_1.gdb/ 0 fveg15.tif
#Arc Raster Rescue (url=github.com/r-barnes/ArcRasterRescue, hash=b60ea39fcf11666d, compiled=2018-05-08 03:43:04 UTC)
#Allocating 4x30592x35456 = 4338679808
gdalinfo fveg15.tif
@TravisMullen
TravisMullen / pivx-cli
Created January 1, 2018 03:20
PIVX Commands
== Blockchain ==
getbestblockhash
getblock "hash" ( verbose )
getblockchaininfo
getblockcount
getblockhash index
getblockheader "hash" ( verbose )
getchaintips
getdifficulty
getmempoolinfo
@gustabot42
gustabot42 / gdb_read.py
Last active June 23, 2022 18:15
Read ESRI GDB With Python 3 GDAL/OGR
#!python3
# Using python3 anconda
# conda install -c conda-forge gdal
from pathlib import Path
from contextlib import contextmanager
from osgeo import ogr
@contextmanager
@Komzpa
Komzpa / gevel_postgis.md
Last active May 7, 2021 00:35
Visualize PostGIS index using Gevel in Postgres 9.6

Visualize PostGIS index using Gevel in Postgres 9.6:

git clone git://sigaev.ru/gevel
cd gevel
git checkout bd8b8b031a8049a6e7c18c00946bfbd99d75d27f
USE_PGXS=1 make
sudo USE_PGXS=1 make install
psql -f /usr/share/postgresql/9.6/contrib/gevel.sql
@missinglink
missinglink / berlin.geojson
Last active March 4, 2017 01:32
postcode boundaries generated from the convex hull of point data from the openaddresses project
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darrell
darrell / nyt_top52_pgrouting_example.sql
Created February 17, 2017 17:56
how to calculate the shortest path using actual air routes between all the cities in the NYT 52 Places to visit in 2017
-- Airport and Flight data can be downloaded at: http://openflights.org/data.html
-- you'll need airports.dat and routes.dat
-- (I added a couple of commercial flights that I know exist,
-- but weren't in the Open Flights data
-- OK, on to the good stuff.
-- The first thing we do is load the top 52 list, which has the place and
-- the nearest commerical airport. (This is data I just figured out by hand.
-- Where it's very ambiguous, like "Canada" I just used the appropriate capital (i.e. Ottawa))
@mdiener21
mdiener21 / install-postgres-postgis-gdal.sh
Last active June 24, 2020 16:18
Setup Ubuntu 16.04 for GIS development postgresql 9.6, postgis 2.3, gdal 2.1.2, python 3.5, pgrouting
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6
sudo apt-get install postgresql-9.6-postgis-2.3
sudo apt-get install postgresql-9.6-pgrouting
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
@ttimasdf
ttimasdf / Open iterm tab here
Last active March 1, 2020 17:49 — forked from eric-hu/Open iterm tab here
Apple script to open an iterm2 tab from right-clicking on a file or folder in Finder.To use:(1) Open Automator(2) Create a new service(3) Change "Service receives selected" drop downs to "Files or folders" in "Finder"(4) Select "Run applescript" from the sidebar, then paste this script in and save
-- Adapted from these sources:
-- http://peterdowns.com/posts/open-iterm-finder-service.html
-- https://gist.github.com/cowboy/905546
--
-- Modified to work with files as well, cd-ing to their container folder
on run {input, parameters}
tell application "Finder"
set my_file to first item of input
set is_folder to (do shell script "file -b " & quoted form of (POSIX path of my_file))
if is_folder ends with "directory" then
@jsanz
jsanz / README.md
Last active May 17, 2018 13:53
Geocode with Mapzen search and Google Spreadsheets

How to set up a quick geocoding system on google spreadsheets.

  1. Create a new spreadsheet
  2. Open the Scripts editor and paste the script attached
  3. Use on your spreadsheet this new formula
=searchMapzen(place_cell,mapzen_api_key)