Skip to content

Instantly share code, notes, and snippets.

@paolooo
paolooo / ionic-vue--picker.js
Last active August 12, 2019 12:45
ionic/vue picker
<script>
export default {
data() {
return {
pickerController: null
};
},
mounted() {
this.pickerController = document.querySelector('ion-picker-controller');
@paolooo
paolooo / gist:f6f41b56230b38b20203dacaf7c1eed4
Last active March 22, 2019 02:59
Compiling php 5.5.38 from source in ubuntu bionic guide
# Resources
https://gist.github.com/paolooo/f24d8ad41681c37791dc54b8dc76d921
https://www.crybit.com/20-common-php-compilation-errors-and-fix-unix/
https://www.howtoforge.com/community/threads/problem-with-link.76759/page-2
# Installation
$ wget http://hk1.php.net/get/php-5.5.38.tar.bz2/from/this/mirror -O php-5.5.38.tar.bz2
$ tar jxfv php-5.5.38.tar.bz2
@paolooo
paolooo / install_php55_ubuntu.sh
Created March 21, 2019 10:11 — forked from jniltinho/ install_php55_ubuntu.sh
Install PHP 5.5.38 on Ubuntu 16.04 64Bits
#!/bin/bash
### Install PHP 5.5.38 on Ubuntu 16.04 64Bits
### https://www.howtoforge.com/tutorial/how-to-install-php-5-6-on-ubuntu-16-04/
apt-get -y install build-essential libxml2-dev libxslt1-dev
apt-get -y install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libxml2-dev
apt-get -y install libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev
apt-get -y install libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev
apt-get -y install libfreetype6-dev libkrb5-dev libpq-dev libicu-dev
@paolooo
paolooo / MacOSXSierra:Brew+Apache+Mysql+PHPSwitcher+DNSMasq+SSL.md
Created January 19, 2019 13:16 — forked from andrewstobbe/MacOSXSierra:Brew+Apache+Mysql+PHPSwitcher+DNSMasq+SSL.md
Mac OSX Sierra : Brew Apache + Mysql + PHP Switcher + DNSMasq + SSL

Mac OSX Sierra : Brew Apache + Mysql + PHP Switcher + DNSMasq + SSL 👍

Things I had to do using Homebrew to get my local web dev environment back up and running after migration to OSX Sierra + Xcode 8.1.

Note: I used brew reinstall because I had already installed most of this previously under Yosemite. Probably better ways to do this, but this is what worked for me.

brew doctor

brew tap homebrew/dupes
brew tap homebrew/versions
#!/bin/bash
################################################
# @author Nino Paolo Amarillento #
################################################
# Usage :
#
# $ ./test-read.sh localhost root db_name
################################################
@paolooo
paolooo / service-crew.sh
Created September 29, 2017 01:30
Move imported tables to a tmp dir
$ cat service-crew.sh
#!/bin/bash
################################################
# @author Nino Paolo Amarillento #
################################################
# Usage :
#
# $ ./service-crew.sh localhost root db_name dir
################################################
@paolooo
paolooo / importer-loop.sh
Created September 29, 2017 01:28
Import db tables
#!/bin/bash
################################################
# @author Nino Paolo Amarillento #
################################################
# Usage :
#
# $ ./importer-loop.sh localhost root db_name dir
################################################
@paolooo
paolooo / dump-table-mysql.sh
Created September 29, 2017 01:27
Dump tables
#!/bin/bash
# dump-tables-mysql.sh
# Descr: Dump MySQL table data into separate SQL files for a specified database.
# Usage: Run without args for usage info.
# Author: @Trutane
# Ref: http://stackoverflow.com/q/3669121/138325
# Notes:
# * Script will prompt for password for db access.
# * Output files are compressed and saved in the current working dir, unless DIR is
<?php
final class SampleEvent
{
private $id;
private $Email;
public function __construct(UserId $id, Email $email)
{
$this->name = $name;

Rough Notes about CQRS and ES

Once upon a time…

I once took notes (almost sentence by sentence with not much editing) about the architectural design concepts - Command and Query Responsibility Segregation (CQRS) and Event Sourcing (ES) - from a presentation of Greg Young and published it as a gist (with the times when a given sentence was heard).

I then found other summaries of the talk and the gist has since been growing up. See the revisions to know the changes and where they came from (aka the sources).

It seems inevitable to throw Domain Driven Design (DDD) in to the mix.