create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Recently I was asked to generate PDF invoices for an online shop. I looked at various PHP PDF generators, but wasn't particularly impressed with any of them.
Then I found (via Stack Overflow) a command-line HTML-to-PDF convertor called wkhtmltopdf, which uses WebKit (the same layout engine as Safari and Google Chrome) and therefore is very accurate.
There is a class for PHP integration on the Wiki, but I found it overly complicated and it uses temp files which aren't necessary. This is the code I wrote instead.
I used Smarty for generating the HTML for the PDF, but you can use any template engine, or pure PHP if you prefer.
Note: I originally tried to install wkhtmltopdf from source, but it's much easier to use the static binary instead.
# Add this line to your software sources | |
deb http://debian.meebey.net/experimental/mono / | |
sudo apt-get update | |
# of course, apt-get remove mono-complete first... | |
sudo apt-get install mono-complete | |
# I installed monodevelop from apt just to get all the prereqs | |
sudo apt-get install monodevelop |
Three things to remember while configuring a couchapp to run as a web facing application. Below, I document the steps I took to deploy the example pages
app from couchapp.org.
set the vhost in /etc/couchdb/local.ini
.
[vhosts] home.btbytes.com = /pages/_design/pages/_rewrite
add vhosts entry to couchdb by visiting configuration
page in futon app and adding a new section:
#!upstart | |
description "MyApp" | |
author "MyApp by charlie" | |
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
respawn | |
start on runlevel [23] | |
stop on shutdown |