Skip to content

Instantly share code, notes, and snippets.

View shaunakv1's full-sized avatar
🖖
Keep Calm and Code On

Shaunak Vairagare shaunakv1

🖖
Keep Calm and Code On
View GitHub Profile
@shaunakv1
shaunakv1 / install-wsl2-fix-dns-resolution.md
Last active July 3, 2024 16:11 — forked from coltenkrauter/fix-wsl2-dns-resolution
How to install WSL 2 and Ubuntu on windows 10 and setup network access for VPN

(optional but recommended) Install Windows Terminal Application using one of the three Options:

  1. Windows App Store
  2. NOAA Users should use Software Center Windows Terminal
  3. Install from Github Releases

We will use the new Windows windows terminal app for the rest of the steps. If you chose not to install it. then you may use Windows Powershell Application. For WSL commands, have another PowerShell window logged into wsl using (wsl) command once you have wsl installed.

Open Powershell in Admin mode

@shaunakv1
shaunakv1 / flask_mvt.py
Created March 17, 2018 02:13 — forked from giohappy/flask_mvt.py
OL + Flask + PostGIS for MVT rendering
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import shutil
import math
import psycopg2
from flask import Flask, render_template, make_response
app = Flask(__name__)