Skip to content

Instantly share code, notes, and snippets.

@mattmcmanus
mattmcmanus / keybase.md
Created February 28, 2014 02:31
keybase.md

Keybase proof

I hereby claim:

  • I am mattmcmanus on github.
  • I am mattmcmanus (https://keybase.io/mattmcmanus) on keybase.
  • I have a public key whose fingerprint is 2707 C363 EB45 5469 CA10 E39C E9AF B3F4 EDB8 F457

To claim this, I am signing this object:

@mattmcmanus
mattmcmanus / gist:10131637
Created April 8, 2014 14:19
Testing vagrant download
$ curl -vvL 'https://d29vzk4ow07wi7.cloudfront.net/02b7cd7d01d9134dadebb3ce50ce3906ee572f4b?response-content-disposition=attachment%3Bfilename%3D%22vagrant_1.5.2.dmg%22&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHA6Ly9kMjl2ems0b3cwN3dpNy5jbG91ZGZyb250Lm5ldC8wMmI3Y2Q3ZDAxZDkxMzRkYWRlYmIzY2U1MGNlMzkwNmVlNTcyZjRiP3Jlc3BvbnNlLWNvbnRlbnQtZGlzcG9zaXRpb249YXR0YWNobWVudCUzQmZpbGVuYW1lJTNEJTIydmFncmFudF8xLjUuMi5kbWclMjIiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjEzOTY5NjY2OTZ9LCJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMC4wLjAuMC8wIn19fV19&Signature=STRkslDAMudEMPwSgaQom9ziOMy1hoUprd9yzRyunktqSpZd8rTBRTbdyswGFprZs8~gUibAB~kX-30HPGATTeuXmvRP5ShG0j8xmpg1seVnAd07lo8VEcQSljrgTa1lEXsmqyAXv4WuDHtsLmMBol6CQ47w5cT8SsHPncY2u8vTHQcZK~XMkiW0hdGxLMjZkv1zb5ipx4REO8Sh5N8TJjjjzynqO-bPPNq5zE6wC9dmbzR0chBxqZ4JWREEMhoS4O5lokDt~VIUbo0Iz1tx54zu9vPcekDvx5AnMQxvDmF-UhprgFIxO5Z9WAQdrxq4U4Qxk5s6UkICHUd-K1DxCw__&Key-Pair-Id=APKAIQIOJCQ5764M5VTQ'
* Adding handle: conn: 0x7fdbe8801c00
* Adding handle: send: 0
* Adding handle
@mattmcmanus
mattmcmanus / _form.jade
Created March 11, 2011 21:53
An issues I'm running into w/ node, exporess, jade and mongoose
...
h2 Services to monitor
ul.services
!=partial('_form_service', server.services)
li
a(href='javascript:void(0)') Add Another
@mattmcmanus
mattmcmanus / my.cnf
Created April 11, 2011 14:02
Output from the tuning-primer.sh script
[mysqld]
# SLLLLOOOWWWW Queries
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 2
log-queries-not-using-indexes
wait_timeout=60
@mattmcmanus
mattmcmanus / stdout.log
Created June 28, 2011 17:18
Mongoose-Auth bug?
GET / 6 ms
starting step - getRequestToken
...finished step
starting step - storeRequestToken
...finished step
starting step - redirectToProviderAuth
...finished step
GET /auth/twitter 444 ms
starting step - extractTokenAndVerifier
...finished step
@mattmcmanus
mattmcmanus / pt-semester-duplicate.php
Created November 22, 2011 16:40
Bulk node cloning in drupal
<?php
// Assumptions - READ ME
// ====================================
// * You have terms setup, which are literal academic terms setup as taxonomy terms. Ie: 2011 - Spring, 2012 - Spring
// * You have another taxonmy setup for academic units. In this setup there are Units 1-23
//
// What does this do?
// ====================================
// It duplicates specific nodes. For example:
// * Duplicate Units 5-9,15-20 and PT800 from spring 2011 to spring 2012
@mattmcmanus
mattmcmanus / edu-pb.css
Created May 24, 2012 19:00
Pagebuilder CSS
/*---------------Page Builder Dropzones----------------*/
/* Clearing silly defaults */
.page-builder .PBViewing {
float:none;
}
/*#ticker, #ticker_content, #ticker_content_one, #ticker_content_two {
height: 300px;
}*/
<?php
// Assumptions - READ ME
// ====================================
// * You have terms setup, which are literal academic terms setup as taxonomy terms. Ie: 2011 - Spring, 2012 - Spring
// * You have another taxonmy setup for academic units. For this site, there are Units 1-23
//
// What does this do?
// ====================================
// It duplicates specific nodes. For example:
// * Duplicate Units 5-9,15-20 and PT800 from spring 2011 to spring 2012
@mattmcmanus
mattmcmanus / main.cf
Created July 10, 2012 20:42
Postfix Config
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
#!upstart
description "Accountable"
author "mattmcmanus"
start on (local-filesystems and net-device-up IFACE=eth0)
stop on shutdown
respawn
respawn limit 5 60 # give up restart after 5 respawns in 60 seconds