This file contains hidden or 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
// +build mage | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"path" |
This file contains hidden or 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 'celluloid/zmq' | |
Celluloid::ZMQ.init | |
class Client | |
include Celluloid::ZMQ | |
def initialize(address) | |
@socket = DealerSocket.new |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# | |
# Resque Runner | |
# | |
# Quickly queue a resque task using the command line. Fast alternative to running | |
# rake from the crontab, and prevent loading too many rake tasks. | |
# | |
# Usage: | |
# | |
# resque queue WorkerClass [arguments] |
This file contains hidden or 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
# Upstart file at /etc/init/couchdb.conf | |
# CouchDB | |
start on runlevel [2345] | |
stop on runlevel [06] | |
pre-start script | |
chown -R couchdb /usr/local/etc/couchdb | |
chown -R couchdb /usr/local/lib/couchdb | |
chown -R couchdb /usr/local/var/log/couchdb |
This file contains hidden or 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
{ | |
"_id": "_design/Payment", | |
"_rev": "13-0996651a32cb63639fe01edd01383eb9", | |
"language": "javascript", | |
"views": { | |
"all": { | |
"map": "function(doc) {\n if (doc['type'] == 'Payment') {\n emit(doc['_id'],1);\n }\n }" | |
}, | |
"by_sequence": { | |
"map": " function(doc) {\n if ((doc['type'] == 'Payment') && (doc['sequence'] != null)) {\n emit(doc['sequence'], 1);\n }\n }\n", |
This file contains hidden or 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
{ | |
"_id": "_design/Payment", | |
"_rev": "13-0996651a32cb63639fe01edd01383eb9", | |
"language": "javascript", | |
"views": { | |
"all": { | |
"map": "function(doc) {\n if (doc['type'] == 'Payment') {\n emit(doc['_id'],1);\n }\n }" | |
}, | |
"by_sequence": { | |
"map": " function(doc) {\n if ((doc['type'] == 'Payment') && (doc['sequence'] != null)) {\n emit(doc['sequence'], 1);\n }\n }\n", |
This file contains hidden or 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
namespace :bundler do | |
task :create_symlinks, :roles => :app do | |
shared_bundle_path = File.join(shared_path, 'bundle') | |
release_bundle_path = File.join(current_release, '.bundle') | |
run("mkdir -p #{shared_bundle_path} && ln -s #{shared_bundle_path} #{release_bundle_path}") | |
shared_gemfile_path = File.join(shared_path, 'bundle', 'Gemfile.lock') | |
release_gemfile_path = File.join(current_release, 'Gemfile.lock') | |
run "touch #{shared_gemfile_path}" | |
run "ln -s #{shared_gemfile_path} #{release_gemfile_path}" | |
end |
This file contains hidden or 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
sam@sams-imac:~/workspace/glabels$ ./src/glabels-3-batch -i /tmp/projects.csv -o /tmp/output.pdf /tmp/test_130x65.glabels | |
merge.c:236 (gl_merge_class_init) START | |
merge.c:242 (gl_merge_class_init) END | |
merge-text.c:110 (gl_merge_text_class_init) START | |
merge-text.c:140 (gl_merge_text_class_init) END | |
prefs.c:58 (gl_prefs_init) START | |
prefs-model.c:227 (gl_prefs_model_new) START | |
prefs-model.c:156 (gl_prefs_model_class_init) START | |
prefs-model.c:172 (gl_prefs_model_class_init) END | |
prefs-model.c:179 (gl_prefs_model_init) START |
This file contains hidden or 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
Nginx proxy configuration: | |
server { | |
server_name couchdb.ityzen.com; | |
listen 443; | |
ssl on; | |
ssl_certificate /etc/ssl/certs/server.crt; | |
ssl_certificate_key /etc/ssl/private/server.key; |