Skip to content

Instantly share code, notes, and snippets.

@framallo
framallo / makefile
Last active June 8, 2023 07:49
This is a makefile to deploy a rails application using puma, runit and apache
# This is the deployment recipe
# You require to install runit on the server.
# First you need to declare on which port the application will run
#
# echo 3000 > port
#
# Then you can setup a new runit service with
#
# make setup_service
#
@framallo
framallo / unicorn.rb
Created October 9, 2012 19:47
init upstart script for ubuntu 12.04 and Rails 3 app
app_dir = "/home/public_forums/unstable/"
worker_processes 5
pid "#{app_dir}/tmp/pids/unicorn.pid"
# listen "#{app_dir}/tmp/sockets/public_forum.socket"
listen 5000, :tcp_nopush => true
stderr_path "#{app_dir}/log/unicorn.stderr.log"
stdout_path "#{app_dir}/log/unicorn.stdout.log"
running this url:
$ curl http://localhost:3000/projects/2
<html><body>You are being <a href="http://localhost:3000/users/sign_in">redirected</a>.</body></html>
# with puma
# $ siege -c 20 -r 100 -b http://localhost:3000/projects/2
** SIEGE 2.72
** Preparing 20 concurrent users for battle.
def pepe(a=nil)
if blah blahbla
thanks!
uno
dos
tres
cuatro
else
dos
uno
// ==========================================================================
// Project: Todozen.KanbanListItemView
// Copyright: @2011 My Company, Inc.
// ==========================================================================
/*globals Todozen */
/** @class
(Document Your View Here)
#cloud-config
apt_update: false
apt_upgrade: true
packages:
- pwgen
- pastebinit
- byobu
- build-essential
- bison
~/work/mitzi[sample⚡]
$ ebook-convert de-aqui-pal-real.epub de-aqui-pal-real.pdf
1% Converting input to HTML...
InputFormatPlugin: EPUB Input running
on /Users/framallo/work/mitzi/de-aqui-pal-real.epub
Found HTML cover OEBPS/cover.html
Parsing all content...
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
// ==========================================================================
// Project: Todozen.StoryDataSource
// Copyright: ©2011 My Company, Inc.
// ==========================================================================
/*globals Todozen */
/** @class
(Document Your Data Source Here)
$ git clone git@tangosource.com:workit.git
Cloning into workit...
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
remote: Counting objects: 1380, done.
remote: Compressing objects: 100% (980/980), done.
remote: Total 1380 (delta 554), reused 828 (delta 270)
Receiving objects: 100% (1380/1380), 2.68 MiB | 330 KiB/s, done.
Resolving deltas: 100% (554/554), done.
~
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..39cbcef
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "frameworks/couchdb"]
+ path = frameworks/couchdb
+ url = git://github.com/devinus/sproutcore-couchdb.git
diff --git a/Buildfile b/Buildfile