Skip to content

Instantly share code, notes, and snippets.

Download Google Drive files with WGET
Example Google Drive download link:
https://docs.google.com/open?id=[ID]
To download the file with WGET you need to use this link:
https://googledrive.com/host/[ID]
Example WGET command:
@yogiwinardhana
yogiwinardhana / README-Template.md
Created November 28, 2020 14:03 — forked from PurpleBooth/README-Template.md
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

@yogiwinardhana
yogiwinardhana / BetterWMS
Created August 20, 2020 10:10 — forked from alfredotranchedone/BetterWMS
L.TileLayer.BetterWMS.js extend L.TileLayer.WMS
There are a bunch of reasons why this is convoluted, mostly in building the URL to make the request:
1. You have to rely on an AJAX request, this example uses jQuery
2. To make a GetFeatureInfo request, you must provide a BBOX for a image, and the pixel coordinates for the part of the image that you want info from. A couple of squirrely lines of Leaflet code can give you that.
3. Output formats. The `info_format` parameter in the request. We don't know *a priori* which will be supported by a WMS that we might make a request to. See [Geoserver's docs](http://docs.geoserver.org/stable/en/user/services/wms/reference.html#getfeatureinfo) for what formats are available from Geoserver. That won't be the same from WMS to WMS, however.
4. WMS services return XML docs when there's a mistake in the request or in processing. This sends an HTTP 200, which jQuery doesn't think is an error.
5. added a php proxy and 2 new options (CORS workaround)

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@yogiwinardhana
yogiwinardhana / hyper.js
Created August 11, 2020 09:54 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@yogiwinardhana
yogiwinardhana / readme.md
Created June 29, 2020 01:13 — forked from falu/readme.md
GeoServer Installation On Ubuntu Server 18.04 LTS

GeoServer Installation On Ubuntu Server 18.04 LTS

Install Tomcat8:

sudo apt-get install default-jre tomcat8 tomcat8-admin

Add a new Tomcat user:

@yogiwinardhana
yogiwinardhana / readme.md
Created June 29, 2020 01:12 — forked from falu/readme.md
Install Geoserver on Ubuntu Server 16.04 LTS

GeoServer Installation On Ubuntu Server 16.04 LTS

Install Tomcat7:

sudo apt-get install tomcat7 tomcat7-admin

Add a new Tomcat user:

@yogiwinardhana
yogiwinardhana / web.xml
Created June 27, 2020 11:45 — forked from essoen/web.xml
CORS * for GeoServer with Tomcat add following to `/var/lib/tomcat7/webapps/geoserver/WEB-INF/web.xml`
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.methods</param-name>
<param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>