Skip to content

Instantly share code, notes, and snippets.

View Atadzhan's full-sized avatar

Atadzhan K Atadzhan

  • Belgrad, Serbia
View GitHub Profile
@mhausenblas
mhausenblas / README.md
Last active August 29, 2024 15:25
Fluent Bit log forwarding to CloudWatch

Set Up Fluent Bit as a DaemonSet to Send Logs to CloudWatch

Create a new 1.13 or 1.14 EKS cluster called container-insights.

Enable IRSA:

eksctl utils associate-iam-oidc-provider \
               --name container-insights \
               --approve
@backroot
backroot / setup-awscli-for-centos6.sh
Last active July 11, 2022 06:44
Setup AWS CLI for CentOS 6
yum update -y nss
yum install -y https://centos6.iuscommunity.org/ius-release.rpm
perl -pi -e "s/enabled\s+=\s+1/enabled = 0/gi" /etc/yum.repos.d/ius.repo
yum install -y --enablerepo=ius python36u python36u-libs python36u-pip
ln -s /usr/bin/python3.6 /usr/bin/python3
ln -s /usr/bin/pip3.6 /usr/bin/pip3
pip3 install awscli --upgrade --user
echo "# PATH for AWS CLI" >> ~/.bashrc
echo "export PATH=~/.local/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
@iDoka
iDoka / install-pip3-on-centos7.md
Last active September 26, 2021 10:27 — forked from diegopacheco/pip3-centos-amazon-linux.md
How to install pip3 on CentOS 7 Linux?

Install pip3 on CentOS 7

CentOS 7 still have Python 2.7 as the default tool. EPEL repository comes up with Python 3. Here’s the way to setup Python 3 and pip3 on CentOS environment.

Type on terminal:

sudo yum install -y python34-setuptools
sudo easy_install-3.4 pip
@chusiang
chusiang / teams-chat-post-for-workflows.sh
Last active October 8, 2025 16:34
Post a message to Microsoft Teams with bash script.
#!/bin/bash
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post-for-workflows.sh
# Modified: 2024-07-22 11:44 (UTC+08:00)
# Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
# - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/
@garunski
garunski / Jenkinsfile
Last active June 2, 2023 18:18
Jenkinsfile with testing and code coverage
#!/usr/bin/groovy
timestamps {
podTemplate(
label: 'jenkins-pipeline',
inheritFrom: 'default',
containers: [
containerTemplate(name: 'chrome', image: 'garunski/alpine-chrome:latest', command: 'cat', ttyEnabled: true)
]
) {
@lilongen
lilongen / deploy-cm-cdh-on-centos7
Last active August 28, 2021 11:36
Centos 7 install/deploy Cloudera Manager and CDH using local repository and CDH local parcel
- prepare work
a. make cm node can ssh to all nodes without password
ssh-genkey, ssh-copy-id
b. hostname mapping
c. mysql server
d. postgresql
e. ntp
systemctl disable chrony
centos7 default enable chrony server, even enable ntpd, cuase chrony started, ntpd will not started
this will cause CDH ntp error, so need to disable chrony.