Skip to content

Instantly share code, notes, and snippets.

View OSMeteor's full-sized avatar

meteor OSMeteor

View GitHub Profile
@daschl
daschl / couchbase-php-2pc-simple.php
Created July 21, 2012 08:39
Simple Couchbase PHP 2PC Implementation
<?php
/**
* Simple two-phase commit for PHP couchbase.
*
* Michael Nitschinger (@daschl, 2012)
*
* Additional Remarks
* ------------------
* - The Couchbase extension makes it currently pretty hard to write easy readable code when dealing with
* CAS (compared to the ruby adapter). This could certainly be improved with closures. I also found that
@v5tech
v5tech / cdn.md
Created September 2, 2014 07:29
常用的 JavaScript 库 CDN 加速服务
#!/bin/bash
sudo wget https://bintray.com/deepstreamio/rpm/rpm -O /etc/yum.repos.d/bintray-deepstreamio-rpm.repo
sudo yum install -y deepstream.io
deepstream install message redis
rm -f /etc/deepstream/conf.d/config.yml
sudo cat > /etc/init.d/deepstream <<- "EOF"
cmd="/usr/bin/deepstream"
user="root"