Skip to content

Instantly share code, notes, and snippets.

# 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.

  1. set the vhost in /etc/couchdb/local.ini.

    [vhosts] home.btbytes.com = /pages/_design/pages/_rewrite

  2. add vhosts entry to couchdb by visiting configuration page in futon app and adding a new section:

@werty1st
werty1st / vbox autostart
Created December 4, 2013 19:36
vbox autostart
#!/bin/bash
#
#This init script autostarts necessary vms at boot
#and saves running vms on shutdown
# Sed explanation: sed -e 's/^.//' -e 's/.$//'
# 1. -e means to allow multiple arguments in a single sed command
# 2. 's/^.//' means to substitute (s) / at the beginning of the line (^), any character (.) / [substitute with nothing] /
# 3. 's/.$//' means to substitute (s) / any character (.), at the end of the line / [substitute with nothing] /
@werty1st
werty1st / gist:6801037
Created October 2, 2013 21:51
OSX hackintosh wrong cpu detection workaround with brew
/usr/local/Library/ENV/4.3/cc in a text editor and replace "-march=native" with "-march=core2".
@werty1st
werty1st / OSX brew install encfs
Created September 27, 2013 22:58
OSX brew install encfs
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
brew install encfs --use-gcc
@werty1st
werty1st / install.md
Created September 25, 2013 16:24 — forked from twilson63/install.md

Install CouchDb and NodeJS

Prereqs

sudo apt-get update -y
sudo apt-get install git-core build-essential -y

NodeJS 0.10.x

<objectResponse>
<miniEPG contentId="141068" externalId="ebd7240c-11bf-466e-aae1-d774ccfa745t">
<EPGSeiteUri>http://wmaiz-isle01.dbc.zdf.de/ZDF/zdfportal/xml/object/200</EPGSeiteUri>
<sendungen>
<sendung>
<endTime>2013-09-17T17:10:00+02:00</endTime>
<images />
<link>http://wmaiz-isle01.dbc.zdf.de/ZDF/zdfportal/xml/epg/20204232,c78223ab-14bd-3950-adeb-e5b0c7b0f049</link>
<livestream>true</livestream>
<station contentId="26" externalId="" name="ZDF" serviceId="1">
<epgResponse>
<meta>
<contentId>29886</contentId>
<topicId>29888</topicId>
<webUrl>http://wmaiz-isle01.dbc.zdf.de/ZDF/zdfportal/programdata/9c4e1912-ec14-35ec-b869-fdf6d697a91f/20204233</webUrl>
</meta>
<seitenrahmen contentId="4632" externalId="">
<epgBeitrag>
<images />
<langtext>&lt;b&gt;Blutbad in Niederösterreich&lt;/b&gt;&lt;br/&gt;Ein Wilderer hat letzte Nacht drei Polizisten und einen Rettungssanitäter erschossen. Das Haus in dem sich der schwerbewaffnete Täter seit den Morgenstunden verschanzt ist von einem Sondereinsatzkommando umstellt. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Prozess im Mordfall Susan Lucan&lt;/b&gt;&lt;br/&gt;Vor acht Jahren wurde Susan Lucan in ihrem Bett erschlagen. Verdächtigt wurde ihr Exfreund, doch jetzt erst gibt es genügend Beweise um eine Anklage gegen ihn zu erheben.&lt;br/&gt;&lt;br/&gt;&lt;b&gt;100 Jahre Robert Lembke&lt;/b&gt;&lt;br/&gt;Robert Lembke wäre heute 100 Jahre alt geworden. Sein Sendung "Was bin ic
@werty1st
werty1st / sparse checkout
Created September 17, 2013 12:03
git sparse checkout
What you are trying to do is called a sparse checkout, and that feature was added in git 1.7.0 (Feb. 2012). The steps to do a sparse clone are as follows:
git init <repo>
cd <repo>
git remote add -f origin <url>
This creates an empty repository with your remote. Then do:
git config core.sparsecheckout true
Now you need to define which files/folders you want to actually check out. This is done by listing them in .git/info/sparse-checkout, eg:
If you've got local source code you want to add to a new remote new git repository without 'cloning' the remote first, do the following (I often do this - you create your remote empty repository in bitbucket/github, then push up your source)
Create the remote repository, and get the URL such as [email protected]:/youruser/somename.git or https://github.com/youruser/somename.git
If your local GIT repo is already set up, skips steps 2 and 3
Locally, at the root directory of your source, git init
Locally, add and commit what you want in your initial repo (for everything, git add . git commit -m 'initial commit comment')