Skip to content

Instantly share code, notes, and snippets.

View nsteinmetz's full-sized avatar

Nicolas Steinmetz nsteinmetz

View GitHub Profile
@nsteinmetz
nsteinmetz / user-data.yaml
Last active January 12, 2018 15:18
hypriot 1.7.1+ with cloud-init and static ip management
write_files:
- content: |
allow-hotplug eth0
iface eth0 inet static
address 10.252.0.101
netmask 255.255.255.0
gateway 10.252.0.1
dns-nameservers 80.67.169.12 80.67.169.40
path: /etc/network/interfaces.d/eth0
@nsteinmetz
nsteinmetz / gist:f71c29953d57fea09ae2
Created November 6, 2014 12:41
eZ Publish, Composer, Zeta Components
[nsteinmetz@centos6 ezpublish]$ php55 composer.phar update --no-dev --prefer-dist
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- zetacomponents/mvc-authentication-tiein dev-master requires zetacomponents/mvc-tools ~1.1 -> no matching package found.
- zetacomponents/mvc-authentication-tiein dev-master requires zetacomponents/mvc-tools ~1.1 -> no matching package found.
- Installation request for zetacomponents/mvc-authentication-tiein dev-master#9bae3a7 -> satisfiable by zetacomponents/mvc-authentication-tiein[dev-master].
root@cubie:/tmp# apt-get build-dep php5 php5-fpm php5-pgsql php5-cli php5-gd php5-imagick php5-mcrypt php5-mhash
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libc-client2007e-dev' instead of 'libc-client-dev'
Note, selecting 'libjpeg8-dev' instead of 'libjpeg-dev'
Note, selecting 'libpng12-dev' instead of 'libpng-dev'
The following packages have unmet dependencies:
libcurl4-openssl-dev : Depends: librtmp-dev but it is not going to be installed
Depends: libssh2-1-dev but it is not going to be installed
@nsteinmetz
nsteinmetz / nuxeo-initscript-rhel
Created September 5, 2014 13:32
Initscript for Nuxeo under RHEL/CentOS
#!/bin/sh
#
# <daemonname> <summary>
#
# chkconfig: 2345 20 80
# description: Manage Nuxeo Platform service
### BEGIN INIT INFO
# Provides: nuxeo
# Required-Start: $local_fs $network $syslog
@nsteinmetz
nsteinmetz / gist:9123274
Created February 20, 2014 21:12
Gunicorn + Django + Supervisord
[program:myDjangoApp]
directory=/path/to/django/project
command=/usr/bin/gunicorn --workers=4 project.wsgi:application
user=john
umask=022
autostart=True
autorestart=True
redirect_stderr=True