Skip to content

Instantly share code, notes, and snippets.

View freemanlutsk's full-sized avatar
🇺🇦
https://stand-with-ukraine.pp.ua/

Yurii Ivanovskyi freemanlutsk

🇺🇦
https://stand-with-ukraine.pp.ua/
View GitHub Profile
- name: Create a kafka docker container
docker_container:
name: "kafka_docker"
image: wurstmeister/kafka:2.11-0.11.0.2
detach: True
network_mode: host
#command: sh -c 'while sleep 3600; do :; done'
env:
KAFKA_BROKER_ID: 1
KAFKA_ADVERTISED_LISTENERS: INSIDE://localhost:9092,OUTSIDE://kafka1-int-dev.xxx.com:9091
@freemanlutsk
freemanlutsk / worklog_jira.sh
Last active January 31, 2018 20:41
bash worklog_jira.sh logfile.csv YOUR_PASSWORD
#!/bin/bash
USER="freemanlutsk"
PASSWORD=$2
# Loading data
# bash worklog_jira.sh logfile.csv <your password>
# Don't use empty lines in logfile.csv.
#!/bin/bash
# Use https://ticket.appodeal.com/my/account for getting API key (on the right side "API access key")
API_KEY="XXX"
TICKETS_LINK="https://ticket.XXX.com/time_entries.json"
# Loading data
# bash ticket.sh logfile.csv
# Don't use empty lines in logfile.csv.
@freemanlutsk
freemanlutsk / mongodb.xml
Created May 8, 2012 10:18
MongoDB Zabbix Mikoomi Temlate
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export version="1.0" date="08.05.12" time="11.37">
<hosts>
<host name="Template_MongoDB">
<proxy_hostid>0</proxy_hostid>
<useip>1</useip>
<dns></dns>
<ip>127.0.0.1</ip>
<port>10050</port>
<status>3</status>
@freemanlutsk
freemanlutsk / mikoomi-mongodb-plugin.php
Created May 8, 2012 10:16
Changed Mikoomi PHP file for MongoDB plugin
<?php
/**********************************************************************
Mikoomi MIT License
**********************************************************************
Copyright (c) 2011 by Jayesh Thakrar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights