This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$('header.global').hide(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z "$TERM" ]; then | |
export TERM=xterm-256color | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" display settings | |
set autoindent | |
set number | |
set ruler | |
set showmatch | |
set showmode | |
set vb | |
syntax on | |
let g:zenburn_high_Contrast=1 | |
colo zenburn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)& |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer