This file contains 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 'csv' | |
$VERBOSE = nil | |
namespace :user do | |
desc "Display Help for managing users" | |
task :help do | |
puts "Below are examples of how to use the user related rake tasks:" | |
puts " rake user:create_user['John Q. User','john.q.user@email.com','mypassword']" | |
puts " rake user:delete_user['John Q. User','john.q.user@bobots.com']" |
This file contains 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
# ~/.tmuxinator/remote_connect.yml | |
# more info on tmuxinator: https://github.com/tmuxinator/tmuxinator | |
name: remote | |
root: ~/path/to/your_project/dir | |
windows: | |
- local: ls -la | |
- remote: | |
layout: even-vertical |
This file contains 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
And I successfully change the following the configuration values, one at a time: | |
| id | input | | |
| activity-requirement | 80 | | |
Then I see config has the following input values | |
| id | input | | |
| activity-requirement | 80 | | |
STEP DEFS: | |
When /^I successfully change the following the configuration values, one at a time:$/ do |table| |
This file contains 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/perl | |
# | |
# John Hogarty | |
# | |
# Description: This is a test script to test components of DAO, including data | |
# related retreival via a DB for Baytechs. | |
# | |
#----------------------------------------------------------------------------- | |
This file contains 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
#----------------------------------------------------------------------------- | |
# John Hogarty | |
# | |
# Description: Class to process data related elements of a baytech and any | |
# devices that are connected to a baytech. | |
# | |
#----------------------------------------------------------------------------- | |
package OMX::Data::DB::Baytech; | |
use strict; |
This file contains 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
#----------------------------------------------------------------------------- | |
# John Hogarty | |
# | |
# Description: Base class for database backed data related sub-classes | |
# | |
#----------------------------------------------------------------------------- | |
package OMX::Data::DB::Base; | |
use strict; | |
use warnings FATAL => qw(all); |
This file contains 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
#----------------------------------------------------------------------------- | |
# John Hogarty | |
# | |
# Description: Data Access Orchestrator class | |
# | |
#----------------------------------------------------------------------------- | |
package OMX::Data::DAO; | |
use strict; | |
use warnings FATAL => qw(all); |
This file contains 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
➜ RoR git clone https://github.com/hashicorp/otto-getting-started.git | |
Cloning into 'otto-getting-started'... | |
remote: Counting objects: 34, done. | |
remote: Total 34 (delta 0), reused 0 (delta 0), pack-reused 34 | |
Unpacking objects: 100% (34/34), done. | |
Checking connectivity... done. | |
➜ RoR cd otto-getting-started | |
➜ otto-getting-started git:(master) otto compile | |
==> Loading Appfile... | |
==> No Appfile found! Detecting project information... |
This file contains 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
================================================================================ | |
Postgres Notes | |
================================================================================ | |
1. Configure a Postgresql user account and database | |
➜ ~ sudo -i -u postgres | |
[sudo] password for jfhogarty: | |
postgres@LeftFootMedia:~$ psql | |
psql (9.3.10) | |
Type "help" for help. |
This file contains 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 'capybara' | |
require 'capybara/cucumber' | |
require 'selenium-webdriver' | |
require 'capybara/poltergeist' | |
require 'open-uri' | |
require 'pry' | |
require 'pathname' | |
if ENV['SELENIUM'] |
NewerOlder