Skip to content

Instantly share code, notes, and snippets.

View mushfek's full-sized avatar

Mushfekur Rahman mushfek

View GitHub Profile
@mushfek
mushfek / cheat_sheet.txt
Created October 3, 2021 22:07
GDB cheat sheet
GDB commands by function - simple guide
---------------------------------------
More important commands have a (*) by them.
Startup
% gdb -help print startup help, show switches
*% gdb object normal debug
*% gdb object core core debug (must specify core file)
%% gdb object pid attach to running process
% gdb use file command to load object
@mushfek
mushfek / introrx.md
Created January 2, 2017 06:40 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@mushfek
mushfek / workspace.sh
Created January 6, 2016 15:22 — forked from dixson3/workspace.sh
Create and manage a case-sensitive disk-image on OSX. This is great when you have a need to work with case-sensitive repos on a mac.
#!/bin/bash
# where to store the sparse-image
WORKSPACE=~/Documents/workspace.dmg.sparseimage
create() {
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE}
}
detach() {
/* *******************************************
// LICENSE INFORMATION
// The code, "Detecting Smartphones Using PHP"
// by Anthony Hand, is licensed under a Creative Commons
// Attribution 3.0 United States License.
//
// Updated 01 March 2010 by Bryan J Swift
// - Remove un-needed if statements instead just returning the boolean
// inside the if clause
//