Skip to content

Instantly share code, notes, and snippets.

View mattd's full-sized avatar

Matt Dawson mattd

  • WillowTree Apps
  • Charlottesville, VA
View GitHub Profile
include_recipe "python"
include_recipe "git"
bash "compile_blogofile_source" do
cwd "/tmp"
code <<-EOH
git clone #{node[:blogofile][:git_repo]}
cd blogofile
python setup.py install
EOH
def strip_tags(tags, html):
soup = BeautifulSoup(html)
for tag in soup.findAll(True):
if tag.name in tags:
s = ""
for c in tag.contents:
if type(c) != NavigableString:
c = strip_tags(tags, unicode(c))
s += unicode(c)
tag.replaceWith(s)
entries = {}
for entry in data:
ts = make_timestamp('{0} {1}'.format(entry['date'], entry['time']),
'%b.%d %Y %I:%M %p')
entries[ts] = entry
return entries
$(function () {
$('header.global').hide();
});
if [ -z "$TERM" ]; then
export TERM=xterm-256color
fi
General Topics
==============
1. Insert vs. Normal mode
2. Command - the third mode
3. Writing
4. Saving/Quitting
5. Movement
6. Search/Replace
7. Copy/Paste
" display settings
set autoindent
set number
set ruler
set showmatch
set showmode
set vb
syntax on
let g:zenburn_high_Contrast=1
colo zenburn
#!/bin/sh
(ssh [email protected] -o PermitLocalCommand=no \
": > .irssi/fnotify ; tail -f .irssi/fnotify " | \
while read heading message; do \
growlnotify -s -t "${heading}" -m "${message}"; \
#say "${heading} says, ${message}"; \
done)&
[mattdawson@grappa bytexbyte]$ knife cookbook site vendor apache2
INFO: Downloading apache2 from the cookbooks site at version 0.99.2
INFO: Cookbook saved: /Users/mattdawson/chef-repos/bytexbyte/cookbooks/apache2.tar.gz
INFO: Checking out the master branch.
INFO: Checking the status of the vendor branch.
INFO: Creating vendor branch.
INFO: Removing pre-existing version.
INFO: Uncompressing apache2 version 0.99.2.
INFO: Adding changes.
/Users/mattdawson/.rvm/gems/ruby-1.9.2-p0/gems/chef-0.9.12/lib/chef/mixin/command.rb:184:in `handle_command_failures': git add apache2 returned 128, expected 0 (Chef::Exceptions::Exec)
Subscriptions Password Management
With Subscriptions Password Management, PayPal can generate unique usernames and passwords for your subscribers, enabling them to access "member only" content on your site.
Note: Subscriptions Password Management is not required to use PayPal Subscriptions and Recurring Payments. This feature requires installing a Perl script on your server. If you are not comfortable writing or editing Perl, or installing scripts on your server, do not enable Subscriptions Password Management when you set up your subscription.
Note: If you are using or planning to use Subscriptions Password Management, you cannot use Auto Return. Likewise, if you are using or planning to use Auto Return, you cannot use Subscriptions Password Management.
Overview
After a customer signs up for a subscription, he will be given a unique username and password on the PayPal Successful Completion page. You will then activate the username/password pair on your website's server through code you write or, if you a