Skip to content

Instantly share code, notes, and snippets.

View adamfranco's full-sized avatar

Adam Franco adamfranco

View GitHub Profile
@adamfranco
adamfranco / atom-focus-file-access.log
Last active March 29, 2016 17:50
Log of the file-system access over Samba when focusing the Atom editor on a 3-file project.
lstat("/home/afranco/directory", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/afranco/directory/.git", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/afranco/directory/.git/index", {st_mode=S_IFREG|0664, st_size=346, ...}) = 0
lstat("/home/afranco/directory", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/afranco/directory/.git", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
open("directory/.git", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 36
lstat("directory/.git/index", {st_mode=S_IFREG|0664, st_size=346, ...}) = 0
lstat("/home/afranco/directory", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/afranco/directory/.git", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/afranco/directory/.git/index", {st_mode=S_IFREG|0664, st_size=346, ...}) = 0
@adamfranco
adamfranco / deployerConfigContext.xml
Last active August 29, 2015 14:07
Adam's CAS Ldap authentication section in deployerConfigContext.xml
...
<!-- LDAP Authentication Configuration -->
<bean id="ldapAuthenticationHandler"
class="org.jasig.cas.authentication.LdapAuthenticationHandler"
p:principalIdAttribute="middleburyCollegeUID"
c:authenticator-ref="authenticator">
<property name="principalAttributeMap">
<map>
<!--| This map provides a simple attribute resolution mechanism.
/**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a
* copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
@adamfranco
adamfranco / remove_user_pages.php
Last active August 29, 2015 14:05
remove_user_pages.php (Drupal 7)
<?php
/**
* This is a drush-script for removing the user-pages created by default by
* Monster Menus. It just needs to be run once from the command line to get
* rid of all of the existing pages and make the settings-change to avoid
* the creation of new pages.
*
* drush --user=1 php-script remove_user_pages.php
*
*/