Skip to content

Instantly share code, notes, and snippets.

Andriy Drozdyuk drozzy

  • Ottawa, Canada
Block or report user

Report or block drozzy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@drozzy
drozzy / README.md
Last active Mar 7, 2018
Docker Compose example of Logspout and OKLog
View README.md

This is an example of how to automatically log all the messages from docker containers. Logspout listens to containers and automatically routes the logs to OKLog.

To run the example simply issue:

docker-compose up -d

command. The test service here is simply to genereate a "Hello World" message. You would replace this with other services that are in your compose files.

You can browse UI here (there seem to be some issues with UI here, I'm not getting very consistent behavior):

View webhook_post
{
"action": "reopened",
"number": 2,
"pull_request": {
"url": "https://api.github.com/repos/chovencorp/test123/pulls/2",
"id": 75922888,
"html_url": "https://github.com/chovencorp/test123/pull/2",
"diff_url": "https://github.com/chovencorp/test123/pull/2.diff",
"patch_url": "https://github.com/chovencorp/test123/pull/2.patch",
"issue_url": "https://api.github.com/repos/chovencorp/test123/issues/2",
@drozzy
drozzy / README.md
Last active Nov 21, 2018
FMC (http://www.fmc-modeling.org/) compositional and dynamic elements draw.io libraries
View README.md

ABOUT

This is just some stencils I created for myself to draw FMC (http://www.fmc-modeling.org/) diagrams with draw.io.

Here is how they look:

lib_fmc_compositional

lib_fmc_dynamic

@drozzy
drozzy / XYPlorer Scripts.md
Last active Mar 18, 2016
XYPlorer Scripts
View XYPlorer Scripts.md

About

Collection of commandlets to add to XYPlorer catalog. Why? Because you can't right click on catalog items and pick "Open With". For all scripts: pick "Go to Location" and "Single instance".

Gitbash

Will open the current directoy in Git Bash.

run '"C:\Program Files\Git\git-bash.exe"';

@drozzy
drozzy / sample.py
Last active Dec 3, 2015
Event system based on git model
View sample.py
import itertools
from uuid import uuid4
class Event(object):
def __init__(self, id_, value):
self.id_ = id_
self.value = value
class Aggregate(object):
View Self Printing Program
x = ['print "x=", x', 'print "#Hello World"', 'for i in x: print i']
#Hello World
print "x =", x
print "#Hello World"
for i in x: print i
You can’t perform that action at this time.