Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
@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
@kopischke
kopischke / markdown2evernote.rb
Created June 5, 2011 16:57
OS X service scripts
#!/usr/bin/env ruby -wKU
# Adapted from Brett Terpstra’s original “Markdown to Evernote” service (http://brettterpstra.com/a-better-os-x-system-service-for-evernote-notes-with-multimarkdown/)
# Martin Kopischke 2011 – License: Creative Commons Attribution Share-Alike (CC BY-SA) 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/)
# Changes: – create only one Evernote note per (Multi)Markdown input passed (instead of one per line)
# – do not choke on shell escape characters (use Tempfile instead of shell pipe for osascript)
# – default to MultiMarkdown 3 executable (instead of MMD 2 Perl script)
# – make smart typography processing optional (set SMARTY to 'false' to bypass processing;
# note smart typography cannot be disabled in MMD 3.0 and 3.0.1
# – handle both smart typography processing scripts (ie. SmartyPants.pl)
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
#!/bin/bash
#
# migrate.sh - Migrates a site to a new platform
#
function usage() {
cat << EOF
usage:
${0#$SCRIPTSDIR/bin/} [-h] -s @sitename.appstate.edu
@valpackett
valpackett / LICENSE.md
Created November 10, 2011 17:48
Evernote-Marked integration
       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
               Version 2, December 2004

Copyright (C) 2011 Grigory V. [email protected]

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

@tsabat
tsabat / zsh.md
Last active July 22, 2025 02:26
Getting oh-my-zsh to work in Ubuntu
@phatblat
phatblat / heroku-node-init.sh
Created January 31, 2012 22:28
Bash script to initialize an OS X box for local development of node app on heroku
#!/bin/bash
NODE_VERSION=0.4.7
NPM_VERSION=1.0.94
# Save script's current directory
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#cd "${DIR}"
#