Skip to content

Instantly share code, notes, and snippets.

👀
Looking for a job (contract/sponsorship contribution)

Eugene Obrezkov ghaiklor

👀
Looking for a job (contract/sponsorship contribution)
Block or report user

Report or block ghaiklor

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
@ghaiklor
ghaiklor / output.txt
Created Jul 30, 2019
Wix Technical Task (Jul 2019)
View output.txt
$ tsc --target es6 --module commonjs wix.ts && node wix.js
---serialize---
13,A,9,12;9,B,5,8;5,C,0,4;0,0,0,0;4,E,1,2;1,0,0,0;2,0,0,0;8,P,5,6;5,0,0,0;6,0,0,0;12,G,9,10;9,0,0,0;10,0,0,0
---deserialize---
BinaryTree {
root: BinaryNode {
value: 'A',
left: BinaryNode { value: 'B', left: [BinaryNode], right: [BinaryNode] },
right: BinaryNode { value: 'G', left: null, right: null }
View say-hello.wat
(module
(type $t0 (func))
(type $t1 (func (param i32 i32) (result i32)))
(import "main" "sayHello" (func $main.sayHello (type $t0)))
(func $add (export "add") (type $t1) (param $p0 i32) (param $p1 i32) (result i32)
get_local $p0
get_local $p1
i32.add)
(func $f2 (type $t0)
call $main.sayHello)
View fluentd-match.conf
<match **>
@type copy
<store>
@type gelf
host "#{ENV['GELF_HOST']}"
port "#{ENV['GELF_PORT']}"
protocol "#{ENV['GELF_PROTOCOL']}"
<buffer>
flush_at_shutdown true
View fluentd-match.conf
<match **>
@type copy
<store>
@type gelf
host "#{ENV['GELF_HOST']}"
port "#{ENV['GELF_PORT']}"
protocol "#{ENV['GELF_PROTOCOL']}"
</store>
</match>
View fluentd-source.conf
<source>
@type tail
tag kubernetes.containers.*
path /var/log/containers/*.log
  refresh_interval 2
  read_from_head true
  pos_file /var/log/fluentd-containers.log.pos
  rotate_wait 5
  enable_watch_timer true
  enable_stat_watcher false
@ghaiklor
ghaiklor / cloudSettings
Last active Jun 20, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-06-20T16:17:16.475Z","extensionVersion":"v3.2.9"}
@ghaiklor
ghaiklor / config.yml
Created Aug 4, 2018
CircleCI configuration for mono-repository
View config.yml
version: 2
aliases:
- &docker_environment
- image: circleci/node:8-stretch
- image: circleci/mongo:3.6
- image: circleci/rabbitmq:3.6.6
- &checkout
path: ~/elasticio
- &restore_cache_dependencies
name: "Restoring node_modules from the cache"
@ghaiklor
ghaiklor / math-parser.js
Last active Jan 14, 2018
The simplest parser for mathematical expressions with explanation
View math-parser.js
/**
* https://repl.it/@ghaiklor/The-simplest-math-parser
*
* What are we going to do?
* We are going to implement the simplest parser for mathematical expressions with parenthesis and precedence.
*
* Why?
* Just for get knowing more about software development.
*
* What will be the result of the parser?
@ghaiklor
ghaiklor / build.sh
Last active Oct 30, 2017
Script for getting all the sources and building second stage boot loader
View build.sh
# Install pre-requisites
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y build-essential
sudo apt-get install -y nasm
sudo apt-get install -y qemu
# Download the sources
curl https://gist.githubusercontent.com/ghaiklor/3ef5a07b3de1beb964555183dee18621/raw/59cb9ba42fd71631b0bc0c55e2a27c38f0e8ffaf/boot.asm > boot.asm
curl https://gist.githubusercontent.com/ghaiklor/d63e5183773770e07854b5d799ef3a44/raw/fcdc0652fa1c39c5e76379e1bd58ac49922feeeb/loader.asm > loader.asm
You can’t perform that action at this time.