Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/python-3-miniconda/.devcontainer/base.Dockerfile | |
FROM mcr.microsoft.com/vscode/devcontainers/miniconda:0-3 | |
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 | |
ARG NODE_VERSION="none" | |
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi | |
# Copy environment.yml (if found) to a temp location so we update the environment. Also | |
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists. |
This file contains 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
[Desktop Entry] | |
Name=Spyder3 | |
Exec=/home/<username>/anaconda3/bin/spyder | |
Icon=/usr/share/app-install/icons/spyder3.png | |
Type=Application | |
Terminal=false | |
Categories=Office;Development; | |
MimeType=text/plain |
This file contains 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
# Make a list of all fonts in the layout mapserver wants for a font file | |
find /usr/share/fonts -name "*.ttf" | xargs -i sh -c 'echo $(basename {}) {}' > fonts.list |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf_8 -* | |
# | |
# Script to sort bracketed photos by exposure into bins. | |
# Default assumes 3 photos per bracket set, into 3 folders | |
# | |
# Alex Mandel 2014 | |
# tech@wildintellect.com | |
# requires python |
This file contains 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
<qgsScales version="1.0"> | |
<!--Approximate Tile Scales for OSM and other Spherical Mercator Projections. | |
Source:http://www.3liz.com/blog/rldhont/index.php?post/2012/07/17/OpenStreetMap-Tiles-in-QGIS | |
--> | |
<scale value="1:591659030"/> | |
<scale value="1:295829515"/> | |
<scale value="1:147914757"/> | |
<scale value="1:73957378"/> | |
<scale value="1:36978689"/> |
This file contains 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
<GDAL_WMS> | |
<Service name="TMS"> | |
<ServerUrl>http://c.tile.thunderforest.com/cycle/${z}/${x}/${y}.png</ServerUrl> | |
</Service> | |
<DataWindow> | |
<UpperLeftX>-20037508.34</UpperLeftX> | |
<UpperLeftY>20037508.34</UpperLeftY> | |
<LowerRightX>20037508.34</LowerRightX> | |
<LowerRightY>-20037508.34</LowerRightY> | |
<TileLevel>18</TileLevel> |
This file contains 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
#how to make world file from a bounding box and an image file - aka kml/kmz | |
#Generic Formula | |
(W-E)/(width pixels) | |
0 | |
0 | |
(N-S)/(width pixels) | |
West+.5*abs((W-E)/(width pixels)) | |
North-.5*abs((N-S)/(height pixels)) | |
#Example |
This file contains 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
SELECT i.relname as indexname, | |
idx.indrelid::regclass as tablename, | |
am.amname as typename, | |
ARRAY( | |
SELECT pg_get_indexdef(idx.indexrelid, k + 1, true) | |
FROM generate_subscripts(idx.indkey, 1) as k | |
ORDER BY k | |
) as indkey_names | |
FROM pg_index as idx | |
JOIN pg_class as i |
This file contains 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 | |
# Alex Mandel 2011 | |
# Apache 2.0 License | |
#Script outline for updating awstats from historical logs | |
#Take start number of oldest log via arguments | |
# grass.osgeo.org | |
configfile=$1 | |
# grass-access.log | |
apachelogbase=$2 |
NewerOlder