Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
@shrop
shrop / .gitignore
Last active August 29, 2015 14:08 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@shrop
shrop / httpd.conf
Last active August 29, 2015 14:08 — forked from tlattimore/httpd.conf
<Directory />
AllowOverride none
Require all granted
</Directory>
➜ twitter-clone git:(class-3) meteor
[[[[[ ~/Projects/Community/twitter-clone ]]]]]
=> Started proxy.
=> Started MongoDB.
I20141107-11:42:46.793(-5)? Kadira: completed instrumenting the app
=> Started your app.
=> App running at: http://localhost:3000/
I20141107-11:42:47.721(-5)? Kadira: successfully authenticated
<!-- THEME DEBUG -->
<!-- CALL: theme('html') -->
<!-- FILE NAME SUGGESTIONS:
* html--front.tpl.php
* html--node.tpl.php
x html.tpl.php
-->
@shrop
shrop / .gitignore
Last active August 29, 2015 14:11
Git Alias Setup for Checking Out Pull Requests from Stash and Github
[alias]
# Checkout Stash pull requests.
spr = !sh -c \"git fetch origin pull-requests/${1}/from:pr/${1}/from && git fetch origin pull-requests/${1}/merge:pr/${1}/merge && git checkout pr/${1}/from\" -
# Checkout Github pull requests.
gpr = !sh -c \"git fetch origin pull/${1}/head:pr/${1} && git checkout pr/${1}\" -
@shrop
shrop / Template
Last active August 29, 2015 14:16 — forked from patrickml/Template
<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>
@shrop
shrop / gist:4da9191a099af2eb77af
Created March 15, 2015 17:59
Meteor exception with template helper
Exception in template helper: editUserProfile@http://localhost:3000/client/views/profile/_userProfile.js?7eeb64c14a8e8bf602d599e52bfc2cd7a3b58d16:10:42
http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2727:21
http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1606:21
call@http://localhost:3000/packages/spacebars.js?7f53771c84a2eafac2b561c9796dda0d8af8e7f5:171:23
http://localhost:3000/client/views/profile/template._userProfile.js?891cf501a5ebff6ed0a47465462c90c364ad31c1:12:26
http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2472:57
http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1808:20
_withCurrentView@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2043:16
viewAutorun@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1807:34
_compute@http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:296:3
Template.recentNotifications.helpers({
// Check the current notification type for template usage.
notificationType: function (type) {
return this.type === type;
},
// Return set of notifcation cursors.
notifications: function () {
return Notifications.find( {}, { sort: { createdAt: -1 } } );
},
// Helper for comment related notification data.
@shrop
shrop / console-errors.log
Last active August 29, 2015 14:19
newNotification test
I20150418-10:58:48.236(-4)? jasmine-server-integration: 0 tests passed [33/3474]
W20150418-10:58:48.236(-4)? (STDERR) jasmine-server-integration: 1 tests failed
W20150418-10:58:48.236(-4)? (STDERR) newNotification server method does not generate a new notification for a logged out user
W20150418-10:58:48.236(-4)? (STDERR) Error: [not-authorized]
W20150418-10:58:48.236(-4)? (STDERR) Error: [not-authorized]
W20150418-10:58:48.236(-4)? (STDERR) at [object Object].Meteor.methods.newNotification (app/server/server.js:27:13)
W20150418-10:58:48.237(-4)? (STDERR) at [object Object].methodMap.(anonymous function) (/private/var/folders/jh/fn5ydp4s2z189rgjm3kq84h00000gp/T/meteor-test-run14icpzr/.meteor/local/build/programs/serve
r/packages/meteorhacks_kadira.js:2495:30)
W20150418-10:58:48.237(-4)? (STDERR) at maybeAuditArgumentChecks (/private/var/folders/jh/fn5ydp4s2z189rgjm3kq84h00000gp/T/m
@shrop
shrop / gist:c61bd91a48a2fddcbc71
Created May 23, 2015 15:10
Successful Jenkins run of meteor --test with Jasmine and Cucumber tests
GitHub pull request #1 of commit c777da4ad9b015e776336635b18a55485a29c900, no merge conflicts.
Setting status of c777da4ad9b015e776336635b18a55485a29c900 to PENDING with url http://jenkins.blackboot.biz:8080/job/ci-test/18/ and message: Build started, sha1 is merged
Building in workspace /var/lib/jenkins/jobs/ci-test/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/hb5co/ci-test.git # timeout=10
Fetching upstream changes from https://github.com/hb5co/ci-test.git
> git --version # timeout=10
using .gitcredentials to set credentials
> git config --local credential.helper store --file=/tmp/git4317210699226004625.credentials # timeout=10