This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jmp $ | |
times 510 - ($ - $$) db 0 | |
dw 0xAA55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<match **> | |
@type copy | |
<store> | |
@type gelf | |
host "#{ENV['GELF_HOST']}" | |
port "#{ENV['GELF_PORT']}" | |
protocol "#{ENV['GELF_PROTOCOL']}" | |
<buffer> | |
flush_at_shutdown true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<match **> | |
@type copy | |
<store> | |
@type gelf | |
host "#{ENV['GELF_HOST']}" | |
port "#{ENV['GELF_PORT']}" | |
protocol "#{ENV['GELF_PROTOCOL']}" | |
</store> | |
</match> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern void loader_main() { | |
for (int i = 0; i < 26; i++) { | |
char c = 0x41 + i; | |
asm( | |
"mov %0, %%al;" | |
"mov $0x0E, %%ah;" | |
"int $0x10;" | |
: | |
: "r" (c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global _start | |
[bits 16] | |
[extern loader_main] | |
_start: | |
call loader_main | |
jmp $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[org 0x7C00] | |
[bits 16] | |
KERNEL_OFFSET equ 0x1000 | |
mov [BOOT_DRIVE], dl | |
call load_boot | |
call execute_boot | |
load_boot: |