Skip to content

Instantly share code, notes, and snippets.

@nicoster
nicoster / screenres.swift
Last active November 28, 2022 02:41 — forked from jminor/screenres.swift
Change your Mac's screen resolution from the command line.
#!/usr/bin/swift
// fix build errors with Swift 5.
// Known issues: some resolution is not HiDPI
import Foundation
var shouldPrintUsage = true
var shouldPrintModes = true
var shouldSwitchMode = false
@nicoster
nicoster / beam.md
Created February 26, 2016 04:24 — forked from studzien/beam.md
An example analysis of a BEAM process core dump

This post shows an example of a BEAM process' core dump analysis to backtrack what was the root cause of its crash.

Start gdb by pointing out the BEAM executable that generated the core dump and the core dump file. Optionally, you can provide a directory with the VM's source code:

gdb erts-6.3/bin/beam.smp -core core.14747 -d /home/azureuser/otp_src_17.4/erts/emulator

gdb should tell you what caused the crash and where in code this happened: