Skip to content

Instantly share code, notes, and snippets.

View vancanhuit's full-sized avatar
🎯
Focusing

Canh Dinh vancanhuit

🎯
Focusing
View GitHub Profile
@vancanhuit
vancanhuit / Vagrantfile-internal-network
Last active January 2, 2021 11:21
Simple vagrant setup with internal network.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "vancanhuit/debian10"
config.vm.base_mac = nil
config.vm.define "node1" do |node|
node.vm.hostname = "node1"
node.vm.network "private_network", ip: "192.168.10.5", virtualbox__intnet: "inet1"

x86-64 Integer Registers

# 64-bit 32-bit 16-bit 8-bit
1 %rax %eax %ax %al Return value
2 %rbx %ebx %bx %bl Callee saved
3 %rcx %ecx %cx %cl 4th argument
4 %rdx %edx %dx %dl 3th argument
5 %rsi %esi %si %sil 2nd argument
6 %rdi %edi %di %dil 1st argument
@vancanhuit
vancanhuit / creating-vagrant-box.md
Last active June 29, 2023 21:34
Creating Vagrant box from scratch with VirtualBox