Skip to content

Instantly share code, notes, and snippets.

View ahromis's full-sized avatar

Andrew Hromis ahromis

View GitHub Profile
@ahromis
ahromis / docker-compose.yml
Last active May 3, 2017 21:37
MySQL HA Sample
version: "3"
services:
mysql1:
image: mysql/mysql-gr:latest
command: --group-replication-group-seeds='mysql2:6606,mysql3:6606' --server-id=1
environment:
MYSQL_ROOT_PASSWORD: aTestPwd
MYSQL_REPLICATION_USER: rpl_user
@ahromis
ahromis / keybase.md
Created September 9, 2016 20:21
Keybase

Keybase proof

I hereby claim:

  • I am ahromis on github.
  • I am ahromis (https://keybase.io/ahromis) on keybase.
  • I have a public key whose fingerprint is C6D5 49FE C677 3D28 2AC3 14ED E50A B261 A179 E674

To claim this, I am signing this object:

@ahromis
ahromis / docker-compose.yml
Last active August 30, 2024 00:30
Gogs docker-compose.yml
version: '2'
services:
postgres:
image: postgres:9.5
restart: always
environment:
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
- "POSTGRES_DB=gogs"
volumes:
@ahromis
ahromis / Dockerfile
Last active August 29, 2015 14:03
logstash-forwarder
FROM ubuntu:12.04
MAINTAINER Andrew Hromis "[email protected]"
RUN apt-get update -q
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy build-essential curl git
RUN curl -s https://go.googlecode.com/files/go1.2.src.tar.gz | tar -v -C /usr/local -xz
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
ENV PATH /usr/local/go/bin:$PATH
RUN git clone git://github.com/elasticsearch/logstash-forwarder.git /opt/logstash-forwarder
# First, enable "Listen for incoming notifications"
# in Growl preferences and set a password
# You might want to use this in an initializer
growl = Growl::GNTP.new 'ip_of_your_mac', 'App name'
growl.password = 'your_password'
# growl.add_notification 'name'
# growl.notify 'name', 'title', 'message'
@ahromis
ahromis / README.md
Last active December 30, 2015 09:28 — forked from keikubo/README.md

Nginx + Unicorn for Rails on Rackhub

Description:

This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.

Installation:

Please make sure that your Gemfile in your rails application includes unicorn.