Skip to content

Instantly share code, notes, and snippets.

View micahw156's full-sized avatar

Micah Webner micahw156

View GitHub Profile
@micahw156
micahw156 / Preferences.sublime-settings
Created December 6, 2013 17:51
My most recent Preferences.sublime-settings
{
"color_scheme": "Packages/Theme - Flatland/Flatland Copy.tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"find_selected_text": true,
"font_options":
[
"subpixel_antialias"
@micahw156
micahw156 / local.settings.php
Created October 25, 2013 14:19
Drupal 7 settings.php hacks for operating behind NetIQ Access Manager
<?php
/**
* Base URL (optional).
*
* If Drupal is generating incorrect URLs on your site, which could
* be in HTML headers (links to CSS and JS files) or visible links on pages
* (such as in menus), fill in the absolute URL to your Drupal installation.
*
* We have to set $base_url if we're behind a Novell Access Manager proxy.
@micahw156
micahw156 / mysite.module
Created January 4, 2013 23:56
Add node delete links to tabs and context menus in Drupal 7.
/**
* Implements hook_menu_alter().
*/
function mysite_menu_alter(&$items) {
$items['node/%node/delete']['type'] = MENU_LOCAL_TASK;
$items['node/%node/delete']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;
}
@micahw156
micahw156 / gist:3137389
Created July 18, 2012 16:47
Semantically Obtuse Markup. Yes, this is real...
<!-- using this css -->
<style type="text/css">
#footer ul {
list-style: none;
text-align: center;
}
#footer li {
display: inline;
@micahw156
micahw156 / matt-sso-notes.md
Created April 26, 2012 18:46
Notes from Matt Weisberg's talk on single sign-on

Matt's Talk on Single Sign-on

Proxy Based Form Fill using Access Gateway

  • Describe auth via HTML forms.
  • treat form page as protected resource.
  • access gateway acts as proxy
  • auto-submit form-fill