Skip to content

Instantly share code, notes, and snippets.


Adam Fendley gravitylow

View GitHub Profile
gravitylow /
Created Sep 5, 2017
Using gdb for Eclipse CDT debugging

macOS no longer includes gdb (the GNU debugger) by default, so you must install it yourself.

If you don't already have it, install homebrew, the package manager for macOS, using Terminal: /usr/bin/ruby -e "$(curl -fsSL"

Use homebrew to install gdb: brew install gdb

You now need to codesign gdb to allow it the extra permissions it needs to run.

gravitylow /
Last active Jun 19, 2022 — forked from hlissner/
Codesign gdb on macOS

If you are getting this in gdb on macOS while trying to run a program:

Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))
  1. Open Keychain Access
  2. In menu, open Keychain Access > Certificate Assistant > Create a certificate
  3. Give it a name (e.g. gdbc)
gravitylow / cnu.geojson
Last active Aug 29, 2015
DiningBuddy GeoJSON file
View cnu.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am gravitylow on github.
  • I am gravity ( on keybase.
  • I have a public key whose fingerprint is D2A0 85FC F4E2 039E 5BB3 EB76 0222 0DAC 94B1 66E2

To claim this, I am signing this object:

View gist:66f1d7a0feb0f5767d7a
1404077692|Michael Torres|A|/mamifsidtect-t3/
1404422933| Plugin Contest|A|/devromc-t3/.gitignore
1404422933| Plugin Contest|A|/devromc-t3/pom.xml
1404422933| Plugin Contest|A|/devromc-t3/
1404422933| Plugin Contest|A|/devromc-t3/src/main/java/com/tenjava/entries/DevRoMc/t3/
1404422933| Plugin Contest|A|/devromc-t3/src/main/resources/plugin.yml
1404422984| Plugin Contest|A|/slipcor-t2/.gitignore
1404422984| Plugin Contest|A|/slipcor-t2/pom.xml
1404422984| Plugin Contest|A|/slipcor-t2/
1404422984| Plugin Contest|A|/slipcor-t2/src/main/java/com/tenjava/entries/slipcor/t2/
View gist:4c07b9053ca5b337f50e
1405123200|07/12/14 12:00am UTC: Contest begins with Timeslot 1
1405155600|07/12/14 9:00am UTC: Timeslot 2 begins
1405159200|07/12/14 10:00am UTC: Timeslot 1 ends
1405173600|07/12/14 2:00pm UTC: Timeslot 3 begins
1405191600|07/12/14 7:00pm UTC: Timeslot 2 ends
1405209600|07/13/14 12:00am UTC: Contest ends with Timeslot 3
gravitylow /
Last active Aug 29, 2015
Ten.Java Gource Creator
# I'm not a python developer
import json
import urllib
import urllib2
from subprocess import call
url = "";
devnull = open('/dev/null', 'w')
View gist:1f60b06236bab3acd8ff
View gist:8760554
// Not production code yet. Still experimental and needs a lot of work.
package net.gravitydevelopment.anticheat.util;
import net.gravitydevelopment.anticheat.AntiCheat;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
View gist:8598419
# AntiCheat language file
# Please report any bugs:
- '&player has just entered the &group hack group.'
- '&player''s last failed check was: &check.'
- 'Type ''/anticheat report &player'' for more information.'
- '[AntiCheat] Hacking is not permitted.'
- '[AntiCheat] If you continue to hack, action will be taken.'