Skip to content

Instantly share code, notes, and snippets.

@FiloSottile
FiloSottile / 32.asm
Last active May 16, 2024 19:56
NASM Hello World for x86 and x86_64 Intel Mac OS X (get yourself an updated nasm with brew)
; /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
@dillonkrug
dillonkrug / kick
Last active June 25, 2018 06:54
forever watch file + multiple directories (using a watchIgnore glob)
forever start --uid 'appname' -o app.log -e error.log -a -w --watchIgnore '!{app.js,{src,common,lib}/**}' app
# breaking it down:
#
# --uid 'appname' name the process so we can use `forever stop appname`.
# the quotes are necessary.
#
# -o app.log / -e error.log pipe stdout/stderr to files
#
# -a append to said files