Skip to content

Instantly share code, notes, and snippets.

@maptiler
maptiler / globalmaptiles.py
Created August 13, 2018 10:37
globalmaptiles.py
#!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple HTML viewers based on Google Maps and OpenLayers
# Author: Klokan Petr Pridal, klokan at klokan dot cz
# Web: http://www.klokan.cz/projects/gdal2tiles/
@dkorn
dkorn / compile_nginx_from_sources.yml
Created October 11, 2017 08:57
Ansible Playbook compiling NGINX from sources, to include particular modules
---
- name: Compile NGINX from sources
hosts: webserver
vars:
nginx_version: nginx-1.13.4
nginx_tarball_url: "http://nginx.org/download/{{ nginx_version }}.tar.gz"
nginx_install_dir: "/tmp/{{ nginx_version }}"
nginx_sbin_path: "/usr/sbin/nginx"
nginx_conf_path: "/etc/nginx/nginx.conf"
@fxkraus
fxkraus / debian-install-megacli.md
Last active September 16, 2025 19:55
Install LSI MegaCli .deb package on Debian/Ubuntu

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

unzip

unzip 8-07-14_MegaCLI.zip
@leafnode
leafnode / init-postgis.sql
Created October 5, 2016 13:12
Ansible template to prepare dataspace for PostGIS
-- Enable PostGIS (includes raster)
CREATE EXTENSION postgis;
-- Enable Topology
CREATE EXTENSION postgis_topology;
-- Enable PostGIS Advanced 3D
-- and other geoprocessing algorithms
-- CREATE EXTENSION postgis_sfcgal;
-- fuzzy matching needed for Tiger
CREATE EXTENSION fuzzystrmatch;
-- rule based standardizer
@zenorocha
zenorocha / etc-hosts-on-win.md
Last active October 10, 2025 00:20
/etc/hosts on Windows

1. Get your IP Address

echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`

2. Modify your hosts file

notepad

@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active October 11, 2025 23:11
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@AC92672
AC92672 / cdscn800c_x64.inf
Created March 12, 2016 03:31 — forked from mbrownnycnyc/cdscn800c_x64.inf
windows 64-bit driver file for cardscan hardware before dymo bought them (800c, 700c, 600c, etc) software. compatible with cardscan software version 8+ on windows 7, windows 8, etc. Copy the file to c:\Program Files (x86)\CardScan\CardScan\System\Drivers, and use device installation wizard to select the directory for Unknown Device.
; CDSCN800C.INF -- CardScan 800c Setup File
; Copyright (c) 2005 CardScan, Inc.
; Manufacturer: CardScan, Inc.
[Version]
Signature="$CHICAGO$"
Provider=%CardScan%
Class=Image
ClassGuid={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Catalogfile=cdscn800c.cat
@staltz
staltz / introrx.md
Last active October 14, 2025 19:39
The introduction to Reactive Programming you've been missing
@kalxas
kalxas / README.txt
Last active September 14, 2021 10:19
Data.gov CSW HowTo v2.0
Based on copy of https://gist.github.com/kalxas/5ab6237b4163b0fdc930 on 20 June 2014 12:27 UTC
@kalxas
kalxas / 00-README.rst
Last active March 6, 2019 18:48
CSW Testing Suite

Testing suite to test CSW endpoints

Instructions

  1. Install the suite: