Skip to content

Instantly share code, notes, and snippets.

View ajacques-quatral's full-sized avatar

André Jacques ajacques-quatral

View GitHub Profile
@ajacques-quatral
ajacques-quatral / mysql-server.sh
Created April 1, 2016 15:22
apt-get Install packages without prompt
# Run apt-get update
# Should be run as root. If not, probably need sudo
debconf-set-selections <<< 'mysql-server mysql-server/root_password password {{yourpassword}}'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password {{yourpassword}}'
apt-get install -y mysql-server
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.101.2"
@ajacques-quatral
ajacques-quatral / Object.class.php
Last active January 1, 2016 05:28
First attempt to manage Attributes like C# property in PHP
<?php
/**
*
* This should be the base class for any other class in a project.
*
* @author ajacques
*
*/
class Object {