A complete gdb to lldb command map.
- Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
- p - Print primitive type
| # pulled from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/ | |
| # expanded via http://superuser.com/questions/690060/how-to-enable-network-with-a-raspberry-pi-emulated-on-qemu | |
| # tested with 2015-02-16-raspbian-wheezy.zip on OSX Mavericks | |
| # OSX terminal | |
| brew install qemu | |
| # kernel-qemu is a linux kernel compiled with ARM1176 support. | |
| # learn more here: http://xecdesign.com/compiling-a-kernel/ | |
| curl -OL http://xecdesign.com/downloads/linux-qemu/kernel-qemu | |
| curl -o raspbian_latest.zip -L http://downloads.raspberrypi.org/raspbian_latest |
| $ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
A complete gdb to lldb command map.
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
| #include "Agui/Clipboard/XClipboard.hpp" | |
| #include <X11/Xatom.h> | |
| #include <stdio.h> | |
| #include <sys/select.h> | |
| #include <unistd.h> | |
| #include <assert.h> | |
| #include <algorithm> | |
| #include <iostream> | |
| // Most of the code here is adapted from the example at |
| "use strict" | |
| var Promise = function () { | |
| this.state = 'pending' | |
| this.thenables = [] | |
| } | |
| Promise.prototype.resolve = function (value) { | |
| if (this.state != 'pending') return | |
| this.state = 'fulfilled' |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <signal.h> | |
| #include <netdb.h> | |
| #include <string.h> | |
| #include <netinet/in.h> | |
| #include <X11/X.h> | |
| #include <X11/Xlib.h> | |
| #include <X11/Intrinsic.h> | |
| #include <X11/StringDefs.h> |
| -server | |
| -Xms2048m | |
| -Xmx2048m | |
| -XX:NewSize=512m | |
| -XX:MaxNewSize=512m | |
| -XX:PermSize=512m | |
| -XX:MaxPermSize=512m | |
| -XX:+UseParNewGC | |
| -XX:ParallelGCThreads=4 | |
| -XX:MaxTenuringThreshold=1 |
| // g++ -std=c++0x x11clipboard.cpp -lX11 | |
| // http://tools.suckless.org/sselp | |
| #include <X11/Xlib.h> | |
| #include <X11/Xatom.h> | |
| #include <string> | |
| #include <climits> | |
| std::string getClipboardText() { | |
| std::string result; | |
| Display* d = XOpenDisplay(nullptr); |
| haiku = -> | |
| adjs = [ | |
| "autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", | |
| "summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", | |
| "patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", | |
| "billowing", "broken", "cold", "damp", "falling", "frosty", "green", | |
| "long", "late", "lingering", "bold", "little", "morning", "muddy", "old", | |
| "red", "rough", "still", "small", "sparkling", "throbbing", "shy", | |
| "wandering", "withered", "wild", "black", "young", "holy", "solitary", | |
| "fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", |