Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
@shrop
shrop / meteor-charlotte-20140203.md
Last active August 29, 2015 13:56
Meteor Charlotte February 3rd. 2014 Meetup Summary

Meteor Charlotte, which launched in January, held its second meetup on Monday, February 3rd. The group meets at Packard Place, which is hub for entrepreneurship and innovation in the Charlotte, North Carolina area. Between the first two meetups, attendees included those recently hearing about Meteor for the first time, startup entrepreneurs learning Meteor for API development and rapid prototyping, and a college student who has quite a bit of Meteor experience developing an app for Purdue University.

While the January meetup was an introduction to Meteor and live demos, February was all about resources. One Meteorite discussed key points of Emily Stark's Meteor security talk at github. The Meteor Podcast was brought up as a great weekly Meteor news podcast. [Crater.io](http:/

@shrop
shrop / CrashPlan Pause-Resume.scpt
Created March 29, 2014 20:46
CrashPlan Pause/Resume
set isCrashPlanRunning to false
try
set pid to do shell script ¬
"sudo launchctl list | grep com.crashplan.engine" user name "username" password ¬
"password" with administrator privileges
set isCrashPlanRunning to true
end try
if isCrashPlanRunning then
log "CrashPlan is already running: " & pid
/**
* Implements hook_classic().
*/
@shrop
shrop / apm.js
Last active August 29, 2015 14:01
Start Meteor APM Only on One Specific Instance of a Meteor Application
Meteor.startup(function() {
// Start APM only on our test server.
var rootUrl = Meteor.absoluteUrl();
if (rootUrl === "https://<rootUrl>/" || rootUrl === "http://<rootUrl>/") {
Apm.connect('<AppId>', '<AppSecret>');
}
});
@shrop
shrop / gist:24ab107aaff7c90990bb
Last active August 29, 2015 14:03
Turn on Drupal site maintenance and set the message
drush vset maintenance_mode 1
drush vset maintenance_mode_message 'Come back later!'
@shrop
shrop / gist:7969833edd26ae52eacd
Last active August 29, 2015 14:04
Declare a schema and collection at the same times! #meteorjs
Posts = new Meteor.Collection("posts", {
schema: new SimpleSchema({
title: {
type: String,
optional: true
},
description: {
type: String,
optional: true
},
@shrop
shrop / gist:231f92296b3137eb0e32
Created August 9, 2014 22:09
Example library usage for drush make files
libraries[jquery_ui][download][type] = get
libraries[jquery_ui][download][url] = http://jquery-ui.googlecode.com/files/jquery.ui-1.6.zip
libraries[jquery_ui][directory_name] = jquery.ui
libraries[jquery_ui][destination] = modules/contrib/jquery_ui
#!/bin/zsh
rm -rf "$HOME/Library/Preferences/WebIde70"
rm -rf "$HOME/Library/Caches/WebIde70"
rm -rf "$HOME/Library/Application Support/WebIde70"
rm -rf "$HOME/Library/Logs/WebIde70"