Skip to content

Instantly share code, notes, and snippets.

View mgd722's full-sized avatar

Mike Davlantes mgd722

View GitHub Profile
@soheilhy
soheilhy / nginxproxy.md
Last active May 16, 2024 08:59
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@mgd722
mgd722 / PyDeletePointsMoreThan800MetersFromRivers.pyt
Last active May 16, 2023 00:56
ChronoCards Script & Tool Logging Examples
# -*- coding: utf-8 -*-
import arcpy
class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "PyDeletePointsMoreThan800MetersFromRivers"