Skip to content

Instantly share code, notes, and snippets.

View nmix's full-sized avatar

Nikolay Mikhaylichenko nmix

  • Krasnodar, Russian Federation
View GitHub Profile
FROM python:2.7
MAINTAINER Nik Mikhaylichenko <nn.mikh@yandex.ru>
# Install Deps
RUN apt-get update -y -qq && \
apt-get install -y python-pip python2.7-dev libxext-dev python-qt4 qt4-dev-tools build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
@nmix
nmix / auto-sd
Last active January 10, 2017 06:57
nginx subdomain configuration for multiple rails apps
# source: http://server-tuning.info/nginx/auto-subdomains-nginx.html
server {
listen 80;
server_name example.com *.example.com;
passenger_enabled on;
rails_env production;
root /path/to/project/$subdomain/current/public;
set $subdomain "";
if ($host ~* ^([a-z0-9-\.]+)\.zstaging.xyz$) {
set $subdomain $1;
@nmix
nmix / docker-remote-config.md
Last active August 22, 2023 18:45
Управление докером на удаленной машине