Skip to content

Instantly share code, notes, and snippets.

View etolbakov's full-sized avatar
:octocat:

Eugene Tolbakov etolbakov

:octocat:
View GitHub Profile
@etolbakov
etolbakov / asdf-installation.md
Last active February 9, 2023 13:17
a reminder for asdf installation (using ZSH shell)
  1. Navigate to the getting-started and checkout the latest asdf:
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.1
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
$ source ~/.zshrc
  1. Check plugins & versions
#!/bin/bash
applicationName=$1
deploymentGroupName=$2
currentDeploymentId=$(aws deploy list-deployments --application-name $applicationName --deployment-group-name $deploymentGroupName --max-items 10 --include-only-statuses "Succeeded" --output json | jq --raw-output '.deployments[0]' )
previousRevisionSha=$(aws deploy get-deployment --deployment-id $currentDeploymentId --output json | jq --raw-output '.deploymentInfo.previousRevision.string.sha256')
result=$(aws deploy create-deployment --application-name $applicationName --deployment-group-name $applicationName --deployment-config-name CodeDeployDefault.ECSAllAtOnce --description "Rollback to the previous deployment" --revision revisionType=String,string="{sha256=${previousRevisionSha}}" --output json)
echo Deployment started: $result
@etolbakov
etolbakov / Dockerfile
Created May 9, 2021 15:05
Schema-registry Arm64 image
FROM kymeric/cp-base
ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
ARG BUILD_NUMBER=-1
LABEL io.confluent.docker.build.number=$BUILD_NUMBER
MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true
time count
2015/01/01 01:00:00 2
2015/01/01 04:00:00 35
2015/01/01 05:00:00 1
2015/01/01 08:00:00 1
2015/01/01 09:00:00 35
2015/01/01 11:00:00 1
2015/01/01 14:00:00 35
2015/01/01 19:00:00 1
2015/01/01 22:00:00 1