Skip to content

Instantly share code, notes, and snippets.

View artsok's full-sized avatar

Artem Sokovets artsok

  • Emirates Airline/ex. Sberbank Technologies JSC.
  • Dubai
View GitHub Profile
Understanding AST
AST Tree
RooT
-sibling
|-child
|-sibling
|-sibling
-Sibling
@artsok
artsok / diff-changed-lines.sh
Created October 4, 2023 08:38 — forked from mdawaffe/diff-changed-lines.sh
Get line numbers of changed lines - git, diff - Full of bashisms
#!/bin/bash
# Call like you would `diff`
# `./diff-changed-lines.sh old new`
# Outputs the lines numbers of the new file
# that are not present in the old file.
# That is, outputs line numbers for new lines and changed lines
# and does not output line numbers deleted or unchanged lines.
@artsok
artsok / Jenkinsfile
Created November 18, 2020 11:52 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@artsok
artsok / influxdb.md
Created September 29, 2019 13:12 — forked from dariubs/influxdb.md
influxdb cheatsheet
@artsok
artsok / kubernetes_and_docker_install_xenial.sh
Created December 25, 2018 20:41 — forked from heckj/kubernetes_and_docker_install_xenial.sh
Install Docker 1.12.6 on Ubuntu Xenial 16.04.4 x64
# Install Docker on Xenial 16.04.1 x64
# Ref https://docs.docker.com/engine/installation/linux/ubuntulinux/
# No interactive for now.
export DEBIAN_FRONTEND=noninteractive
# Update your APT package index.
sudo apt-get -y update
# Update package information, ensure that APT works with the https method, and that CA certificates are installed.
sudo apt-get -y install apt-transport-https ca-certificates
# Add the new GPG key.
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D