Skip to content

Instantly share code, notes, and snippets.

converting caffeine to code

rouble roubles

converting caffeine to code
View GitHub Profile
roubles /
Last active Jul 10, 2018
Installing Sensu on OSX

Install redis

Use homebrew:

    $ brew install redis

Redis config is here: /usr/local/etc/redis.conf

Starting redis


Using Alexa to Open and Close your garage door

This guide assumes a functioning Zwave garage door opener configured with Smartthings. As of this writing Alexa does not support opening and closing garage doors natively. So, some sorcery is required.

Create a routine that opens your garage

Just create a routine, say, "Open garage door" and configure it open your garage door.

Create a routine that closes your garage

Just create a routine, say, "Close garage door" and configure it open your garage door.

roubles /
Last active Jan 24, 2018
How to install Synergy on OS X Sierra (10.12)

Install homebrew

Install cmake and qt

$ brew install cmake qt

Install XCode

roubles / gist:79ede5f7410b0ff4c44046f1f50838c8
Last active May 5, 2021
A pattern for creating a reliable unique constraint in Cassandra
View gist:79ede5f7410b0ff4c44046f1f50838c8

Unique Constraints in Cassandra

Cassandra is a NoSQL database, and is meant for different applications than traditional relational databases. Nevertheless, developers will want (and try) to implement RDBMS features in Cassandra. Unique constraints is one such example.

Many people have asked about creating unique constraints in Cassandra: 1, 2, 3, 4. There is no definitive answer. The most popular answer seems to be to not even try it. Square peg, round hole. If you need unique constraints, Cassandra may not be the tool for the job. Others have suggested to use LWT/CAS. It should be noted that, simply using LWT/CAS does not give us reliable unique constraints that we get i

roubles / gist:42ab992afa65d906b4c2433524e41514
Last active Jul 12, 2017
Use Alexa to arm/disarm Simplisafe
View gist:42ab992afa65d906b4c2433524e41514
roubles /
Last active Jan 27, 2016
Send email from OSX Command line using gmail as SMTP

#Step 1: Update /etc/postfix/

$ sudo vim /etc/postfix/

Add the following lines, anywhere really, but preferably under the relayhost section:

relayhost =
smtp_sasl_auth_enable = yes