Skip to content

Instantly share code, notes, and snippets.

View rothmichaels's full-sized avatar

Roth Michaels rothmichaels

View GitHub Profile
@agleyzer
agleyzer / gist:7758128
Created December 2, 2013 20:23
my ~/.sbtconfig, works w/ SBT 0.13 and ansi-term
SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx512M -Xss2M"
# this allows sbt to be executed in Emacs terminal
if [[ -n $EMACS ]]; then
echo "Emacs detected, commencing hijacking sequence..."
# to avoid division by zero, with jline 1.0, see https://github.com/sbt/sbt/issues/714
stty columns 80
# avoid fancy colors that comint-mode won't support anyway
@0thernet
0thernet / WWDC2014_IntroToLLDBAndTheSwiftREPL.md
Created June 6, 2014 23:45
WWDC2014_IntroToLLDBAndTheSwiftREPL

Intro To LLDB and the Swift REPL

Sean Callanan

Basic debugging

  • lldb commands
    • ti/ thread info
      • EXC_BAD_INSTRUCTION = CPU doesn't understand an instruction
        • typically used in assertions -> Assertion failure
    • bt / thread backtrace
  • prints all frames on the stack of the current thread
@scien
scien / gist:cc38b2cba28bbbb30054
Last active December 2, 2016 16:05
iMessages Database
How to connect
> sqlite3 ~/Library/Messages/chat.db
Helpful Commands
sqlite> .help
sqlite> .tables
sqlite> .headers off
sqlite> .headers on
sqlite> .mode line
sqlite> .mode list