Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
<!-- THEME DEBUG -->
<!-- CALL: theme('html') -->
<!-- FILE NAME SUGGESTIONS:
* html--front.tpl.php
* html--node.tpl.php
x html.tpl.php
-->
@deekayen
deekayen / dnar.drush.inc
Created December 3, 2014 23:47
Rebuild node access permissions in Drupal 6 using drush.
<?php
/**
* @file
* Drush code to rebuild node access.
*/
/**
* Implementation of hook_drush_command().
*/
@patrickml
patrickml / Template
Created March 3, 2015 00:42
Meteor Joins
<template name="journal">
<div class="nav-block"></div>
<nav class="journal-nav">
<ul>
<li>
<a href="#" data-type="Design">Design</a>
</li>
<li>
<a href="#" data-type="Development">Development</a>
</li>
@q0rban
q0rban / Starter Drush Make
Created July 28, 2010 17:53
Sample Drush Makefile
core = 6.x
projects[pressflow][type] = "core"
projects[pressflow][download][type] = "get"
projects[pressflow][download][url] = "http://lb.cm/pressflow6"
; INSTALL PROFILES
projects[profiler] = 2.0beta1
; DEVELOPMENT
@schacon
schacon / .gitconfig
Created April 11, 2011 21:43
insteadOf example
[url "https://github.com/"]
insteadOf = "gh:"
@rfay
rfay / .gitconfig
Created April 12, 2011 04:12 — forked from schacon/.gitconfig
insteadOf Example for git.drupal.org
# Put this in your .gitconfig
[url "http://git.drupal.org/project/"]
insteadOf = "do:"
Many of you know I have a great passion for a good card trick and that I worked for a while as a professional magician. Friends have often heard me brag that opening the BeansTalk was the best trick I ever pulled off.
The common thread in all magic is no matter how beautiful or mystifying; nothing is permanent.
And so it is with a sad heart and more than one tear in my eye I have to share with everyone that its time for the particular bit of magic we all know and love as the BeansTalk to draw to a close.
After several months of difficult negotiations with our property owner and after carefully weighing all of the considerations (including the heartbreak myself, Amelia and all of our customers and staff will go through) it is the only (if undesirable) solution. I dont want to bore or burden anyone with details but will be happy to further clarify our reasoning for those who ask. Suffice it to say that this coffee house has been a dream of mine for 15 years and I moved 3000 miles and spent four years of my
anonymous
anonymous / file1.ab
Created June 6, 2011 16:28
if (!strcasecmp(substr($_SERVER['REQUEST_URI'],0,5),'/user') && !isset($_SERVER['HTTPS'])) {
header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
exit();
}
if (strcasecmp(substr($_SERVER['REQUEST_URI'],0,5),'/user') && isset($_SERVER['HTTPS'])) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
exit();
}
if (!strcasecmp(substr($_SERVER['REQUEST_URI'],0,5),'/user')) {
$protocol = "https";
#!/bin/bash
NOW=$(date +%Y%m%d%k%M%S)
PLATFORM=appstate-7.x-stable-$NOW
PLATFORM_ROOT=/var/aegir/platforms/7.x
PLATFORM_NAME=platform_Appstate7xstable$NOW
# Create a new platform
cd $PLATFORM_ROOT
/opt/drush/drush.php make /var/aegir/builds/dev.make $PLATFORM
@jpcody
jpcody / upload-clipboard.rb
Created September 3, 2011 01:06
Save clipboard contents as private gist using Alfred.app
# It'd be great to get this running via AppleScript and sans Alfred if anyone with more knowledge than me knows how :)
### STEP 1
#!/bin/sh
# Save this file as /bin/rvm_ruby, and do chmod 755 /bin/rvm_ruby
# to give it the proper permissions
# From http://www.aeonscope.net/2011/05/29/connecting-alfred-to-bitly-via-ruby/
if [[ -s ~/.rvm/scripts/rvm ]]; then