Skip to content

Instantly share code, notes, and snippets.

View sdasgup3's full-sized avatar
🏊‍♂️
in mid-ocean

Sandeep Dasgupta sdasgup3

🏊‍♂️
in mid-ocean
View GitHub Profile
@sdasgup3
sdasgup3 / libzipplayground.cpp
Created September 28, 2016 17:57
How to use libzip
// Compile:
// g++ libzipplayground.cpp -I<path to libzip include> libarchive-rw.a -lz
#include<iostream>
#include<string>
#include <zip.h>
#include <cstdlib>
using namespace std;
char *readfile(string filename, size_t *size) {
char * buffer;
@ryanchang
ryanchang / lldb_cheat_sheet.md
Last active June 21, 2024 16:23
LLDB Cheat Sheet

LLDB Cheat Sheet

A complete gdb to lldb command map.

Print out

  • Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
  • p - Print primitive type
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2024 08:12
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname