Skip to content

Instantly share code, notes, and snippets.

View gravitylow's full-sized avatar

Adam Fendley gravitylow

View GitHub Profile
@gravitylow
gravitylow / codesign_gdb.md
Last active April 16, 2024 02:18 — 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 / 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 / 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.'
@gravitylow
gravitylow / gist:8508753
Created January 19, 2014 18:18
AntiCheat 2.0 Changelog
API
- Added Groups instead of levels
Logging
- API logs more info to files
- File and console toggles available via command
- More details when kicking
- More debug information
- Notice permission
Fixes
- Respect potions
@gravitylow
gravitylow / enterprise.yml
Last active December 23, 2015 14:08
AntiCheat Enterprise Configuration File
# AntiCheat configuration file
# Please report any bugs: http://dev.bukkit.org/server-mods/anticheat/
# Server-specific settings
server:
# An identifiable name for this server
name: 'server-1'
# Database settings
database:
@gravitylow
gravitylow / things-not-to-do-in-irc
Last active December 18, 2015 22:49
Things not to do in IRC
1) Not use complete sentences.
2) Use the enter button as a period.
3) Use txt spch.
4) Use away messages (especially auto-away).
5) Ping people who don't need your attention.
6) Make 'your mom' jokes.
@gravitylow
gravitylow / BlockLocation
Created May 1, 2013 01:23
BlockLocation barebones
public class BlockLocation {
private double x;
private double y;
private double z;
public BlockLocation(Block block) {
x = block.getLocation().getX();
y = block.getLocation().getY();
z = block.getLocation().getZ();
import net.minecraft.server.v1_4_R1.CrashReport;
import net.minecraft.server.v1_4_R1.MinecraftServer;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.v1_4_R1.CraftServer;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginLogger;
import org.bukkit.plugin.java.JavaPlugin;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
@gravitylow
gravitylow / lang.yml
Created March 1, 2013 22:26
AntiCheat: English Lang.yml
# AntiCheat language file
# Please report any bugs: http://dev.bukkit.org/server-mods/anticheat/
alert:
- '&player has just entered the &level hack level.'
- '&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.'
@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.