The procedure below has been tested on a Digital Ocean VM with CentOS 7.4
# Install docker from RHEL’s standard repos
yum install -y docker
#
# We’ll activate the ‘user namespaces’ feature that defends against
| def coalesce(*args): | |
| """Returns the first not None item. Similar to ?? in C#. | |
| It's different from a or b, where false values are invalid. | |
| :param args: list of items for checking | |
| :return the first not None item, or None | |
| """ | |
| return next((arg for arg in args if arg is not None)) |
| ; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
| global start | |
| section .text | |
| start: | |
| push dword msg.len | |
| push dword msg | |
| push dword 1 | |
| mov eax, 4 |