Skip to content

Instantly share code, notes, and snippets.

View lusis's full-sized avatar

John E. Vincent lusis

View GitHub Profile
jvincent@jvx64:~/Dropbox/test/padtest$ padrino-gen model Client name:string phone:string email:string
=> Located unlocked Gemfile for development
apply orms/ripple
create app/models/client.rb
jvincent@jvx64:~/Dropbox/test/padtest$ padrino console
=> Loading development console (Padrino v.0.9.13)
=> Located unlocked Gemfile for development
=> Loading Application Padtest
Couldn't load Wirble: no such file to load -- interactive_editor
ree-1.8.7-2010.02 > myclient = Client.new
<h1>Examples</h1>
<% @examples.each do |example| %>
<p><%= example.language.name %>
<p><%= example.api.name %>
<p><%= example.code %>
<p><%= example.created_at %>
<% end %>
class Tester
include DataMapper::Resource
property :id, Serial
property :name, String, :required => true, :length => 75
property :email, String, :required => true, :length => 75, :unique_index => true
property :comments, Text
property :created_at, DateTime
has n, :skills
CREATE TABLE `testers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(75) NOT NULL,
`email` varchar(75) NOT NULL,
`comments` text,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_testers_email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
require 'rubygems'
require 'dm-core'
require 'dm-migrations'
require 'dm-timestamps'
DataMapper::Logger.new($stdout, :debug)
DataMapper.setup(:default, "mysql://root@localhost/db_development")
class Tester
include DataMapper::Resource
/usr/local/ruby/1.9.1pXXX
/usr/local/ruby/1.8.7pXXX
/usr/local/ruby/current symlink to /usr/local/ruby/<vm>
/etc/profile.d/ruby.sh -
export PATH=/usr/local/ruby/current/bin:$PATH
import configobj
class MockConfigObj(object):
def __init__(self):
# foo
self.config = {}
self.config['main'] = {}
self.config['main']['environment'] = 'QA'
self.config['main']['cobbler'] = '10.10.10.10'
hudson@jvx64:~/workspace/padrino-rubinius-test$ bundle exec rake test --trace
(in /var/lib/hudson/workspace/padrino-rubinius-test)
You need to install sdoc: gem install sdoc to correctly generate our api docs.
Rcov is only supported on MRI 1.8. You can safely ignore this message on other platforms
** Invoke test (first_time)
** Execute test
cd /var/lib/hudson/workspace/padrino-rubinius-test/padrino-core && /var/lib/hudson/.rvm/rubies/rbx-1.0.1-20100603/bin/rbx -S rake test
(in /var/lib/hudson/workspace/padrino-rubinius-test/padrino-core)
/var/lib/hudson/.rvm/rubies/rbx-1.0.1-20100603/bin/rbx -I"lib:test" "/var/lib/hudson/.rvm/gems/rbx-1.0.1-20100603@padrino-test-build/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/test_application.rb" "test/test_rendering.rb" "test/test_server.rb" "test/test_routing.rb" "test/test_dependencies.rb" "test/test_reloader_simple.rb" "test/test_mounter.rb" "test/test_logger.rb" "test/test_core.rb" "test/test_reloader_complex.rb" "test/test_router.rb"
Loaded suite /var/lib/hud
@lusis
lusis / openldap_passwd.py
Last active September 11, 2015 18:02 — forked from rca/openldap_passwd.py
Python hashing and test functions for user passwords stored in OpenLDAP.
#!/usr/bin/env python
"""
http://www.openldap.org/faq/data/cache/347.html
As seen working on Ubuntu 12.04 with OpenLDAP 2.4.28-1.1ubuntu4
Author: Roberto Aguilar <roberto@baremetal.io>
"""
import hashlib
import os
We couldn’t find that file to show.