Skip to content

Instantly share code, notes, and snippets.

@cristianorsolin
cristianorsolin / implementing-a-soap-api-with-php.md
Created July 18, 2018 11:58
Implementing a SOAP API with PHP 7
@cristianorsolin
cristianorsolin / dovecot-10-auth.conf
Created June 12, 2018 18:54 — forked from barryo/dovecot-10-auth.conf
Configuration Files for ViMbAdmin on Ubuntu 13.10 with Dovecot and Postfix - referenced from https://github.com/opensolutions/ViMbAdmin3/wiki/Mail-System-Install-on-Ubuntu
auth_mechanisms = plain login
!include auth-sql.conf.ext
@cristianorsolin
cristianorsolin / docker-compose.yml
Created May 3, 2018 13:35
docker compose lamp stack
web:
image: orsolin/amazonlinux-apache-php
ports:
- "80:80"
links:
- db
- mailcatcher
volumes:
- .:/app
environment:
@cristianorsolin
cristianorsolin / README.md
Created February 22, 2018 14:05 — forked from sysadmiral/README.md
Obtaining Amazon SES SMTP Credentials by Converting AWS Credentials

If you have an IAM user that you set up using the IAM interface, you need to do the following two steps to enable the user to send email using the Amazon SES SMTP interface:

  • Derive the user's SMTP credentials from their AWS credentials using the algorithm provided in this section. A user's SMTP username is the same as their AWS Access Key ID, so you just need to generate the SMTP password.

  • Apply the following policy to the IAM user:

{
  "Version": "2012-10-17",
 "Statement": [
#!/bin/bash
yum -y install httpd php php-common php-mysql php-gd php-mbstring php-xml php-xmlrpc
chkconfig httpd on
/etc/init.d/httpd start
cd /tmp
wget http://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
mv wordpress/* /var/www/html/
chown -R apache:apache /var/www/html/