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
| 13.6.1.2 Password Validation Plug-in Code Example | |
| import java.io.*; | |
| import java.lang.*; | |
| import java.util.*; | |
| import javax.naming.*; | |
| import javax.naming.directory.*; | |
| import oracle.ldap.ospf.*; | |
| /** | |
| * This PRE modify plug-in will check whether the "userPassword" |
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/ruby1.8 /usr/lib/ruby/gems/1.8/gems/cucumber-0.3.99/bin/cucumber --profile autotest-all --format rerun --out /tmp/autotest-cucumber20090908-11518-11f746-0 features | |
| Using the autotest-all profile... |
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 'rubygems' | |
| require 'irb/ext/save-history' | |
| IRB.conf[:SAVE_HISTORY] = 200 | |
| IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history" | |
| require 'yaml' | |
| require 'ap' | |
| begin | |
| require 'wirble' |
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
| ruby-1.8.7-p249 > $LOAD_PATH | |
| => ["/home/steve/dev/oss/rails3_tester/app/models", "/home/steve/dev/oss/rails3_tester/app/helpers", "/home/steve/dev/oss/rails3_tester/app/controllers", "/home/steve/dev/oss/rails3_tester/lib", "/home/steve/dev/oss/rails3_tester/vendor", "/home/steve/dev/oss/rails3_tester/vendor/plugins/permit/lib", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/sqlite3-ruby-1.2.5/ext", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/sqlite3-ruby-1.2.5/lib", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/rspec-rails-2.0.0.beta.7/lib", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/webrat-0.7.0/lib", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/rspec-2.0.0.beta.7/lib", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/rspec-mocks-2.0.0.beta.7/lib", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/rspec-expectations-2.0.0.beta.7/lib", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/rspec-core-2.0.0.beta.7/lib", "/home/steve/.rvm/gems/ruby-1.8.7-p249@rails3/gems/rails-3.0 |
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 | |
| FILES=`git ls-tree --name-only HEAD .` | |
| MAXLEN=0 | |
| for f in $FILES; do | |
| if [ ${#f} -gt $MAXLEN ]; then | |
| MAXLEN=${#f} | |
| fi | |
| done | |
| for f in $FILES; do |
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
| include: | |
| - appbase: | |
| - context: | |
| appname: app1 | |
| # do stuff specific to this app |
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
| #salt requires a proper dictionary with declared state, so the file.missing is just a dummy | |
| appUserGroup: | |
| file.missing: | |
| - name: /tmp/aroisntoaursntoyaurnsotnarstnarosetairestoiaernst | |
| - &usergroup | |
| - user: {{user}} | |
| - group: {{group}} | |
| - hashvalues: &hashvals | |
| some: value |
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
| # do stuff | |
| include: | |
| - somesls | |
| # do some more stuff | |
| include: | |
| - anothersls | |
| - require: |
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
| setup-rabbit: | |
| salt.state: | |
| - tgt: 'G@environment:staging and G@provides:rabbitmq:*' | |
| - tgt_type: compound | |
| - sls: | |
| - rabbitmq |
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
| class Logger | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| payload = { | |
| remote_addr: env['REMOTE_ADDR'], | |
| request_method: env['REQUEST_METHOD'], | |
| request_path: env['PATH_INFO'], |
OlderNewer