Skip to content

Instantly share code, notes, and snippets.

View gravitylow's full-sized avatar

Adam Fendley gravitylow

View GitHub Profile
@gravitylow
gravitylow / eclipse_gdb.md
Created September 5, 2017 15:29
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 https://raw.githubusercontent.com/Homebrew/install/master/install)"

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
gravitylow / codesign_gdb.md
Last active October 23, 2024 09:17 — forked from hlissner/codesign_gdb.md
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
gravitylow / cnu.geojson
Last active August 29, 2015 14:10
DiningBuddy GeoJSON file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gravitylow
gravitylow / keybase.md
Created October 1, 2014 04:24
keybase.md

Keybase proof

I hereby claim:

  • I am gravitylow on github.
  • I am gravity (https://keybase.io/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:

@gravitylow
gravitylow / gist:66f1d7a0feb0f5767d7a
Created July 13, 2014 00:52
Ten.Java Gource Combined
1404077692|Michael Torres|A|/mamifsidtect-t3/README.md
1404422933|ten.java Plugin Contest|A|/devromc-t3/.gitignore
1404422933|ten.java Plugin Contest|A|/devromc-t3/pom.xml
1404422933|ten.java Plugin Contest|A|/devromc-t3/README.md
1404422933|ten.java Plugin Contest|A|/devromc-t3/src/main/java/com/tenjava/entries/DevRoMc/t3/TenJava.java
1404422933|ten.java Plugin Contest|A|/devromc-t3/src/main/resources/plugin.yml
1404422984|ten.java Plugin Contest|A|/slipcor-t2/.gitignore
1404422984|ten.java Plugin Contest|A|/slipcor-t2/pom.xml
1404422984|ten.java Plugin Contest|A|/slipcor-t2/README.md
1404422984|ten.java Plugin Contest|A|/slipcor-t2/src/main/java/com/tenjava/entries/slipcor/t2/TenJava.java
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
gravitylow / tjgource.py
Last active August 29, 2015 14:03
Ten.Java Gource Creator
# I'm not a python developer
import json
import urllib
import urllib2
from subprocess import call
url = "https://tenjava.com/api/participants?repos=1";
devnull = open('/dev/null', 'w')
@gravitylow
gravitylow / gist:1f60b06236bab3acd8ff
Created July 12, 2014 17:57
ten.java repositories
Gater12-t3
Lolmewn-t2
zeusallmighty11-t1
zeusallmighty11-t3
Assult-t2
MylesIsCool-t2
DevRoMc-t3
ase34-t3
evilmidget38-t3
Ribesg-t2
// 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;
@gravitylow
gravitylow / gist:8598419
Created January 24, 2014 14:34
English lang.yml
# AntiCheat language file
# Please report any bugs: https://github.com/gravitylow/AntiCheat/issues
alert:
- '&player has just entered the &group hack group.'
- '&player''s last failed check was: &check.'
- 'Type ''/anticheat report &player'' for more information.'
warning:
player_warning:
- '[AntiCheat] Hacking is not permitted.'
- '[AntiCheat] If you continue to hack, action will be taken.'