Skip to content

Instantly share code, notes, and snippets.

View bhgraham's full-sized avatar

Benjamin H. Graham bhgraham

View GitHub Profile
@bhgraham
bhgraham / .gitignore
Last active December 12, 2015 00:48 — forked from karmi/.gitignore
.DS_Store
Gemfile.lock
*.pem
node.json
tmp/*
!tmp/.gitignore
@bhgraham
bhgraham / marblemousefix.sh
Created November 12, 2012 18:03
marblemouse fix stupid scrolling/copy paste action
xinput set-button-map "Logitech USB Trackball" 1 8 3 4 5 6 7 2 9
<?php
/**
* This is just a quick hack to get the data directory for a user
*/
// load engine - this assumes the script has been put in the root directory of Elgg
require_once(dirname(__FILE__) . "/engine/start.php");
global $CONFIG;
/**
* Add an item to an Elgg menu
*
* @param string $menu The name of the menu: site, page, userhover, userprofile, groupprofile, or any custom menu
* @param string $id The unique identifier for this menu item. An example is blog:add
* @param string $title The localized title string for this menu item
* @param string $url The URL for this menu item
* @param array $options An associative array of menu options including: tooltip, parent, or custom option.
* tooltip: string that is used as the title element of the link
* parent: the $id of the item's parent