create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| application: you-app-name-here | |
| version: 1 | |
| runtime: python | |
| api_version: 1 | |
| default_expiration: "30d" | |
| handlers: | |
| - url: /(.*\.(appcache|manifest)) | |
| mime_type: text/cache-manifest |
| <?php | |
| require __DIR__.'/silex.phar'; | |
| $app = new Silex\Application(); | |
| $app->register(new Silex\Extension\TranslationExtension(), array( | |
| 'translation.class_path' => __DIR__.'/vendor', | |
| )); |
| <?php | |
| require_once __DIR__ . '/../lib/vendor/Silex/silex.phar'; | |
| $app = new Silex\Application(); | |
| $app['debug'] = true; | |
| // Registering Symfony\Yaml and Symfony\Config | |
| $app['autoloader']->registerNamespace('Symfony', __DIR__.'/../lib/vendor/symfony/src'); |
| This example expects to have d3.min.js and d3.layout.min.js in the same directory as pie.js and pie_serv.js. | |
| Run with node pie_serv.js |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # Bash completion support for Fossil. | |
| # It is based on the Git Bash completion file. | |
| # It best fits in /etc/bash_completion.d/fossil | |
| # | |
| # Copyright (C) 2011 Vivien Didelot <[email protected]> | |
| # This file is distributed under the same terms as the license of the Fossil project. | |
| # | |
| # This file contains routine to change your PS1, and helper functions. | |
| # | |
| # For instance, add those options to your bashrc to customize PS1: |
| <?php | |
| namespace Acme\Demo; | |
| // some configuration | |
| $all_channels = true; | |
| $bot_name = 'TS3 BOT'; | |
| $msg = 'Hello World!'; | |
| $url = vsprintf('serverquery://username:[email protected]:10011/?server_port=9987&nickname=%s', array( |
| // PDO Connection to MySQL | |
| $conn = new PDO('mysql:host=localhost;dbname=yourdbname', 'username', 'password'); | |
| // PDO Connection to PostgreSQL | |
| $conn = new PDO('pgsql:host=localhost;dbname=yourdbname', 'username', 'password'); | |
| // A quick Select Query with For Loop | |
| foreach ($conn->query("SELECT * FROM profile") as $row) | |
| echo $row['fullname']; |
#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