This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'culerity' | |
require 'cucumber/formatter/unicode' | |
require 'restclient' | |
require 'couchrest' | |
def read_couchapprc | |
json = "" | |
File.open(File.join(APP_PATH, ".couchapprc")).each { |line| json << line } | |
JSON.parse(json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"default": { | |
"db-example": "http://user:pass@localhost:5984/myapp-dev", | |
"db": "http://192.168.111.1:5984/rem-dev" | |
}, | |
"test": { | |
"db": "http://localhost:5984/rem-test" | |
}, | |
"production": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"a" : "first character", | |
"b" : "second character" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example data like: https://gist.github.com/ThoMo/fb3cb24dc8d14a53af97 | |
<table> | |
<thead><tr><th>Term</th><th>Description</th></tr></thead> | |
<tbody> | |
{% assign gs = site.data.glossary | sort:[0] %} | |
{% for kv in gs %} | |
<tr> <td>{{ kv[0] }} </td><td> {{ kv[1] }} </td></tr> | |
{% endfor %} | |
</tbody> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant init puppetlabs/centos-7.0-64-nocm; vagrant up --provider virtualbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name *.ogg | while read xxx | |
> do | |
> oggdec -o - "$xxx"| lame -h -V 4 --vbr-new - "$(dirname "$xxx")/$(basename "$xxx" .ogg).mp3" | |
> done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
MAINTAINER Thomas Mohaupt "Thomas.Mohaupt@gmail.com" | |
ENV UPDATED_AT=2015-09-26 | |
RUN echo "deltarpm=0" >> /etc/yum.conf | |
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 | |
RUN yum -y install epel-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Bootstraping new servers | |
hosts: newhosts | |
remote_user: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/programmer.txt | |
# | |
stk500v2.name=AVRISPv2/STK500v2 (serial) | |
stk500v2.communication=serial | |
stk500v2.protocol=stk500v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Environment: Pollin AVR NETIO board, Arduino 1.0.1, avr-netino (https://code.google.com/p/avr-netino/) | |
// | |
// This is a demo of sending udp packets | |
// 2012-07-08 <Thomas.Mohaupt@gmail.com> http://creativecommons.org/licenses/by-sa/3.0/ | |
// Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) | |
// | |
// On destination site you can receive the packets e.g. with | |
// nc -4ul 7777 | |
// |
OlderNewer