Skip to content

Instantly share code, notes, and snippets.

@endenis
endenis / postgresql_commands
Created September 20, 2014 22:01
Commands for using postgresql on mac os x (installed via brew).
# Commands for using postgresql on mac os x (installed via brew).
# Start postgresql
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
# Status
pg_ctl -D /usr/local/var/postgres status
# Stop postgresql
pg_ctl -D /usr/local/var/postgres stop
@FiloSottile
FiloSottile / 32.asm
Last active November 7, 2024 06:51
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