Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* PHP class to convert Latitude & Longitude coordinates into UTM & Lambert Conic Conformal Northing/Easting coordinates.
*
* This class encapsulates the methods for representing a geographic point on the earth in three different coordinate systema. Lat/Long, UTM and Lambert Conic Conformal.
*
* Code for datum and UTM conversion was converted from C++ code written by Chuck Gantz (chuck.gantz@globalstar.com) from http://www.gpsy.com/gpsinfo/geotoutm/
* This code was converted into PHP by Brenor Brophy (brenor@sbcglobal.net) and later refactored for PHP 5.3 by Hans Duedal (hd@onlinecity.dk).
*
@mih4ajlo
mih4ajlo / .gitignore
Last active September 3, 2018 10:36 — forked from GerHobbelt/.gitignore
Test force layout tree
# Editor backup files
*.bak
*~
@mih4ajlo
mih4ajlo / wp_auto_install.sh
Created April 9, 2017 11:45 — forked from nicomollet/wp_auto_install.sh
WP-CLI auto install script
#!/bin/bash
# Default options
LOCALE="fr_FR"
DB_HOST='localhost'
VIRUSTOTAL_KEY='YOUR_KEY'
printf "Name of the project? cf My Project: "
read PROJECT_NAME
@mih4ajlo
mih4ajlo / 001-install.sh
Created April 9, 2017 11:45 — forked from claudiosanches/001-install.sh
WordPress - Simple Ubuntu dev bootstrap
# It's dangerous to go alone! Take this
sudo su
# Update
apt-get update
apt-get upgrade
# Install Apache2
apt-get install -y apache2
@mih4ajlo
mih4ajlo / wpinstall.sh
Created April 9, 2017 11:43 — forked from snieto/wpinstall.sh
WP-CLI RECIPE: new WP install
wpuser='exampleuser'
clear
echo "================================================================="
echo "Awesome WordPress Installer!!"
echo "================================================================="
# accept user input for the database name
@mih4ajlo
mih4ajlo / wp-cli-oneclick-install.sh
Created April 9, 2017 11:43 — forked from petertwise/wp-cli-oneclick-install.sh
Customized wordpress install script with WP CLI
#!/bin/bash
# Install Wordpress with Square Candy default using WP CLI
read -p 'Site URL (example.com): ' url
read -p 'Site Title: ' title
read -p 'WP Admin username: ' admin_user
read -sp 'WP Admin password: ' admin_password
read -p '
WP Admin email: ' admin_email
read -p 'Database name: ' dbname
read -p 'Database user: ' dbuser
@mih4ajlo
mih4ajlo / install.sh
Created January 5, 2017 13:25 — forked from fideloper/install.sh
Vagrant Provisioning Script for PHP applications. This installs a LAMP stack.
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
@mih4ajlo
mih4ajlo / install_lamp.sh
Created October 6, 2016 11:17 — forked from ankurk91/install_lamp_ubuntu.sh
Prepare Ubuntu 16.04 for PHP development (php 7.0, Maria DB 10, MySQL 5.6, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 16.04 Dev Server
# Don't source it, run like - bash install_lamp.sh
# Script will auto terminate on errors
# Prevent source
@mih4ajlo
mih4ajlo / md-wkshop.md
Created June 15, 2016 16:41 — forked from auremoser/md-wkshop.md
MediaLab MAD - Wkshop

City Cartography with CartoDB

BCN Footprint Map

Aurelia Moser, Map Scientist, CartoDB Workshop - MediaLab Prado

May 11-13, 2015, 2H30

Find this document here:

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!

I hope it helps you too!

fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup