Skip to content

Instantly share code, notes, and snippets.

View chingchai's full-sized avatar
:octocat:
Focusing

Chingchai Humhong chingchai

:octocat:
Focusing
View GitHub Profile
@pdbartsch
pdbartsch / README.md
Last active July 26, 2019 05:57
Turf.js example

Working my way through some turf.js tutorials.

starting here

@jqtrde
jqtrde / modern-geospatial-python.md
Last active January 6, 2026 11:44
Modern remote sensing image processing with Python
@pgiraud
pgiraud / app.js
Last active September 29, 2020 20:14
OpenLayers 2 ESRI XYZ layers
var map, layer;
function init(){
map = new OpenLayers.Map('map', {
layers: [new OpenLayers.Layer.OSM()]
});
layer = new OpenLayers.Layer.XYZ( "ESRI",
"https://services1.arcgis.com/rMlsWo8szOzlrpCq/arcgis/rest/services/danger_d_avalanche/MapServer/tile/${z}/${y}/${x}",
{sphericalMercator: true, isBaseLayer: false}
);
map.addLayer(layer);
@PurpleBooth
PurpleBooth / README-Template.md
Last active January 30, 2026 21:55
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@davestevens
davestevens / LetsEncrypt.md
Last active October 28, 2025 09:25
Let’s Encrypt setup for Apache, NGINX & Node.js

Let's Encrypt

Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.

Obtain certificates

I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
@leomos
leomos / connect-to-fortigate.sh
Created May 10, 2016 18:43
Fortigate firewall connection
#!/bin/bash
USER="user"
PASSWORD="password"
SEP="+++++"
TMP=`curl -s -D - www.google.it | grep Location`
echo "Header with magic: "$TMP
MAGIC=`echo $TMP | grep -o '[[:alnum:]]\{16\}' | tr -d '\r\n'`
echo "Magic extracted from header: "$MAGIC
@vielhuber
vielhuber / script.sh
Last active January 27, 2026 15:29
PostgreSQL: Backup and restore export import pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux
@marcellobenigno
marcellobenigno / readme.md
Last active May 14, 2021 12:44
Install Geoserver on Ubuntu 14.04 LTS

GeoServer Installation On Ubuntu 14.04 LTS

Install Tomcat7:

sudo apt-get install tomcat7 tomcat7-admin

Add a new Tomcat user:

@apeckham
apeckham / .sh
Created February 1, 2017 00:22
run minio under docker
docker run -e MINIO_ACCESS_KEY=minio -e MINIO_SECRET_KEY=miniostorage -p 9000:9000 minio/minio server /export
cat >>~/.aws/config
[profile minio-play]
region = us-east-1
s3 =
signature_version = s3v4
cat >>~/.aws/credentials
[minio-play]
@marcellobenigno
marcellobenigno / instalacao_geoserver_ubuntu.md
Last active June 8, 2017 03:19
Instalação do Geoserver no Ubuntu

Criação de Mosaicos no GeoServer

Este passo a passo lhe guiará na instalação do GeoServer no Ubuntu 16.04 e na criação de mosaicos que poderão ser utilizados como backgrounds em aplicações WebMapping.

1- Instalação do GeoServer no Ubuntu 16.04

1.1- Instalação do Servidor Tomcat8:

Abra o Terminal e execute o comando abaixo para instalar o servidor Tomcat: