Skip to content

Instantly share code, notes, and snippets.

View sseidenthal's full-sized avatar

Steve Seidenthal sseidenthal

  • Luxembourg, Germany
View GitHub Profile
@sseidenthal
sseidenthal / module.config.php
Created June 9, 2013 08:27
Howto tell Doctrine2 in ZendFramework2 where are my Yaml or Xml Entities
'doctrine' => array(
'driver' => array(
'application_entity' => array(
/* Yaml Driver Example */
'class' => 'Doctrine\ORM\Mapping\Driver\YamlDriver',
'paths' => __DIR__ . '/yml/application'
/* Xml Driver Example */
//'class' => 'Doctrine\ORM\Mapping\Driver\XmlDriver',
@sseidenthal
sseidenthal / vhost.conf
Created September 7, 2016 15:02
NGINX, Symfony 2 with SimpleSamlPhp as Alias
server {
server_name default;
root /var/www/symfony/web;
client_max_body_size 100M;
fastcgi_read_timeout 1800;
location / {
@sseidenthal
sseidenthal / php_on_mac.txt
Last active September 14, 2018 17:43
Install multiple versions off PHP on a Mac
# you can repeat this for any version of PHP available in brew
# adding needed taps
brew tap homebrew/php
brew tap homebrew/homebrew-php
# install php56 + mongodb and unlinking it
brew install php56
brew install homebrew/php/php56-mongodb
brew unlink php56
@sseidenthal
sseidenthal / docker-machine.sh
Last active November 13, 2016 18:16
create docker machine with some extra specs for vmware fusion
#https://docs.docker.com/machine/drivers/vm-fusion/
#vmwarefusion
docker-machine create --driver vmwarefusion \
--vmwarefusion-cpu-count 4 \
--vmwarefusion-disk-size 200000 \
--vmwarefusion-memory-size 4096 \
default
#virtualbox
docker-machine create --driver virtualbox \
#docker install on ubuntu 16.04 LTS
sudo apt update
sudo apt install apt-transport-https ca-certificates
sudo sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt upgrade
sudo apt-cache policy docker-engine
sudo apt install linux-image-extra-$(uname -r) linux-image-extra-virtual
#!/bin/bash
while getopts h:u:s:d: option
do
case "${option}"
in
h) HOST=${OPTARG};;
u) USER=${OPTARG};;
s) SOURCE=${OPTARG};;
d) DESTINATION=$OPTARG;;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>my_fancy_launchd_job</string>
<key>LowPriorityIO</key>
<false/>
<key>Nice</key>
<integer>0</integer>
#Additionally, for those blessed with MySQL >= 5.1.12:
Execute SET GLOBAL log_output = 'TABLE';
Execute SET GLOBAL general_log = 'ON';
Take a look at the table mysql.general_log
@sseidenthal
sseidenthal / Makefile
Last active May 30, 2017 18:45
This Makefile will help you install mongodb or mariadb on an ubuntu 16.04 LTS
#description :This Makefile will help you installing mongodb or mariadb on an ubuntu 16.04 LTS machine. The goal is to add more targets which i personaly need
#author :Steve Seidenthal
#date :2017-05-25
#version :0.1
#usage :make, then follow the instructions
#notes :before using make sure you have "make" and "build-essential" installed
CURRENT_RELEASE := $(shell lsb_release -sr)
hello:
@sseidenthal
sseidenthal / entrypoint.sh
Last active February 27, 2019 15:28
This is a custom entrypoint for an php:7.1-apache image, it might work in a similar way with other base images but it has not been tested # # what it does # - it parses a parameters file *CONFIG_FILE* of your project an looks for variable placeholders # - it checks if any _FILE appended environment variables exist, if so it puts the content of t…
#!/bin/bash
# Maintainer Steve Seidenthal <steve.seidenthal@gmail.com>
#
# This is a custom entrypoint for an php:7.1-apache image, it might work in a similar way with other base images but it
# has not been tested
#
# what it does
# - it parses a parameters file *CONFIG_FILE* of your project an looks for variable placeholders
# - it checks if any _FILE appended environment variables exist, if so it puts the content of the file in the variable
# - it makes sure all needed variables (as defined in CONFIG_FILE) exist