Skip to content

Instantly share code, notes, and snippets.

View andywenk's full-sized avatar

Andreas Wenk andywenk

View GitHub Profile
@andywenk
andywenk / cdbd_email_community
Last active August 29, 2015 14:13
email to community CouchDB Day 2015
Der CouchDB enthusiasts,
it does not take very long and we will be able to welcome you in Hamburg for the CouchDB Day 2015.
This is super awesome and we are really excited. If you do not have a ticket yet, go and get one at
https://ti.to/andywenk/couchdbday-hamburg-2015
There are some tickets left and we follow the rule: first come - first serve.
Although the following sections are mostly for the attendees we thought it's a cool idea to
@andywenk
andywenk / cdbd_sponsor_info
Last active August 29, 2015 14:13
email to sponsors for swag
Dear [SPONSOR],
first of all, we would like to thank you very much for sponsoring the CouchDB Day 2015 in Hamburg.
With your support, you help us to make the 7th February a day to remember in the CouchDB community.
You really rock!
As a sponsor, you will have the opportunity to the send some of your employees to Hamburg and we are
very happy to welcome them. You will have a place in the event rooms, where you can lay down material
you want to give or show to the attendees. It will be a round bistro table or something similar. If
you are planning to send someone from your company, please send us a list of the names in response to
exiftool -a -u -g1 some-pdf.pdf ⬇ ✭ ✱
---- ExifTool ----
ExifTool Version Number : 9.78
---- System ----
File Name : some-pdf.pdf
Directory : .
File Size : 67 kB
File Modification Date/Time : 2014:10:21 17:34:35+02:00
File Access Date/Time : 2014:12:15 16:34:34+01:00
File Inode Change Date/Time : 2014:12:15 15:46:28+01:00
@andywenk
andywenk / couchdb-event-guidelines.md
Last active August 29, 2015 14:06
Draft: Guidelines for creating a CouchDB Event

THIS IS A FIRST DRAFT AND WIP. Please help to create the guidelines. Thanky you

Guidelines for creating a CouchDB Event

We are very happy that you take the opportunity to create a CouchDB Event. We wish you all the best for it and would like to help to make it a great success.

##Introduction

Apache CouchDB is an Open Source project hosted by the Apache Software Foundation. This means the project follows not only the ideas of the ASF but also it guidelines. This includes rules for the usage of brands and also community rules like the Code of Conduct and Diversity Statement. We expect you, as the organisers of a CouchDB event, to also follow these rules. To make this easier for you, we created these guidelines.

@andywenk
andywenk / redis.rb
Created September 23, 2014 10:48
redis configuration for redis-sentinel and redis-session-store
######### redis configuration #########
### redis sentinel und sidekiq
# https://github.com/flyerhzm/redis-sentinel
# http://tom.meinlschmidt.org/2013/12/20/redis-sentinel-with-ruby-on-rails/
sentinels = {
development:
[
{ host: "127.0.0.1", port: 6379 }
@andywenk
andywenk / compare_git_branches.rake
Created September 4, 2014 10:35
rake task to compare remote and local git branches
task :compare_remote_and_local_branch do
sh "git remote update"
current_branch = `git rev-parse --abbrev-ref HEAD`
local_commit_hash = `git rev-parse HEAD`
remote_commit_hash = `git rev-parse origin/#{current_branch}`
print "#{Term::ANSIColor.green}[INFO]: branch: #{current_branch}#{Term::ANSIColor.reset}"
print "#{Term::ANSIColor.green}[INFO]: local commit hash: #{local_commit_hash}#{Term::ANSIColor.reset}"
print "#{Term::ANSIColor.green}[INFO]: remote commit hash: #{remote_commit_hash}#{Term::ANSIColor.reset}"
@andywenk
andywenk / email_address_validator.rb
Created September 3, 2014 10:34
simple email adress validator; checks if the server responds and has an MX or A record
require 'mail'
require 'resolv'
require 'net/telnet'
class EmailAddressValidator < ActiveModel::EachValidator
attr_reader :mail
def validate_each(record, attribute, value)
return if options[:allow_nil] && value.nil?
@andywenk
andywenk / couchdb-crash.log
Created September 1, 2014 13:59
couch-crash-log
2014-09-01 15:09:19 =ERROR REPORT====
Error in process <0.1151.0> on node 'node1@127.0.0.1' with exit value: {{nocatch,{os_process_error,{exit_status,1}}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,map_doc_raw,2,[{file,"src/couch_query_servers.erl"},{line,84}]},{couch_mrview_updater...
2014-09-01 15:09:19 =ERROR REPORT====
Error in process <0.1163.0> on node 'node1@127.0.0.1' with exit value: {{nocatch,{<<21 bytes>>,<<187 bytes>>}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,proc_prompt,2,[{file,"src/couch_query_servers.erl"},{line,336}]},{couch_query_servers,os_reduce,3,[{file,"src/c...
@andywenk
andywenk / couchdb-compile
Created September 1, 2014 12:42
couchdb ./configure -c && make check
==> snappy (compile)
Compiled src/snappy.erl
Compiling c_src/snappy_nif.cc
Compiling c_src/snappy/snappy-sinksource.cc
Compiling c_src/snappy/snappy-stubs-internal.cc
Compiling c_src/snappy/snappy.cc
c_src/snappy/snappy.cc:516:13: warning: unused function 'ComputeTable' [-Wunused-function]
static void ComputeTable() {
^
1 warning generated.
@andywenk
andywenk / local.ini
Created August 31, 2014 16:49
~/Library/Application\ Support/CouchDB/etc/couchdb/local.ini
[couchdb]
database_dir = /Users/andwen/Library/Application Support/CouchDB/var/lib/couchdb
view_index_dir = /Users/andwen/Library/Application Support/CouchDB/var/lib/couchdb
uri_file = /Users/andwen/Library/Application Support/CouchDB/var/run/couchdb/couch.uri
util_driver_dir = lib/couchdb/erlang/lib/couch-1.6.0/priv/lib
index_dir = /Users/andwen/Library/Application Support/CouchDB/var/lib/couchdb
uuid = 7f964204e378bdc1288dc7fa306e9f37
[query_servers]
javascript = bin/couchjs share/couchdb/server/main.js