Skip to content

Instantly share code, notes, and snippets.

@erdbehrmund
erdbehrmund / Procfile
Created January 15, 2016 22:22 — forked from czottmann/Procfile
Example of a Foreman/Capistrano/upstart setup
worker: QUEUE=* bundle exec rake environment resque:work
scheduler: bundle exec rake environment resque:scheduler
===Useful Scripts and configuration===
In order to use the following scripts, create a file named as indicated with the given contents, make it executable with chmod +x, and place it in the same location as the git executable (or anywhere in your path). Once the file is in place, it can be used as any other normal git command. For example:
git integrate
git ship
git mdiff repo/branch
====git-integrate====
The git-integrate script pulls in the latest changes from the master origin repository into your local master branch and rebases your current branch on top of those new changes thereby integrating the new changes into your branch without needing another merge commit.
@erdbehrmund
erdbehrmund / extensions.lua
Created December 10, 2015 12:39 — forked from igmar/extensions.lua
Asterisk LUA dialplan
require("lsqlite3")
-- Igmar: Wanneer closen we dat DB object eigenlijk ?
db = sqlite3.open('/etc/asterisk/users.sqlite')
--CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
TRUNK = "DAHDI/G1"
@erdbehrmund
erdbehrmund / _order.html.erb
Last active December 15, 2015 05:59
date_select issue
<h3>
<%= @o.name %>
</h3>
Тип: <%= @o.product.name %><br>
Параметры: <%= @o.order_key %><br>
<hr>
Доставка: <%= @o.delivery.transporter.name %><br>
<%= @o.delivery.city %>, <%= @o.delivery.stock %>
<%= @o.delivery.recipient %>
<hr>