Skip to content

Instantly share code, notes, and snippets.

View anteaya's full-sized avatar

Anita Kuno anteaya

View GitHub Profile
@anteaya
anteaya / Encbox.md
Created July 21, 2013 17:26 — forked from Tho85/Encbox.md

Build your own private, encrypted, open-source Dropbox-esque sync folder

Prerequisites:

  • One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
  • A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.

Software components used:

  • Unison for file synchronization
  • EncFS for folder encryption
#------------------------------------------------
# a first-time contributor walking thru the contribution process
#
#----------------------------------------------
# running tox for the first time
barton@ubuntu:/opt/stack/nova$ sudo pip install tox
vagrant@precise64:~/devstack$ cd /opt/stack/nova
vagrant@precise64:/opt/stack/nova$ tox
GLOB sdist-make: /opt/stack/nova/setup.py
py26 create: /opt/stack/nova/.tox/py26
ERROR: InterpreterNotFound: python2.6
py27 create: /opt/stack/nova/.tox/py27
py27 installdeps: -r/opt/stack/nova/tools/pip-requires, -r/opt/stack/nova/tools/test-requires
py27 inst: /opt/stack/nova/.tox/dist/nova-2013.2.a28.ga92b7c8.zip
py27 runtests: commands[0]
py27 runtests: commands[1]
vagrant@precise64:~/devstack$ cd /opt/stack/nova
vagrant@precise64:/opt/stack/nova$ tox
GLOB sdist-make: /opt/stack/nova/setup.py
py26 create: /opt/stack/nova/.tox/py26
ERROR: InterpreterNotFound: python2.6
py27 create: /opt/stack/nova/.tox/py27
py27 installdeps: -r/opt/stack/nova/tools/pip-requires, -r/opt/stack/nova/tools/test-requires
py27 inst: /opt/stack/nova/.tox/dist/nova-2013.2.a28.ga92b7c8.zip
py27 runtests: commands[0]
py27 runtests: commands[1]
@anteaya
anteaya / localrc
Created March 19, 2013 00:33 — forked from etoews/localrc
ADMIN_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
FL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v)
17 v.drive
18 end
@anteaya
anteaya / sdfdsf
Created August 11, 2010 01:51 — forked from tomtt/sdfdsf
Feature: answer a question
In order to help another user
As a user
I want to answer a question
Scenario: I want to answer a question
Given a question exists with text: "What is your favourite colour?"
When I go to the home page
And I follow "questions"
And I follow "What is your favourite colour?"
require 'open-uri'
# First lets assign the results to a couple variables.
labe_output = open("http://en.wikipedia.org/wiki/Labe").read
usa_output = open("http://en.wikipedia.org/wiki/USA").read
# Okay, so if we want to just send these to stdout:
puts labe_output
puts usa_output