Aurelia Moser, Map Scientist, CartoDB Workshop - MediaLab Prado
May 11-13, 2015, 2H30
Find this document here:
| <?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). | |
| * |
| # Editor backup files | |
| *.bak | |
| *~ |
| #!/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 |
| # It's dangerous to go alone! Take this | |
| sudo su | |
| # Update | |
| apt-get update | |
| apt-get upgrade | |
| # Install Apache2 | |
| apt-get install -y apache2 |
| wpuser='exampleuser' | |
| clear | |
| echo "=================================================================" | |
| echo "Awesome WordPress Installer!!" | |
| echo "=================================================================" | |
| # accept user input for the database name |
| #!/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 |
| #!/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' |
| #!/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 |
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