Skip to content

Instantly share code, notes, and snippets.

View definiteIymaybe's full-sized avatar

dfntlmb definiteIymaybe

View GitHub Profile
@definiteIymaybe
definiteIymaybe / osm_extract_workflow.md
Created September 15, 2019 15:14 — forked from dalekunce/osm_extract_workflow.md
workflow for cutting part of an osm file

Quick workflow to setup and cut an osm file with a polygon file

##install osmconvert

wget -O - http://m.m.i24.cc/osmconvert.c | cc -x c - -lz -O3 -o osmconvert

##move it to bin folder

cp osmconvert /usr/local/bin/osmconvert
@definiteIymaybe
definiteIymaybe / overpass_query_since_date
Created September 15, 2019 15:14 — forked from dalekunce/overpass_query_since_date
osm edits since a data/time
#
Simply modify the three following strings for node, ways and relations
newer than="2013-05-28T00:00:00Z
This script is for statistics. For example, it does not extract all nodes from a way if only one node is modified, since the way object and other nodes are not affected.
If you want only the nodes, you only keep the first section of the script where the nodes are extracted.
The polygon-query bounds is to clip the CAP103 area, extracting info only for this area.
@definiteIymaybe
definiteIymaybe / frontendDevlopmentBookmarks.md
Created September 15, 2019 15:23 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@definiteIymaybe
definiteIymaybe / install.md
Created September 15, 2019 15:26 — forked from pnorman/install.md
Draft install instructions for osm2pgsql + carto + renderd

Manually building a tile server

This page describes how to install, setup and configure all the necessary software to operate your own tile server. The step-by-step instructions are written for Ubuntu Linux 12.04 LTS (Precise Pangolin), however they should transfer fairly straightforwardly to other versions of Ubuntu or Linux distributions.

##Software installation The OSM tile server stack is a collection of programs and libraries that work together to create a tile server. As so often with OpenStreetMap, there are many ways to achieve this goal and nearly all of the components have alternatives that have various specific advantages and disadvantages. This tutorial describes the most standard version that is also used on the main OpenStreetMap.org tile server.

This guide covers installation of osm2pgsql, loading a PostgreSQL/PostGIS database, and rendering tiles for an online webmap.The database can also be used to [develop stylesheets], or render data with other software.

Before starting you want t

@definiteIymaybe
definiteIymaybe / icon-packs.md
Created September 15, 2019 15:32 — forked from revolunet/icon-packs.md
List of free icon packs

Icon ressources collection

#!/bin/bash
## Install vim
apt-get update
apt-get upgrade
apt-get install vim
# Read from ext repository
echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
<?php
/**
* Gather all data from Caldera Forms submission as PHP array
*/
add_action( 'caldera_forms_submit_complete', 'slug_process_form', 55 );
function slug_process_form( $form ) {
//put form field data into an array $data
$data= array();
foreach( $form[ 'fields' ] as $field_id => $field){
@definiteIymaybe
definiteIymaybe / cloudSettings
Last active December 4, 2020 18:15 — forked from kjohnson/0_ninja-forms-hooks.markdown
Ninja Forms Hooks - Filters and Actions
{"lastUpload":"2020-12-04T18:15:47.938Z","extensionVersion":"v3.4.3"}
@definiteIymaybe
definiteIymaybe / .block
Created March 29, 2021 12:07
Sankey diagram using a csv file with v4
license: mit
@definiteIymaybe
definiteIymaybe / admin.php
Created May 3, 2021 06:59 — forked from Dorf/admin.php
[Roots Sage starting admin functions] add Color Palette, Gutenberg editor styles, and basic Intervention commands #sage #roots #admin #intervention #gutenberg #editor
<?php
/**
* Admin assets
*/
add_action('admin_enqueue_scripts', function () {
// global $post;
// $my_post_type = 'page';
if ( stristr( $_SERVER['REQUEST_URI'], 'post.php' ) !== false // just for the post editor
// && is_object( $post )