Skip to content

Instantly share code, notes, and snippets.

View benphelps's full-sized avatar
🇺🇦
Slava Ukrayini!

Ben Phelps benphelps

🇺🇦
Slava Ukrayini!
View GitHub Profile
// Byte Searching for OS X
// BenPhelps http://benphelps.me/
#include <stdio.h>
#include <stdlib.h>
#include <mach/mach.h>
unsigned int scanMem(task_t wow, mach_vm_address_t start, mach_msg_type_number_t size, unsigned char *signature, int signature_size)
{
unsigned int buffer_size = 0x100000;
@benphelps
benphelps / _bans.md
Last active January 4, 2016 11:09
Targeted bans

So here are the emails, only two of those accounts had been active in the past year.

blank bans

local AceGUI = LibStub("AceGUI-3.0")
local AceConfig = LibStub("AceConfig-3.0")
local AceConfigDialog = LibStub("AceConfigDialog-3.0")
soapyOptions = {
-- a group, args holds sub groups
cooldowns = {
name = "Cooldowns",
type = "group",
-- single condition
{ "spell", "condition" },
{ "spell", "condition", "target" },
-- multi condition
{ "spell", {
"condition",
"condition",
}},
ProbablyEngine.command.register('soapbox', function(message)
local command, text = msg:match("^(%S*)%s*(.-)$")
-- handle the command here, everything after the first space
-- is inside the text variable
end)
<h1>Listing Classes</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th colspan=3></th>
</tr>
</thead>
<tbody>
<% @klasses.each do |klass| %>
<%= form_for(@spek) do |f| %>
<div class="field">
<%= f.label :klass_id %><br>
<%= f.collection_select :klass_id, Klass.order(:name), :id, :name, include_blank: true %>
</div>
<div class="field">
<%= f.label :name %><br>
<%= f.text_field :name %>
</div>
<div class="actions">
Spell {
target.health < 30 or player.rage >= 20
:track
}
var perlin = perlin || Object.create( null );
perlin.gen = function ( seed ) {
this._table = this._makeTable( 255, seed );
this.octaves = 4;
this.frequency = 0.0075;
this.persistence = 0.7;
};
perlin.gen.prototype = {
var perlin = perlin || Object.create( null );
perlin.gen = function ( seed ) {
this._table = perlin.gen.makeTable( 255, seed );
this.octaves = 5.0;
this.frequency = 0.02;
this.persistence = 0.5;
};
perlin.gen.makeTable = function ( size, seed ) {