Debianize uses fpm (https://github.com/jordansissel/fpm) to create debian packages from python source directories. The only thing it really adds, is that debianize will also create packages for all depencencies that your source package has (install_requires). Debianize will only create a debian package from a python package. So you need a setup.py.
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
Pod::Spec.new do |s| | |
s.name = "route-me" | |
s.summary = "route-me alpstein fork" | |
s.version = "0.0.1" | |
s.summary = "Route-Me is an open source map library that runs natively on iOS." | |
s.homepage = "https://github.com/Alpstein/route-me" | |
s.license = { :type => "Free", | |
:file => 'LicenseRouteMe.txt' } | |
s.author = { "Route-Me Contributors" => "[email protected]" } | |
s.source = { :git => "https://github.com/Alpstein/route-me.git", :branch => 'release' } |
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
[buildout] | |
eggs = pip | |
[protobufsucks] | |
recipe = collective.recipe.cmd | |
on_install=true | |
cmds = ${buildout:directory}/bin/pip install protobuf |
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
global | |
maxconn 4096 | |
pidfile /var/run/haproxy.pid | |
daemon | |
defaults | |
mode http | |
retries 3 | |
option redispatch | |
maxconn 2000 |
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
# collect all the servers with *role* `node`. | |
$nodes = servers_with_role('node') | |
# render a template in wich we use these servers. | |
$configfile = template('path-to-template/configfile.erb') | |
package {"haproxy": | |
ensure => installed, | |
} |
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
# kick haproxy so it rebuilds it config. | |
notify {"kick -> haproxy":} |
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
#! /bin/bash | |
FAIL=0 | |
VERBOSE=0 | |
SLEEP="0" | |
# parse options | |
while getopts "vw:d" opt; do | |
case $opt in | |
v) |
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
> Object.prototype.i_am_everywhere = function() { | |
> return 'I am everywhere'; | |
> }; | |
> document.i_am_everywhere(); | |
'I am everywhere' | |
> var non_believer = "not here you're not!"; | |
> non_believer.i_am_everywhere(); | |
'I am everywhere' |
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
> var a = Counter; | |
> a; | |
0 | |
> a.next(); | |
1 | |
> a.before(); | |
Error: function before is not defined. | |
> Counter.prototype.before = function() { | |
> return this - 1; | |
> }; |
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
> var count = Counter; | |
> count.next(); | |
Error: function next is not defined. |